Sunday, May 12, 2013

Create Dynamic parameter

REPORT  zdypara.

DATA: w_carrid TYPE sflight-carrid.

*** Selection Screen
SELECTION-SCREENBEGIN OF BLOCK blk1 WITH FRAME TITLE aaa.
 SELECT-OPTIONS:   s_carrid FOR w_carrid.
SELECTION-SCREENEND   OF BLOCK blk1.
INITIALIZATION.

* Description for the parameter
if sy-uname = 'USER1'.
 %_s_carrid_%_app_%-text = 'Carrier ID'.
else.
 %_s_carrid_%_app_%-text = 'Flight ID'.
endif.

No comments:

Post a Comment