Hi
You may have attached user command to your tabs in definition -
<b>DATA : TAB1, TAB2.
SELECTION-SCREEN BEGIN OF TABBED BLOCK TB FOR 2 LINES.
SELECTION-SCREEN TAB (15) TABNAME1 USER-COMMAND TAB1 DEFAULT SCREEN 101.
SELECTION-SCREEN TAB (15) TABNAME2 USER-COMMAND TAB3 DEFAULT SCREEN
102.
...
...</b>
Now in
<b>
INITIALIZATION.
TABNAME1 = 'TAB1'.
TABNAME2 = 'TAB2'.
AT SLECTION-SCREEN.
IF TB-ACTIVETAB = 'TAB1'.
TAB1 = 'X'.
TAB2 = ' '.
ELSE.
TAB1 = ' '.
TAB2 = 'X'.
ENDIF.
START-OF-SELECTION.
IF TAB1 = 'X'.
PERFORM ROUTINE_FOR_TAB1.
ELSE.
PERFORM ROUTINE_FOR_TAB2.
ENDIF.</b>
Cheers.
( Dont forget to reward if answers helped )
Welcome to SDN.
If u have two radio or checkbox in ur selction screen and depending on the selection made if u display the tabs then u can arrive what u want.
Else the default tab will be the first one and u cant get the output in background mode.
By default this will show the first tab.
Hope u got it. Gte back if u have any queries.
Add comment