VA01/VA02-Sales Order-Sceen Enhancements

Hi,
I need to Include 2 Additional Tabs in Sales Order Header Data to accommodate Header Data related Z Fields Included in the Append Structure of VBAK. Each tab will have 2 - 3 sub screens. I am not sure, How to go ahead with this Task. I was told that this is possible in SPRO Configuration by adding additional tabs and adding Screens / Sub screens for that tab in SPRO. Can you please provide me with good documents if you have any? Is there any SAP Notes available to address this kind of tasks?
Appreciate Your Help.
Thanks,
Kannan.

Hi
User exits in the screens for VA01/VA02
Additional header data is on screen SAPMV45A 0309, additional item data on screen SAPMV45A 0459. These screens contain the Include screens SAPMV45A 8309 or SAPMV45A 8459 as user exits.
Fields which are also to be included in the sales document for a specific installation should be included on the Include screens for maintaining. If an application-specific check module is needed for the fields, this can be included in the Include MV45AIZZ. The module is called up in the processing logic of the Include screens.
For field transports, you do not have to make changes or adjustments.
Example
A new field, VBAK-ZZKUN, should be included in table VBAK.
If the check is defined via the Dictionary (fixed values or check table) the field must be included with the fullscreen editor in the Include screen SAPMV45A 8309. In this case, no change has to be made to the processing logic.
Regards
Anji

