ABAP Keyword Documentation → ABAP − Reference → Calling and leaving program units → Calling Programs → Calling Transactions → CALL TRANSACTION → Transaction Call - Examples
Transaction Call, BDC Table
This example shows how a transaction is called using a batch input table.
Other versions: 7.31 | 7.40 | 7.54
Source Code
DATA class_name TYPE c LENGTH 30 VALUE 'CL_ABAP_BROWSER'.
DATA bdcdata_tab TYPE TABLE OF bdcdata.
DATA opt TYPE ctu_params.
bdcdata_tab = VALUE #(
( program = 'SAPLSEOD' dynpro = '1000' dynbegin = 'X' )
( fnam = 'BDC_CURSOR' fval = 'SEOCLASS-CLSNAME' )
( fnam = 'SEOCLASS-CLSNAME' fval = class_name )
( fnam = 'BDC_OKCODE' fval = '=WB_DISPLAY' ) ).
opt-dismode = 'E'.
opt-defsize = 'X'.
TRY.
CALL TRANSACTION 'SE24' WITH AUTHORITY-CHECK
USING bdcdata_tab OPTIONS FROM opt.
CATCH cx_sy_authorization_error ##NO_HANDLER.
ENDTRY.
Description
Call Class Builder (transaction SE24) and display the class CL_ABAP_BROWSER. The required authorization
is checked by using the addition WITH AUTHORITY-CHECK. The internal table bdcdata_tab contains the entry for the processing of the first dynpro
(1000) in the transaction. The structure opt is used to configure processing to skip the first screen and display the subsequent screen in standard size.