‎2020 May 04 8:03 AM
how to pass default table name into second screen in se16.
WHEN 'tablename'.
READ TABLE it_tab INTO wa_tab INDEX selfield-tabindex.
SET PARAMETER ID 'DFD' FIELD wa_tab-tablename.
CALL TRANSACTION 'SE16' AND SKIP FIRST SCREEN.
when I double click on the table name it should take me to the display of second screen of SE16 transaction (Selection screen of SE16 for giving values to the table fields)
‎2020 May 04 8:34 AM
Hi
You cannot skip two screens. However, you can manage it using BDC.. as below:
Declare BDC variables
DATA:
gs_options TYPE ctu_params,
gs_bdcdata TYPE bdcdata,
gt_bdcdata TYPE bdcdata_tab.
Assign BDC session
gs_bdcdata-dynbegin = 'T'.
gs_bdcdata-fnam = 'SE16'.
APPEND gs_bdcdata TO gt_bdcdata.
*
CLEAR: gs_bdcdata.
gs_bdcdata-program = 'SAPLSETB'.
gs_bdcdata-dynpro = '0230'.
gs_bdcdata-dynbegin = 'X'.
APPEND gs_bdcdata TO gt_bdcdata.
*
CLEAR: gs_bdcdata.
gs_bdcdata-fnam = 'DATABROWSE-TABLENAME'.
gs_bdcdata-fval = your variable goes here.
APPEND gs_bdcdata TO gt_bdcdata.
CLEAR: gs_bdcdata.
gs_bdcdata-fnam = 'BDC_OKCODE'.
gs_bdcdata-fval = '=ANZE'.
APPEND gs_bdcdata TO gt_bdcdata.
*
CLEAR: gs_bdcdata.
gs_bdcdata-program = '/1BCDWB/DBKNB1'.
gs_bdcdata-dynpro = '1000'.
gs_bdcdata-dynbegin = 'X'.
APPEND gs_bdcdata TO gt_bdcdata.
*
CLEAR: gs_bdcdata.
gs_bdcdata-fnam = 'I2-LOW'.
gs_bdcdata-fval = p_bukrs.
APPEND gs_bdcdata TO gt_bdcdata.
CLEAR: gs_bdcdata.
gs_bdcdata-fnam = 'BDC_OKCODE'.
gs_bdcdata-fval = '=ONLI'.
APPEND gs_bdcdata TO gt_bdcdata.
and call the transaction
gs_options-dismode = 'E'.
gs_options-updmode = 'S'.
CALL TRANSACTION 'SE16' USING gt_bdcdata
OPTIONS FROM gs_options.
‎2020 May 04 1:22 PM
Hmm, the screen information says that the field "table name" is assigned the following parameter ID:
DTBWhy do you use DFD?
The following code works for me, it displays the screen containing the list of fields of DD04L:
SET PARAMETER ID 'DTB' FIELD 'DD04L'.
CALL TRANSACTION 'SE16' AND SKIP FIRST SCREEN.