ABAP Program to add Dynamic Parameter Text on Selection-Screen

We can also display the Dynamic Parameter Text for the parameters in the selection screen. In this context, we have to use %_parameter_%_APP_%-TEXT to pass value to the parameter text at runtime/dynamically.

Display Dynamic Parameter Name

Display Dynamic Parameter Name

Code Snippet to show dynamic parameter text 
*———————————————————————
*Shows how to give the selection screen parameter name by
*  using coding
*———————————————————————
REPORT  ZTEST_DY_PARA_NAME.
DATA: w_carrid TYPE sflight-carrid.
*** Selection Screen
SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME TITLE aaa.
SELECT-OPTIONS:   s_carrid FOR w_carrid.
SELECTION-SCREEN: END   OF BLOCK blk1.
INITIALIZATION.
* Description for the parameter  
if sy-uname = ‘NAVEENVISHAL’.    
%_s_carrid_%_app_%-text = ‘Carrier ID’.  
else.    
%_s_carrid_%_app_%-text = ‘Flight ID’.  
endif. 

You might also be interested in these posts:

  1. ABAP Program to Add Toolbar to Selection-Screen
  2. ABAP Program to Search For SMARTFORMS in your Language
  3. ABAP Program to Display OAER pictures on Screen
  4. ABAP Program to Display SE78 pictures on Screen
  5. ABAP Program to Unlock Login ID in SAP

One Response to “ABAP Program to add Dynamic Parameter Text on Selection-Screen”
Kalyan Posted on July 24, 2009 at 1:25 PM

Nice article.. thanks

Post a Comment