Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Calling and leaving program units →  Calling ABAP Programs →  Calling Transactions →  CALL TRANSACTION →  Transaction Call - Examples 

Transaction Call, BDC Table

The example shows how to call a transaction using a batch input table.

Other versions: 7.31 | 7.40 | 7.54

Source Code

    DATA class_name TYPE c LENGTH 30 VALUE 'CL_SPFLI_PERSISTENT'.

    DATA: bdcdata_wa  TYPE bdcdata,
          bdcdata_tab TYPE TABLE OF bdcdata.

    DATA opt TYPE ctu_params.

    CLEAR bdcdata_wa.
    bdcdata_wa-program  = 'SAPLSEOD'.
    bdcdata_wa-dynpro   = '1000'.
    bdcdata_wa-dynbegin = 'X'.
    APPEND bdcdata_wa TO bdcdata_tab.

    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'BDC_CURSOR'.
    bdcdata_wa-fval = 'SEOCLASS-CLSNAME'.
    APPEND bdcdata_wa TO bdcdata_tab.

    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'SEOCLASS-CLSNAME'.
    bdcdata_wa-fval = class_name.
    APPEND bdcdata_wa TO bdcdata_tab.

    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'BDC_OKCODE'.
    bdcdata_wa-fval = '=WB_DISPLAY'.
    APPEND bdcdata_wa TO bdcdata_tab.

    opt-dismode = 'E'.
    opt-defsize = 'X'.

    CALL TRANSACTION 'SE24' USING bdcdata_tab OPTIONS FROM opt.

Description

Call Class Builder (transaction SE24) and display the class CL_SPFLI_PERSISTENT. The internal table bdcdata_tab contains the entry for the processing of the first screen (1000) in the transaction. You use the structure opt to configure processing to skip the first screen and display the subsequent screen in standard size.