Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Callind second screen using interactive ALV.

Former Member
0 Likes
800

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)

2 REPLIES 2
Read only

venkateswaran_k
Active Contributor
722

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.
Read only

Sandra_Rossi
Active Contributor
0 Likes
722

Hmm, the screen information says that the field "table name" is assigned the following parameter ID:

DTB

Why 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.