Similar Messages

  • VA01/VA02 - Sales Order Line items

    Hello SD Expert,
    When am creating Sales Order  (VA01) I noticed my transaction display only default of 2 line items and i need to scroll down in the event i have more that 2 line item to enter/key in.
    And I noticed that other SD user when they execute VA01 -Create Sales Order their initial screen default to almost 14 line items.
    I want my screen to have a default  multiple line item during my VA01/VA02 screen.
    Take note that both of user having the same font size use and our SAP screen are fully maximize.
    My question is - Is this user default setting? or configuration? Can someone advise how can i achieve this?
    Thanks in advance.
    Itsme.

    Hello Naren,
    Just a follow up question - is there any chance that this can also  made per User settings?
    I tried your suggestion in our development by changing the order type to UER2. and when i tried to create sales order i have the multiple line item.
    The other user who is creating the Sales Order in our production system use the same order type
    and in our production the set up is UER1 but still  her screen by default  has multiple line item.
    Thanks again.

  • User Exit - VA01 / VA02 Sales Order, using Variant Configuration Fields

    Hi,
    I'm doing a user exit for creating / changing a sales order (VA01/VA02), and in my program I'm trying to use the characteristic values in variant configuration: Extras -> Configuration.
    I know there's a whole bunch of data in SAPMV45A, but I can't seem to find what I need. Structure RV45A is the closest I can find, but the characteristic name / value fields appear empty during the execution of the user exit.
    Any help would be greatly appreciated.
    Thanks!

    R u creating your own user exit or using the ones which are available for VA01/VA02?
    If you can use existing ones, to get the more details abt them, please have a look at below link.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Security object for shipping conditions (T-Code VA02-sales order)

    Hi
    I need to gray out filed-VSBED (shipping conditions) in T-code VA02 (sales order change) for users, what could be the security object to be used for this requirement?
    Regards
    sri

    The functional requirement till doesnt seem very clear to me , why would someone want to grey this field? (unless you have a strong case that you use different document types for normal orders, express deliveries, normal service, free of charge and a whole lot of possibilities)
    Your SD consultant should guide and let you know that:
    Shipping conditions are defined in customizing
    you can eithe assign particular shipping conditions to particuar sales document types to make it as a default
    (or) you can have the shipping conditions defined in the customer master
    the ones set up in SPRO take a preference, but as you rightly noticed - if a use wishes to change the shipping conditions proposed by the system he would be able to do that, and this CANNOT be controlled with authorization objects
    The only option you would have, is to find out if the users who are not suppposed to change the conditions beong to the same user group (or make a logical assesment on the common binding feature in the set of users)
    then evaluate if you want to make the program changes such that the changes affect only the particular set of users
    Note: Changes you make in ABAP do not necessarily apply to the complete user base - it depends on how well you analyse and plan the requirement

  • How to set default reject reason in VA01 (create sales order)

    Hi
    Everybody can tell me how to set default reject reason for item in sales order.
    in our sap system there are a default reject reason as '90'. We want to set it as "Null".
    Thanks
    Henry

    Hi,
    Assigning a default Reason for Rejection is not in standard SAP. I am sure there is some enhancement/user exit which updates the reason for rejection.
    Please get the help of an ABAPer, create the sales order in debugging mode and he will find out the logic behind the automatic reason for rejection.
    Before that you can find the exits in the include MV45AFZZ for any code related to this.
    Hope this helps

  • Running a Invoice Form (VF00) through VA02 (Sales Order).

    Hi All,
    I am a little puzzled by our functional team. My SD Functional expert wants me to run the invoice form (Billing output type or V3) from VA02 (Sales output type or V1).
    Currently, we have the invoice print program tied to a invoice smartform. He wants all the functionality to be there on the invoice form, but to be able to run from VA02/VA03 (Sales order). So, run INVOICE from VA02. Currently we have a custom program modeled after RLB_INVOICE sap print program and our smartform is modeled after LB_BIL_INVOICE.
    Can anyone suggest if they have done something like this before?
    Regards,
    Salil

    Hello,
    I am having the same issue, How did yuo solve it?
    Thanks,
    Alex

  • VA02 Sales order, shipping point

    Hi,
    I'm trying to save a sales order but there is in the Incompletion log that Shipping point has not been
    select.
    I tried to make a selection but I receive the message: "No possible entries exist for this field"
    I clicked on F1 in that field and then on the customizing button, system move to the customizing of the Shipping point and I can see the related customizing (there is a shipping point customizing) I try to save but system doesn't save the sales order
    Cannot understand why this
    Best Regards

    Hi,
    Please search this forum on how shipping point is determined for a particular sales order and see if your sales order meets the criteria for getting an automatic shipping point or allowed shipping point..if not, make the required configuration.
    Also, since you're saying its VA02--> some data might has been changed that doesn't allow a shipping point determination..so pls check the shipping point determination logic and analyze further.
    Regards,
    Raghu.

  • VA02: Sales order Issue.

    We have upgraded the SAP system from 4.6C to ECC6, a piece of BDC code which was working before in 4.6C has stopped functioning. When run in FOREGROUND mode, program executes fine and changes the sales order, but when the program is executed in BACKGROUND with the same inputs, it fails to function. i.e. Sales order is not changed.
    I had tried to see the SQL Trace and it seems like in background mode the order processing is going through some extra checks based on fields SY-BATCH and SY-BINPT. (Seems like in background mode ECC6 is not changing the pricing data).
    Here is my code, it has few fields taken from Z tables, but the logic of screens flow is all there.
    Expect full points on reply.
    form update_va02_qw.
    if nobill = space and x_nobill = space.
    refresh bdcdata.
    clear bdcdata.
    perform bdc_dynpro using 'SAPMV45A' '0102'.
    perform bdc_field using 'VBAK-VBELN' i8c-vbeln.
    perform bdc_field using 'BDC_OKCODE' '/00'.
    perform bdc_dynpro using 'SAPMV45A' '4001'.
    if i8c-edatu i8c-compl or x_pn00 = 1 or
    x_tek05 x_aek05 or x_tek06 x_aek06.
    perform bdc_field using 'BDC_OKCODE' '=POPO'.
    perform bdc_dynpro using 'SAPMV45A' '0251'.
    perform bdc_field using 'RV45A-POSNR' i8c-posnr.
    perform bdc_field using 'BDC_OKCODE' '=POSI'.
    perform bdc_dynpro using 'SAPMV45A' '4001'.
    if i8c-edatu i8c-compl.
    write i8c-compl to x_datex dd/mm/yy.
    perform bdc_field using 'RV45A-ETDAT(01)' x_datex.
    endif.
    if x_pn00 = 1 or x_tek05 x_aek05 or x_tek06 x_aek06.
    perform bdc_field using 'RV45A-VBAP_SELKZ(01)' 'X'.
    perform bdc_field using: 'BDC_OKCODE' '=PKO1'.
    perform bdc_dynpro using 'SAPMV45A' '5003'.
    clear: x_cnt.
    if x_ek05 = 1 and x_tek05 x_aek05.
    perform bdc_field using 'RV61A-SELKZ(09)' 'X'.
    x_cnt = 1.
    endif.
    if x_ek06 = 1 and x_tek06 x_aek06.
    x_cnt = 1.
    if x_ek05 = 1.
    perform bdc_field using 'RV61A-SELKZ(10)' 'X'.
    else.
    perform bdc_field using 'RV61A-SELKZ(09)' 'X'.
    endif.
    endif.
    if x_pn00 = 1.
    x_cnt = 1.
    if x_ek05 = 1.
    if x_ek06 = 1.
    perform bdc_field using 'RV61A-SELKZ(12)' 'X'.
    else.
    perform bdc_field using 'RV61A-SELKZ(11)' 'X'.
    endif.
    else.
    perform bdc_field using 'RV61A-SELKZ(10)' 'X'.
    endif.
    endif.
    if x_cnt = 1.
    perform bdc_field using 'BDC_OKCODE' '=V69A_KOLO'.
    endif.
    perform bdc_dynpro using 'SAPMV45A' '5003'.
    perform bdc_field using 'BDC_OKCODE' '=V69A_KOAN'.
    perform bdc_dynpro using 'SAPMV45A' '5003'.
    perform bdc_field using 'KOMV-KSCHL(02)' 'EK05'. "Metrix Cost
    write: x_tek05 to x_amntx.
    perform bdc_field using 'KOMV-KBETR(02)' x_amntx.
    perform bdc_dynpro using 'SAPMV45A' '5003'.
    perform bdc_field using 'BDC_OKCODE' '=V69A_KOAN'.
    perform bdc_dynpro using 'SAPMV45A' '5003'.
    perform bdc_field using 'KOMV-KSCHL(02)' 'EK06'. "Metrix Cost
    write: x_tek06 to x_amntx.
    perform bdc_field using 'KOMV-KBETR(02)' x_amntx.
    perform bdc_dynpro using 'SAPMV45A' '5003'.
    perform bdc_field using 'BDC_OKCODE' '/EBACK'.
    endif.
    endif.
    perform bdc_dynpro using 'SAPMV45A' '4001'.
    if vbak-lifsk space.
    perform bdc_field using 'VBAK-LIFSK' ' '.
    endif.
    if vbak-faksk space.
    perform bdc_field using 'VBAK-FAKSK' ' '.
    endif.
    perform bdc_field using: 'BDC_OKCODE' '=KBES'.
    perform bdc_dynpro using 'SAPMV45A' '4002'.
    perform bdc_field using 'VBKD-IHREZ' x_ihrez.
    perform bdc_field using: 'BDC_OKCODE' '/11'.
    if x_batch = 'X'.
    perform bdc_insert using 'VA02'.
    else.
    opt-dismode = 'E'.
    call transaction 'VA02' using bdcdata options from opt
    messages into itab.
    sort itab.
    loop at itab where msgtyp = 'E'.
    if nodel = space.
    message id itab-msgid type 'E' number itab-msgnr with
    itab-msgv1 itab-msgv2 itab-msgv3 itab-msgv4 into x_emsg.
    write: / 'Update VA02 Error - zs8c', reqid, x_emsg.
    endif.
    endloop.
    if sy-subrc = 0.
    endif.
    endif.
    endif.
    endform.

    go into VA02, go into detail of your item, goto the schedule tab
    make sure you have a confirmed quantity there.
    you see there as well the delivery date.
    Make sure that the selection date in VL02N not smaller than your delivery date for your confirmed schedule line

  • VA02 - Sale Order Change Flag ?

    Hi All,
    Please help me with the following issue.
    Whenever there is a change made to the Sales Order, during the save event is there any flag that indicates, whether there was a change in the order.
    I mean before the order getting saved, i am having an exit, where in i want a flag which will tell me that some change was made to the Order.
    Regards
    Rakesh.

    Hi Rahul,
    That flag would have helped. But my req is little more specific.
    Its like I am making a change in Item Quantity - Press Enter and then going to
    EXTRAS-OUTPUT-HEADER-EDIT ... here is there my routine is getting triggered. That routine is nothing but one created from VOFM transaction, a routine for controlling output type.
    Now here is where i want to know whether any changes in Sales Order is made.
    The system flag you told me is blank here... T185F-DATALOSS this is another flag which can tell us whether any data change has happend or not. But this also is blank when it comes to this exit.
    Please help me.
    Regards
    Rakesh.

  • Notification to Sales order creation enhancement

    Hi,
    We are creating sales order from the notification screen with the help of button "Sales order".
    Here we want to populate some predefined data to sales order screen when that "sales order" button is clicked.
    we found the BADI "BADI_SD_SALES_ITEM" , but in this we are not able to get any link to QMEL table.
    I need to fetch the data from notification (QMEL table).
    can any one help me with any exit/Badi and any other alternative solution that will resolve this issue.
    Thanks in advance.
    Regards,
    Chetan

    check this FM - QM06_FM_TASK_RMA_ORDER_CREATE

  • Sales order search enhancement

    Hi,
    I am new to web ui.
    My requirement is
    to add a custom field to the sales order search criteria.
    Please provide any documents which helps me in solving the requirement .
    Thanks,
    Srinivas.
    Moderator message:
    Please review rules of engagement in asking for documents.  Please also do a search in this forum as there are several posts on this question
    https://wiki.sdn.sap.com/wiki/x/FgQ
    Edited by: Stephen Johannes on Feb 26, 2009 8:46 AM

    Hi Srinivasa,
    This is the code snippet.
    *     Get the First entity
          lr_entity ?= me->typed_context->searchresult->collection_wrapper->get_first( ).
    *     Loop on the collection
          WHILE lr_entity IS BOUND.
    *       Get the Sales Order attributes
            lr_entity->get_properties( IMPORTING es_attributes = ls_sales_order ).
            IF ls_sales_order <> XXXXX.
              me->typed_context->searchresult->collection_wrapper->remove( lr_entity ).
            ENDIF.
    *      Get the next entity
            lr_entity ?= me->typed_context->searchresult->collection_wrapper->get_next( ).
          ENDWHILE.
    Regards,
    Masood Imrani S.

  • Badi for sales oder sceen enhancement

    While implementing the BAdI defination i got the error message like
    "BAdI definition BADI_SD_SALES_H  is only provided for SAP internal use ". can u tell me how to implement this BADI,
    OR  can any one suggest the proper badi name for modify sales order screen ?

    Hi,
    This BADI is "For only internal use". You cann´t use it.
    If you  want to add new fields in the sales document screen, you have to do this in program SAPMV45A, dynpro 8309 for header data and 8459 for item data
    Regards,

  • Sales Order Creation Enhancement

    Hi All,
    We have a need to have the Sold to Party determined using "External Customer Number". The scenario is that when the user enter VA01 a popup need to be triggered which will ask for Old Customer Number and from this the "Sold to Party" for the order is determined.
    This has been achieved using the Enhancement V45A0002.
    The problem is that the users would use VA02 to change the "Sold to Party" (assuming they don't do this in VA01 itself). Once the Sold to Changes the Popup need to be triggered and the "Sold to Party" is to be determined using the same Pop Up which is now working when the user enters from VA01.
    I tried with move_field_to_vbak in MV45AFZZ but this subroutine is called multiple times and if the Sold to Party changes there are other processes that kick in to redetermine taxes, ship to party etc.
    Please let me know if there would be a safe way to achieve this.
    Deepak

    was able to compare vbak and *vbak to achieve the multiple call problem

  • User u2013exit  required for application e.g. Va01 (create sales order)

    If I want to know what I sthe list of user exits used for a particular application in a system. i.e  in this company  how have they modified the Sap standard VA01 standard application  and which user exit they used, how to see that quickly
         Similarly with all the different applications, even for deliveries VL01N  etc etc
    Jyoti kamal.

    see,
    Userexits can be found in number of ways:
    1) To find userexits in SD module , goto object navigator(SE80) and select
        development class from the list and enter VMOD in it. All of the userexits in SD are contained in the development class VMOD. Press
    enter and you will find all the includes which contain userexits in SD for
    different functions like PRICING, ORDER PROCESSING etc. Select the userexit according to the requirement and read the comment inserted in it
    and start coding .
    2)The other method of finding userexit is to find the word USEREXIT in the
    associated program of the transaction for which we want to determine userexit using SE38.
    3)The other method of finding userexits is to find the include in case of SD/MM applications where the userexits are located ,this can be found in the SAP reference IMG generally in the subfolder under SYSTEM MODIFICATION.

  • BDC for profitability segment VA02 (sales order)

    Hi all,
    I'm creating a BDC to update the prof.segment from account assignment on a sales item.
    Everything works fine when I run it into the foreground, but when I turn the program in the background, there seems to be an error when opening program 'SAPLKACB' screen '0002'.
    He stops at the screen, and the user has to press on a key to 'push' the program forward.
    Anyone has an idea on how to solve this ?
    This is my code,
    problem lays between the opening of the program, and the start of BDC_OKCODE =COBL_XERGO
    DATA : i_bdcdata            TYPE TABLE OF bdcdata,
             wa_bdcdata TYPE bdcdata,
             wa_pos TYPE posnr_va,
             I_TAB TYPE TABLE OF BDCMSGCOLL,
             wa_tab type BDCMSGCOLL,
             wa_params type CTU_PARAMS.
    refresh i_bdcdata.
    wa_params-dismode = 'A'.
    wa_params-defsize = 'X'.
      CLEAR   wa_bdcdata.
      wa_bdcdata-program  = 'SAPMV45A'.
      wa_bdcdata-dynpro   = '0102'.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO i_bdcdata.
      PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
                                               'VBAK-VBELN'.
      PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
                                        '/00'.
      PERFORM add_line TABLES i_bdcdata USING 'VBAK-VBELN'
                                               '0070040656'.
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = 'SAPMV45A'.
      wa_bdcdata-dynpro   = '4001'.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO i_bdcdata.
    *  CLEAR wa_salesorder.
    *loop at the items
      CLEAR wa_pos.
    clear wa_pos.
    *  loop at i_salesorder into wa_salesorder.
    do 2 times.
    *  LOOP AT i_salesorder INTO wa_salesorder.
        wa_pos = wa_pos + 10.
    PERFORM add_line TABLES i_bdcdata USING
    'BDC_OKCODE'
        '=POPO'.
    *    PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
    *    'R45A-MABNR(03)'.
        CLEAR wa_bdcdata.
        wa_bdcdata-program  = 'SAPMV45A'.
        wa_bdcdata-dynpro   = '0251'.
        wa_bdcdata-dynbegin = 'X'.
        APPEND wa_bdcdata TO i_bdcdata.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
        'RV45A-POSNR'.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
        '=POSI'.
        PERFORM add_line TABLES i_bdcdata USING 'RV45A-POSNR'
        wa_pos.
    clear wa_bdcdata.
        wa_bdcdata-program  = 'SAPMV45A'.
        wa_bdcdata-dynpro   = '4001'.
        wa_bdcdata-dynbegin = 'X'.
        APPEND wa_bdcdata TO i_bdcdata.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
        '=ITEM'.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
        'RV45A-MABNR(01)'.
        wa_bdcdata-program  = 'SAPMV45A'.
        wa_bdcdata-dynpro   = '4003'.
        wa_bdcdata-dynbegin = 'X'.
        APPEND wa_bdcdata TO i_bdcdata.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
        '=T\06'.
        CLEAR wa_bdcdata.
        wa_bdcdata-program  = 'SAPMV45A'.
        wa_bdcdata-dynpro   = '4003'.
        wa_bdcdata-dynbegin = 'X'.
        APPEND wa_bdcdata TO i_bdcdata.
    *perform bdc_dynpro      using 'SAPMV45A' '4003'.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
                                  '/EBACK'.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
                                  'VBAP-KALSM_K'.
        PERFORM add_line TABLES i_bdcdata USING 'DKACB-FMORE'
                                  'X'.
                                  wa_bdcdata-program  = 'SAPLKACB'.
        wa_bdcdata-dynpro   = '0002'.
        wa_bdcdata-dynbegin = 'X'.
        APPEND wa_bdcdata TO i_bdcdata.
    PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
                                  'DKACB-XERGO'.
    PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
                                  '=COBL_XERGO'.
    PERFORM add_line TABLES i_bdcdata USING 'DKACB-XERGO'
                                  'X'
    *perform bdc_dynpro      using 'SAPLKACB' '0002'.
    *PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
    *                              'COBL-PS_POSID'.
    *    PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
    *                                  '/EBACK'.
    *    PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
    *                              'VBAP-KALSM_K'.
    *    PERFORM add_line TABLES i_bdcdata USING 'DKACB-FMORE'
    *                              'X'.
    *    CLEAR wa_bdcdata.
    *    wa_bdcdata-program  = 'SAPLKACB'.
    *    wa_bdcdata-dynpro   = '0002'.
    *    wa_bdcdata-dynbegin = 'X'.
    *    APPEND wa_bdcdata TO i_bdcdata.
    *    PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
    *                                  '=COBL_XERGO'.
    **PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
    **                              'COBL-AUFNR'.
    *COBL-PS_POSID
        CLEAR wa_bdcdata.
        wa_bdcdata-program  = 'SAPLKEAK'.
        wa_bdcdata-dynpro   = '0300'.
        wa_bdcdata-dynbegin = 'X'.
        APPEND wa_bdcdata TO i_bdcdata.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
                                      'RKEAK-FIELD(15)'.
        PERFORM add_line TABLES i_bdcdata USING 'RKEAK-FIELD(15)'
                                      'A1224'.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
                                      '=P+'.
        CLEAR wa_bdcdata.
        wa_bdcdata-program  = 'SAPLKEAK'.
        wa_bdcdata-dynpro   = '0300'.
        wa_bdcdata-dynbegin = 'X'.
        APPEND wa_bdcdata TO i_bdcdata.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
                                      'RKEAK-FIELD(03)'.
        PERFORM add_line TABLES i_bdcdata USING 'RKEAK-FIELD(03)'
                                      'OTH'.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
                                      '=P+'.
        CLEAR wa_bdcdata.
        wa_bdcdata-program  = 'SAPLKEAK'.
        wa_bdcdata-dynpro   = '0300'.
        wa_bdcdata-dynbegin = 'X'.
        APPEND wa_bdcdata TO i_bdcdata.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
                                      'RKEAK-FIELD(07)'.
        PERFORM add_line TABLES i_bdcdata USING 'RKEAK-FIELD(07)'
                                      'BE'.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
                                      '=P+'.
        CLEAR wa_bdcdata.
        wa_bdcdata-program  = 'SAPLKEAK'.
        wa_bdcdata-dynpro   = '0300'.
        wa_bdcdata-dynbegin = 'X'.
        APPEND wa_bdcdata TO i_bdcdata.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
                                      'RKEAK-FIELD(09)'.
        PERFORM add_line TABLES i_bdcdata USING 'RKEAK-FIELD(09)'
                                      'BE'.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
                                      '=P+'.
        CLEAR wa_bdcdata.
        wa_bdcdata-program  = 'SAPLKEAK'.
        wa_bdcdata-dynpro   = '0300'.
        wa_bdcdata-dynbegin = 'X'.
        APPEND wa_bdcdata TO i_bdcdata.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
                                      'RKEAK-FIELD(10)'.
        PERFORM add_line TABLES i_bdcdata USING 'RKEAK-FIELD(10)'
                                      'BE'.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
                                      '=P+'.
        CLEAR wa_bdcdata.
        wa_bdcdata-program  = 'SAPLKEAK'.
        wa_bdcdata-dynpro   = '0300'.
        wa_bdcdata-dynbegin = 'X'.
        APPEND wa_bdcdata TO i_bdcdata.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
                                      'RKEAK-FIELD(11)'.
        PERFORM add_line TABLES i_bdcdata USING 'RKEAK-FIELD(11)'
                                      'REPMC'.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
                                      '=WEIT'.
        CLEAR wa_bdcdata.
        wa_bdcdata-program  = 'SAPLKACB'.
        wa_bdcdata-dynpro   = '0002'.
        wa_bdcdata-dynbegin = 'X'.
        APPEND wa_bdcdata TO i_bdcdata.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
                                      'COBL-AUFNR'.
        PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
                                      '=ENTE'.
        CLEAR wa_bdcdata.
        wa_bdcdata-program  = 'SAPMV45A'.
        wa_bdcdata-dynpro   = '4001'.
        wa_bdcdata-dynbegin = 'X'.
           APPEND wa_bdcdata TO i_bdcdata.
    **PERFORM add_line TABLES i_bdcdata USING 'BDC_CURSOR'
    **                              'RV45A-MABNR(03)'.
    **                                  CLEAR wa_bdcdata.
    **    wa_bdcdata-program  = 'SAPLSPO2'.
    **    wa_bdcdata-dynpro   = '0101'.
    **    wa_bdcdata-dynbegin = 'X'.
    **       APPEND wa_bdcdata TO i_bdcdata.
    **PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
    **                              '=OPT1'.
    *  ENDLOOP.
    enddo.
      PERFORM add_line TABLES i_bdcdata USING 'BDC_OKCODE'
                                '=SICH'.
      CALL TRANSACTION 'VA02'  USING i_bdcdata
                               options from wa_params
                                MESSAGES INTO i_tab.
    break-point.
    FORM add_line TABLES   i_bdcdata STRUCTURE bdcdata
                  USING    bdc
                           value.
      DATA : lw_bdcdata    TYPE bdcdata.
      CLEAR lw_bdcdata.
      lw_bdcdata-fnam     = bdc.
      lw_bdcdata-fval     = value.
      APPEND lw_bdcdata TO i_bdcdata.
    ENDFORM.                    " add_line

    Hello,
    I am having the same issue, How did yuo solve it?
    Thanks,
    Alex

Maybe you are looking for