Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all 8332 articles
Browse latest View live

BAPI for Scheduling Agreement Scales

$
0
0

Hello,

 

I want to add Scales to my Scheduling Agreement.

 

Tried using BAPI_SAG_CREATE, I was able to successfully create a Scheduling Agreement but it says that "No scales exist". According to the FM documentation, scales are not supported during the creation of outline agreements.

 

Tried using BAPI_SAG_CHANGE using the Scheduling Agreement created but I always get a dump and points me to a standard code.

Runtime Errors         GETWA_NOT_ASSIGNED

ABAP Program         SAPLMEOUT

Include                      LMEOUTP14

Row                          1,454

Module type              (METHOD)

Module Name           POST

 

If these BAPI will not work, my last option would be BDC.

 

Thanks in advance.


Edition/update characteristics in material configuration variant.

$
0
0

Hi Experts,

 

 

I have to modify the value of the characteristics of the materials variant.

 

Below, a sample business process.

 

1. Creation of configurable material.

 

2. Variant are created for the above configurable material.

 

3. Change of the characteristics value in the configurable material. Along with this change, I need to change the values ​​of the characteristics in all the already created variants.

 

It's working almost correct, I used (BAPI_OBJCL_CHANGE).

 

When we enter into a transaction MM02 in bookmark 'Basic data 2', then click the 'Configure variant' we can see correct values - changed values.

 

And here the problem arose, after pressing back, system shows the message 'Inconsistent characteristic value assignment'. When I save this material after this then from this moment everything works well.

 

I try to editing characteristic in this variants by FM's in CUCB group, but for now without any success.

 

Information how to lock material variant configuration also will be useful.

 

Can you help me?

SAP Query. Join MCH1-CUOBJ_BM and AUSP-OBJEK

$
0
0

Hello guys.

 

I need to develop query which show value from batch characteristic (023 class type).

 

Input: batch, material

 

Output: batch, material, desired characteristic value.

 

When i'm trying join in infoset MCH1-CUOBJ_BM and AUSP-OBJEK system show me error: Illegal join conditions.

 

