Skip first screen of BD87 using call transaction with BDC_DATA option

hello all,
i am using call transaction with BDC_DATA option and i want to skip first screen, so can anyone please tell me how can i skip first screen of BD87 and get second screen that is output screen?
regards.

Hi
Build a BDCDATA with following code..
                                                      T     BD87                                                                               
RBDMON00     1100     X                                                                               
BDC_CURSOR     SX_DOCNU-LOW
                                                            BDC_OKCODE     =CRET
                                                            SX_DOCNU-LOW                                                                               
SX_CRETI-LOW     00:00:00
                                                            SX_CRETI-HIGH     00:00:00
                                                            SX_UPDDA-LOW     05.02.2010
                                                            SX_UPDDA-HIGH     05.02.2010
                                                            SX_UPDTI-LOW     00:00:00
                                                            SX_UPDTI-HIGH     00:00:00
RBDMON00     0100     X                                                                               
BDC_OKCODE     =BACK
RBDMON00     1100     X                                                                               
BDC_OKCODE     /ECBAC
                                                            BDC_CURSOR     SX_DOCNU-LOW

Similar Messages

  • Skip first screen and return using BDC

    Hi,
    I am calling a Transaction from an ALV REPORT ,i wanted to set the material number in that transaction, i checked using f1 help and found the parameter id as 'MAT' .
    But when i am calling the transaction,the material number is not being displayed,Hence i modified the code below..
    My Previous code:
    READ TABLE alv_stb INDEX i_selfield-tabindex.
    IF sy-subrc = 0.
    SET PARAMETER ID 'MAT' FIELD alv_stb-idnrk.
    CALL TRANSACTION 'TCODE' .
    ENDIF.
    My CURRENT CODE :
               PERFORM bdc_dynpro      USING 'XXX_/2L3_BOM_XX'
                                                   '1000'.
                PERFORM bdc_field       USING 'BDC_CURSOR'
                                                   'PA_MATNR'.
                PERFORM bdc_field       USING 'BDC_OKCODE'
                                               '=ONLI'.
                PERFORM bdc_field       USING 'PA_MATNR'
                                                   alv_stb-idnrk.
                PERFORM bdc_field       USING 'PA_STLAN'
                                                   alv_stb-xtlan .
                CALL TRANSACTION 'TCODE '
                                        USING bdcdata
                                        MODE 'E'
                                        UPDATE 'S' .
    Requirement :
    I need to skip the first screen ,This is working ( screen is skiped) Now when i want to come back from the Transaction to my alv report,by pressing back button..this first screen which i skipped is being displayed, which i dont need...how to skip that screen,when pressing F3 from transaction or back button.

    hi shafiq
    *&      Form  zf_user_command
          text
    -->  p1        text
    <--  p2        text
    FORM ZF_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                                      RS_SELFIELD TYPE SLIS_SELFIELD .
        CASE R_UCOMM. "FCODE
    WHEN '&IC1'.   "for hotspot with MATNR.
          IF RS_SELFIELD-FIELDNAME = 'MATNR'.
          SET PARAMETER ID 'MAT' FIELD RS_SELFIELD-VALUE.
          CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
          RETURN.
            MESSAGE I103 WITH RS_SELFIELD-VALUE .
          ENDIF.
    message - material no 'X' shown succesfully
      ENDCASE.
    ENDFORM.                    " zf_user_command
    if it's not taking code..
    delete form..endform..and call it again it might be giving a problem with the old form endform... just try if nothing else works
    the above given logic is fine and working
    reward poitns if helpful
    Rohan

  • Skip first screen & ECC 6 syntax error

    Hi,
    I have program that is in ECC 6 giving syntax error
      call transaction v_tcode using i_bdc options from i_options
                                          messages into i_message
                                          and skip first screen.
    I am getting a syntax error that "The additon AND SKIP FIRST SCREEN" cannot be used with "CALL TRANSACTION USING..."
    Any info how to correct this.
    aRs

    Hi,
    Thanks for your reply.
    The first screen i am calling in my program
        perform bdc_dynpro      using 'SAPMYCTC' '0100'.
        perform bdc_field       using 'BDC_OKCODE' '=ENTR'.
        perform bdc_field       using 'YCTC-CTCNUMBER'
                                      wa_yctc-ctcnumber.
    i am pushing the values to first screen , then i  need to screen skip the first screen
    aRs

  • Call transaction using bdc tab and also skip first screen??

    Hi,
    Please help.
    I want to call transaction PA30 fill it with values which are determined only at runtime and then skip first screen.
    The screen doesn't have parameter fields so i cannot use 'set parameter id'.
    I also cannot create a transaction with parameters as I only have these at runtime.
    Anyone done anything like this???

    hi,
      you might be populateing the itab bdc_tab with the corresponding values fronm the recording.
    while doing the recording go until to the screen wher u want to finsih.
    and populate the bdc_tab wit the ok code,screen number and the value.
    this will do.
    for eg see the code below.
    METHOD analyze_log.
      DATA : wrk_extid TYPE balhdr-extnumber.
      DATA : wrk_date(10) TYPE c.
      DATA : it_rspar TYPE TABLE OF rsparams .
      DATA : wa_rspar TYPE rsparams.
      DATA: it_bdcdata TYPE STANDARD TABLE OF bdcdata,
          wa_bdcdata TYPE bdcdata.
      DATA: params TYPE ctu_params.
      CONSTANTS : object TYPE balhdr-object VALUE 'ZKIV_LOG'.
      IF wa_kopf-vertr_nr IS NOT INITIAL.
        CONCATENATE wa_kopf-vertr_nr '/' wa_kopf-nachtr_nr  INTO wrk_extid.
        wrk_date = '01.09.2006'.
        SET PARAMETER ID 'BALOBJ' FIELD object .
        SET PARAMETER ID 'BALEXT' FIELD wrk_extid.
        wa_rspar-selname = 'ALDATE'.
        wa_rspar-sign = 'I'.
        wa_rspar-kind = 'P'.
        wa_rspar-option = 'EQ'.
        wa_rspar-low = wrk_date.
        APPEND wa_rspar TO it_rspar.
      ELSE.
        CLEAR wrk_extid.
        SET PARAMETER ID 'BALEXT' FIELD wrk_extid.
      ENDIF.
    Update BDC tab
    --Call SLG1 using BDC--&
      params-dismode = 'E'. "Show errors only
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = 'SAPLSLG3'.
      wa_bdcdata-dynpro   = '0100'.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_CURSOR'.
      wa_bdcdata-fval = 'BALHDR-ALDATE'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BALHDR-ALDATE'.
      wa_bdcdata-fval = wrk_date.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_OKCODE'.
      wa_bdcdata-fval = '=SELE'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = 'SAPLSLG3'.
      wa_bdcdata-dynpro   = '0100'.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_OKCODE'.
      wa_bdcdata-fval = '=&F03'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_SUBSCR'.
      wa_bdcdata-fval = 'SAPLSBAL_DISPLAY                        0101SUBSCREEN'.
      APPEND wa_bdcdata TO it_bdcdata.
      CALL TRANSACTION 'SLG1' USING it_bdcdata OPTIONS FROM params.
    --End of BDC--&
    ENDMETHOD.
    here wat i m doing is that i dont want the subscreen 101 to be displayed..
    Message was edited by:
            Sandeep S

  • Call transaction CJIC using bdcdata and skip first screen

    I want to call transaction CJIC and skip first screen. I have set parameters for fields for which I need to pass data. But one field namely display variant has no parameter id. How can I pass value to it and also skip first screen?
    I have tried passing its value in bdcdata and also passing ONLI. But it does not run in mode "N". What can be the solution?

    Hi frnd,
    fortunately transaction CJIC is selection-screen of an executable program RKPEP012.......so u don hav to use call transaction and instead u can use SUBMIT statement................
    submit RKPEP012 WITH SELECTION-TABLE rspar
    Effect
    If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
    SELNAME (length 8),
    KIND (length 1),
    SIGN (length 1),
    OPTION (length 2),
    LOW (length 45),
    HIGH (length 45).
    To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
    SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
    KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
    SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
    If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
    The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
    Notes
    In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary.
    When entering values, you must ensure that these are entered in the internal format of the ABAP values, and not in the output format of the screen display.
    Revert back for queries.
    Cheers,
    Will.

  • Call Transaction - both Skip first screen and USING in one

    Hi Experts,
    I have to call a Tcode which is for a report painter report and I have to fill the selection screen parameters for that report. Nothing is mandatory but it will be filled in select option field.
    My issue is I can only call this Tcode with all the parameters when I use USIING with BDC. but I also want to skip the selection screen so that only the final output gets displayed.
    I tried SET PARAMETER ID but I am filling the select-options range from a custom table so don't know how to achieve that.
    Any suggestions !!!

    See here: [sdn wiki - Batch input FAQ - Is it possible to simulate AND SKIP FIRST SCREEN using BDC?|http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-IsitpossibletosimulateANDSKIPFIRSTSCREENusingBDC%3F]

  • Call Transaction and skip first screen on workflow task

    Hello, I'm developing  a workflow with a user decison step, where the user should fill some data in transaction FD02.
    When the user presses the button in the workitem, the wf goes to a step where i should call transaction FD02.
    I'm using SET PARAMETER ID: 'KUN' FIELD customer.  to fill the customer field and CALL TRANSACTION 'FD02' AND SKIP FIRST SCREEN.
    But when I press the button in the workitem nothing happens. I tested the same in a report and it works. Can anybody help me?
    Thanks a lot.

    Hi,
    try below code
    data: fcode type FCODE value 'ANTRAGAEN',
           customer type kunner,
           bukrs type bukrs.
    SET PARAMETER ID  'KUN' FIELD customer. "  to fill the customer field
    SET PARAMETER ID  'BUK' FIELD companycoder. " to fill the company code
    SET PARAMETER ID  'TTC' FIELD fcoder.       " to fill Function code for enter " it may be other than TTC please check.
    CALL TRANSACTION 'FD02' AND SKIP FIRST SCREEN.

  • CALL TRANSACTION AND SKIP FIRST SCREEN to specified tab in TCODE 'IW32'

    Hi,
    I am using CALL TRANSACTION AND SKIP FIRST SCREEN in ALV Grid Report to call IW32 tcode and it goes to tcode skipping the first screen. But it goes to the default header tab in the tab control. Whereas I wish to go to the specified tab 'OPERATIONS'.
    Can any one help me, as to how to resolve this issue ?
    Thanks in advance.

    Sridher,
    I have the similar requirement. but in my case its COSTS tab. Could you please provide the code you have used for this to work?
    I used standard "call transaction with mode 'E' ". This seems to be working but I am not pleased by my effort. Is there any proper way that you might have followed ?
    Greatly appreciated your help.
    Regards,
    Reddy

  • Call Transaction and skip first screen in SE37

    Hi All,
    I want call transaction SE37 and skip first screen of it. Is it possible through the statemen Call transaction 'SE37' and skip first screen ?.
    Of course I have populated the parameter id 'LIB' before this statement but it is not working. Though I have found several posts with this solution but it's not working for me. Could anyone please let me know if this can be done using this statement or there are any other additions required along with this statement or it is not at all possible to achieve this functionality.
    Thanks in advance !!.

    Solved! without a solution? very funny.
    In somewhere of second screen related bdcdata, intensionlly make a mistake to force the system throws the error and the call the trasnaction with mode 'E'. This will solve the issue.
    perform bdc_field       using 'BDC_CURSO'                   " I removed letter R in 'BDC_CURSO'
                                                 'ISEG-ERFMG(01)'.
    CALL TRANSACTION 'XXXX' USING BDCDATA MODE 'E'.
    Thanks.
    Suresh Yerra.

  • How to skip first screen while calling transaction

    Hi all,
    I am using interactive alv.
    if i select one line and press details
    that must go to another screen.
    In that i must skip first screen and directly go to the details of that first screen.
    suppose i am using the code as follows
    call transaction mm01 and skip first screen
    this is giving me error.
    how to solve the problem.
    thanks and regards,
    giri.

    hi giri,
    For ur requirement, u can use SKIP FIRST SCREEN addition for CALL TRANSACTION Command.
    Before this, u have to use SET PARAMETER ID Command to pass the required values for transaction.
    Example, In transaction VA01, we have to set parameter AUN to pass the sale order number to the transaction.
    <b>
    AT LINE-SELECTION .
    SET PARAMETER ID 'AUN' FIELD w_vbeln.
    CALL TRANSACTION 'VA01' AND SKIP FIRST SCREEN .</b>
    where w_vbeln contains the sale ordre number. Now VA01 runs for this sale order number..... And AUN is the PARAMETER to be set before calling VA01 TCODE.
    similarly, check the PARAMETER associated with MM01 Tcode and initialize that parameter and call the code in the similar way.
    To check parameter Id of MM01,
    1) Enter MM01 Transaction
    2) Press F1 on Material Field
    3) Select Technical Info
    4) u can find Parameter ID associated with this field.
    check these links for full details.
    call transaction...
    http://help.sap.com/saphelp_47x200/helpdata/en/78/21761c51ce11d189570000e829fbbd/frameset.htm
    at line selection,
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba2c435c111d1829f0000e829fbfe/frameset.htm
    get/set parameter:
    http://help.sap.com/saphelp_nw04/helpdata/en/5b/7bc3775d1111d295ad0000e82de14a/frameset.htm
    Reward me if useful........
    Harimanjesh AN

  • Problem with CALL TRANSACTION  SKIP FIRST SCREEN

    Hi Experts,
    I am having a functionality where in if i click the hotspot i go the specified transaction..I am able to do that using --
    CALL TRANSACTION 'CAA3' AND SKIP FIRST SCREEN
    Now if i press the back button on the standard transaction i am coming to the first screen of the CAA3 transaction..
    Can i come back to my original ALV display instead of coming to the first screen of the CAA3 transaction which i have skipped while going there..
    I have searched in all forums. But i couldn't get the proper solution.
    Please Help me !!!
    Regards,
    Rajesh

    Hi friends,
    What do you think the results?
    I used alv hotspot.
    FORM user USING  r_ucomm LIKE sy-ucomm rs_selfield
                              TYPE slis_selfield .
       READ TABLE gt_alv INTO gs_alv INDEX rs_selfield-tabindex.
       IF rs_selfield-fieldname EQ 'BELGE'.
         SET PARAMETER ID '80B' FIELD gs_alv-belge.
         CALL TRANSACTION 'FPE3' AND SKIP FIRST SCREEN.
       ELSEIF rs_selfield-fieldname EQ 'GPART'.
         SET PARAMETER ID 'BPA' FIELD gs_alv-gpart.
         CALL TRANSACTION 'FPP3' AND SKIP FIRST SCREEN.
       ELSEIF rs_selfield-fieldname EQ 'VKONT'.
         SET PARAMETER ID 'KT0' FIELD gs_alv-vkont.
         CALL TRANSACTION 'CAA3' AND SKIP FIRST SCREEN.
       ENDIF.
    FPE3 and FPP3 is running. But CAA3 is incorrect.
    is the correct answer enhancement ?

  • CALL TRANSACTION 'MIR6' AND SKIP FIRST SCREEN .

    Hi all,
    i hope there is someone that can help me.
    My problem is: in an ABAP custom report in a FORM user-command my code is
      CASE ls_selfield-sel_tab_field.
        WHEN 'ITAB-BELNR'.
          IF NOT ls_selfield-value IS INITIAL.
            SET PARAMETER ID 'RBN' FIELD ls_selfield-value.
            CALL TRANSACTION 'MIR6' AND SKIP FIRST SCREEN .
      ENDCASE.
    When i click on output field of my report, not skip first screen but only call MIR6!!!
    How can i solve this problem? 
    Regards.

    Hi,
    First of all Please don't use all Caps for Subject Line
    Test Following Sample Code it will solve out your problem,
    DATA: it_bdcdata TYPE TABLE OF bdcdata,
          wa_it_bdcdata LIKE LINE OF it_bdcdata,
          belnr(10).
    belnr = '100'. " Give Document Number here
    DATA opt TYPE ctu_params.
    CLEAR wa_it_bdcdata.
    wa_it_bdcdata-program  = 'SAPMM08N'.
    wa_it_bdcdata-dynpro   = '100'.
    wa_it_bdcdata-dynbegin = 'X'.
    APPEND wa_it_bdcdata TO it_bdcdata.
    CLEAR wa_it_bdcdata.
    wa_it_bdcdata-fnam = 'BDC_CURSOR'.
    wa_it_bdcdata-fval = 'SO_BELNR-LOW'.
    APPEND wa_it_bdcdata TO it_bdcdata.
    CLEAR wa_it_bdcdata.
    wa_it_bdcdata-fnam = 'SO_BELNR-LOW'.
    wa_it_bdcdata-fval = BELNR.
    APPEND wa_it_bdcdata TO it_bdcdata.
    CLEAR wa_it_bdcdata.
    wa_it_bdcdata-fnam = 'BDC_OKCODE'.
    wa_it_bdcdata-fval = '=CRET'.
    APPEND wa_it_bdcdata TO it_bdcdata.
    opt-dismode = 'E'.
    CALL TRANSACTION 'MIR6' USING it_bdcdata OPTIONS FROM opt.
    Please Reply if any Issue,
    Best Regards,
    Faisal

  • CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.

    Hi,
    i'm using this in an report.
    SET PARAMETER ID 'BES' FIELD WA_ITAB-EBELN.
    SET PARAMETER ID 'BSP' FIELD WA_ITAB-EBELP.
    CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
    It works OK.
    Is there any parameter ID to go in a sprecial part of an PO, for example
    direct to materialdata or konditions?.
    thanks.
    Regards, Dieter

    Hi,
    I think u can do that by using BDC as used in this code please refer to this code.
    FORM get_user_command USING cr_ucomm     LIKE sy-ucomm      "#EC *
                                cr_selfield TYPE slis_selfield.
      CLEAR wa_final.
      DATA BEGIN OF bdcdata OCCURS 10.
              INCLUDE STRUCTURE bdcdata.
      DATA END OF bdcdata.
      CASE cr_ucomm.
        WHEN '&IC1'.
          READ TABLE it_final INTO wa_final
                   INDEX cr_selfield-tabindex.
          IF cr_selfield-fieldname = 'MATNR'.
            IF sy-subrc IS INITIAL.
              SET PARAMETER ID 'MXX' FIELD 'E'.
              SET PARAMETER ID 'MAT' FIELD wa_final-matnr.
              SET PARAMETER ID 'WRK' FIELD wa_final-werks.
              CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
            ENDIF.
          ELSEIF cr_selfield-fieldname = 'LIFNR'.
            IF sy-subrc IS INITIAL.
              CLEAR bdcdata.
              bdcdata-program  = 'SAPMF02K'.
              bdcdata-dynpro   = '0101'.
              bdcdata-dynbegin = 'X'.
              APPEND bdcdata.
              CLEAR bdcdata.
              bdcdata-fnam     = 'RF02K-LIFNR'.
              bdcdata-fval     = wa_final-lifnr.
              APPEND bdcdata.
              CLEAR bdcdata.
              bdcdata-fnam     = 'RF02K-EKORG '.
              bdcdata-fval     = wa_final-ekorg.
              APPEND bdcdata.
              CLEAR bdcdata.
              bdcdata-fnam     = 'RF02K-D0310'.
              bdcdata-fval     = 'X'.
              APPEND bdcdata.
              CLEAR bdcdata.
              bdcdata-fnam     = 'WRF02K-D0320'.
              bdcdata-fval     = 'X'.
              APPEND bdcdata.
              CLEAR bdcdata.
              bdcdata-fnam     = 'BDC_OKCODE'.
              bdcdata-fval     = '/00'.
              APPEND bdcdata.
              CLEAR bdcdata.
              bdcdata-program  = 'SAPMF02K'.
              bdcdata-dynpro   = '0110'.
              bdcdata-dynbegin = 'X'.
              APPEND bdcdata.
              CALL TRANSACTION 'XK03' USING bdcdata MODE 'E'.
            ENDIF.
          ENDIF.
      ENDCASE.
    ENDFORM.  " get_user_command
    regards,
    sudha

  • CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN?

    Hi, Gurus:
    In my program, after I call 'CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.'    in the va02, user maybe do some change and save
    then I want to get those change as the dollowing:
        select single uvall into c_complete_flag from vbuk
         where vbeln = lv_vbeln.
    why I can't get the latest change.
    Thanks,

    VA02 usese the asynchronus update mehtod so, it gives you the message like "Order 1111 was saved" but the database update is still going on.
    So, you need to wait for some time before facthing the data from the database.
    You can use like:
    WAIT UP TO 10 SECONDS.
    But this statement will force you to wait for atleast 10 seconds before doing any thing.
    Regards,
    Naimesh Patel

  • Call Transaction Skip First Screen does not work

    I want to use 'Call Transaction' to execute the transaction /sapapo/scc_tl1 in Change Mode.  I want to  skip the first screen.  I have added 'and skip first screen' to the CALL TRANSACTION but it still stops on the first screen.  The first screen has three buttons: Display, Change and Create.  The function key assigned to Change is F6.  What is the code to select the F6 key so the first screen can be bypassed.
    Thanks and best regards,
    Sandy

    THE ONLY THINK U HAVE TO DO IS RECORD THE TRANSACTION FOR
    CHANGE MODE. AND FILL INTERNAL TABLE OF TYPE BDCDATA AND CALL TRANSACTION.
    EXAMPLE: I CALLED SE93 IN CHANGE MODE. COPY AND RUN THE FOLLOWING PROGRAM, U CAN UNDERSTAND WHAT IAM TELLING.
    REPORT ZTESTH messAGE-ID ZV.
    DATA: IBDCTAB TYPE TABLE OF BDCDATA WITH HEADER LINE.
    IBDCTAB-PROGRAM = 'SAPLSEUK'.
    IBDCTAB-DYNPRO = '390'.
    IBDCTAB-DYNBEGIN = 'X'.
    IBDCTAB-FNAM = 'BDC_OKCODE'.
    IBDCTAB-FVAL = '=CHNG'.
    APPEND IBDCTAB.
    IBDCTAB-PROGRAM = 'SAPLSETX'.
    IBDCTAB-DYNPRO = '0120'.
    IBDCTAB-DYNBEGIN = 'X'.
    IBDCTAB-FNAM = 'BDC_OKCODE'.
    IBDCTAB-FVAL = '=NEXT'.
    APPEND IBDCTAB.
    CALL TRANSACTION 'SE93' USING IBDCTAB.

Maybe you are looking for