So question is: how i can get desired result only via sapquery, without any abap coding (haven't access).

 

Thank you in advance!

Get spool id after call transaction

$
0
0

Hi,

 

We have a report that submits another program, and we used batch-input for that, since it prints a smartform, and we wanted to control the print parameters, like print immmediately, which are not available if we use "SUBMIT" instruction to do this.

It was required now to add the option to send the form by email, so we are converting the spool id generated into pdf, and attach it to mail.

 

The problem remains here: how to get the generated spool id after a call transaction? We are doing that by getting the last spool id generated in table TSP01, with the program name and user, but this program can be run at the same time by different people, so we can get the wrong spool id.

 

Can you suggest something to solve this problem?

Thanks in advance.

 

Best regards,

Sónia Gonçalves

Attached image not show into body email

$
0
0

Hi experts,

 

I need to show image into body email, I'm doing it with class cl_document_bcs

 

     imagen = '<img src="cid:logofirma.jpg" align="middle" width="160" height="60"></img>'.

 

       APPEND imagen TO text1.


      document = cl_document_bcs=>create_document(

       i_type = 'HTM'

       i_text = text1

       i_subject = asunto ).


    atta_sub = 'logofirma' .

       CALL METHOD document->add_attachment

         EXPORTING

           i_attachment_type    = 'jpg'

           i_attachment_subject = atta_sub

           I_ATTACHMENT_SIZE    = len

           i_att_content_hex    = binary_content.


The image is displayed correctly in outlook, but in hotmail and gmail is shown as attached and does not appear in the body of the email.


email.png

Please help.




Best regards,


Robert.



Webdynpro vs Adobeforms

$
0
0

Hi Experts,

I have a wedynpro with several views. it is having many functionality, POPUP, error message, ON filed check, check on change, ALV in a popup etc.

I want to change it to ADOBE FORMS and keep the logic same just consolidate alll views into one one page and show to user.

 

Can anyone let me know how is that IDEA or is there any limitation with adobeforms?

 

Please let me know if anyone needs more information .

 

Thanks

Rahul

Expected Interview Questions in SAP ABAP Topic wise For 2+ Exp.

$
0
0

Hi ,

I am trying for job in SAP ABAP as a 2+ years of experience.

What are the Interview questions in topic wise should i expect ?

What are the expected FAQS for SAP ABAP Consultant / Developer Position now a days ?

 

I need all your valuable suggestions and advice. It may helpful to other aspirants.

 

 

Thanks and Regards,

 

MANOJ

Program to move files from one server to other

$
0
0

Can we write a Program in ABAP to move File from one location to other

 

move file from  \\server-name\Folder1\abc.pdf to \\server-name\Folder2\abc.pdf.

 

 

Thanks and regards,

Niketan Maral


IDOC Re-Processing

$
0
0

Hi Everybody,

 

 

I am replicating the G/L Master data from production to quality using ALE IDOC.When i do it i am getting the error message as "G/L account XXXXXXX is not allowed in the system".When i reprocess the same it is getting posted in the target system as desired.

Here my question is,why the idoc fails to post in the first attempt (Inbound system) and why it is getting posted at the time of reprocessing.

Some times i get the error message as 'Bank US XXXXXXXXXX is currently blocked by user XWU" in the Bank Master replication, but with reprocessing it gets posted properly.Actually the user XWU is not the active user.

 

Can you please let me know what leads for the IDOC reprocessing.I googled but did not find the anwer for it.

 

 

 

 

Regards

 

Sriram.

HI Friends i am trying to display two table contents i am getting one table fields but not the second, help me with this

$
0
0

TABLES: VBAK.

CONSTANTS: INF_MSG TYPE C VALUE 'I'.

TYPES: BEGIN OF ST_VBAK,

        VBELN TYPE VBELN_VA,

        VKORG TYPE VKORG,

        KUNNR TYPE KUNNR,

        END OF ST_VBAK,

 

        BEGIN OF ST_VBAP,

        VBELN TYPE VBELN_VA,

        POSNR TYPE POSNR_VA,

        MATNR TYPE MATNR,

        END OF ST_VBAP,

 

        BEGIN OF ST_KNA1,

        KUNNR TYPE KUNNR,

        NAME1 TYPE NAME1,

        END OF ST_KNA1.

DATA:IT_VBAK TYPE STANDARD TABLE OF ST_VBAK INITIAL SIZE 1,

      IT_VBAP TYPE STANDARD TABLE OF ST_VBAP INITIAL SIZE 1,

      IT_KNA1 TYPE STANDARD TABLE OF ST_KNA1 INITIAL SIZE 1,

      WA_VBAK TYPE ST_VBAK,

      WA_VBAP TYPE ST_VBAP,

      WA_KNA1 TYPE ST_KNA1.

*AT SELECTION-SCREEN.

SELECT-OPTIONS: SO_VBELN FOR VBAK-VBELN,

                SO_KUNNR FOR VBAK-KUNNR.

 

START-OF-SELECTION.

SELECT VBELN VKORG KUNNR

  FROM VBAK

  INTO TABLE IT_VBAK

  WHERE VBELN IN SO_VBELN AND

        KUNNR IN SO_KUNNR.

  IF SY-SUBRC <> 0.

  MESSAGE TEXT-001 TYPE INF_MSG.

  LEAVE LIST-PROCESSING.

  ENDIF.

IF IT_VBAK IS NOT INITIAL.

SELECT VBELN POSNR MATNR

  FROM VBAP

  INTO TABLE IT_VBAP

  FOR ALL ENTRIES IN IT_VBAK

  WHERE VBELN = IT_VBAK-VBELN.

ENDIF.

 

as i debug, i am getting fields of one table as i go to the second table, i am going to this screen

Performance Issue in Select Statement (For All Entries)

$
0
0

Hello,

 

I have a report where i have two select statement

 

 

First Select Statement:

 

Select A B C P Q R

     from T1 into Table it_t1

          where ....

 

Internal Table it_t1 is populated with 359801 entries through this select statement.

 

Second Select Statement:

 

Select A B C X Y Z

     from T2 in it_t2 For All Entries in it_t1

          where A eq it_t1-A

             and B eq it_t1-B

             and C eq it_t1-C

 

Now Table T2 contains more than 10 lac records and at the end of select statement it_t2 is populated with 844003 but it takes a lot of time (15 -20 min) to execute second select statement.

 

Can this code be optimized?

 

Also i have created respective indexes on table T1 and T2 for the fields in Where Condition.

 

 

Regards,

Error trying to download data from database to xls

$
0
0

Hi all,

 

I am trying to download strig data from database.

 

string having special characters like ( # ) ( i want# to download data )

 

if i pass data to xls after special character data displaying new line in xls

 

I was tried with

 

REPLACE ALL OCCURRENCES OF '#' IN lv_name WITH space.

 

REPLACE ALL OCCURRENCES OF cl_abap_char_utilities= horizontal_tab IN lv_name WITH space.

 

But both are working in my development system but in production system not working

 

please help to resolve this issue ?

how to print Signature in smartform in a dynamic place ?

$
0
0

Hi experts,

                i have a requirement to print signature in a smartform (purchase order print) ,the signature has to printed in dynamic place.

  

                i have  to Print signature in in authorized signatory place, we cannot place static window with scanned signature in page ,

                as we cannot predict where the page will end.

 

                how can this be attained, i have attached a print preview , where signature has to be attached  ?

 

               please Help.

SMARTFORM overflow how to continue page 2 on page 4

$
0
0

Hello

 

In SMARTFORMS my printer is printing in duplex, when overflow occurs on page 2,  I would like overflow to continue on page 4 leaving page 3 blank..  Is this doable?  I tried using the COMMAND but overflow occurs in middle of a table on Main Window and will print 1 line on page 3 before going to page 4

Event to update custom fields after FPMA transaction

$
0
0

Hello,

 

I have a requirement in FI-CA where I have to update custom field of table DFKKOP after the mass clearing (FPMA transaction).

I identified the events 10 (FM -> FKK_SAMPLE_0101)1 and 20 (FM -> FKK_SAMPLE_0020) in transaction FQEVENTS. But those are not useful for my requirement.

 

Please let me know which event can be used to update the to update the custom field of table DFKKOP after the Mass clearing.

 

Thanks in advance

Nivash S


how to use LANG TYPE, what is the use of these type

$
0
0

hi, i want to know what is the use of LANG TYPE.

which purposes alv reports are used?

$
0
0

please tell me which purposes alv reports are used.

how can i learn that

SAP SRM Contract : identify Creation/Release and restrict BADI call

$
0
0

Hi There!

 

I need some suggestion on one of the issue i'm having now:

 

The SRM contract workflow works on n-level approval for which a BADI is implemented for the approvers. Now for one of the custom sub-process i need to trigger a different workflow from this BADI which works BUT create as much of workflow items as the number of calls of the BADI. Is there way to identify the code/identifier which say it is a 'SAVE' or 'RELEASE' event and also how can i restrict some piece of code inside the approval badi to be called only at the last call of the badi?

Need opinions about using methods in-line

$
0
0

Hello fellow SDNers,

 

I have this piece of code where i use functional method as operand, string formatting options in-line et al. A friend of mine says it's not too descriptive.

 

  cl_demo_output=>display_text( |Laufzeit: { lcl_calc_laufzeit=>main(                                                 im_date_from = p_begda                                                 im_date_to   = p_endda )-count ALIGN = LEFT } Monat(e)| ).

 

Is Too-little is just too confusing?

 

I like in-line data declarations, functional methods because i feel they are more intuitive.

 

What are your ideas/opinions about it?

 

BR,

Suhas

Multiple listbox in screen painter with same field

$
0
0

Hello experts,

 

I have to create five list boxes with values referenced to same field of the same table.

I have the values in the table. But I do not see them when I execute the screen.

 

Also when I tried to put the name in second list box, it doesnt allow me to do so.

 

There are five listboxes, each should have same list of values but different default values.

 

Thanks in advace.

Shubhendu

Viewing all 8332 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>