activetab . The other components are filled with the values specified
for DEFAULT when the selection screen is sent. The first page is
displayed as standard.
Latest notes: If an assigned subscreen screen is not a selection screen,
the dialog modules that are accessed during its flow logic must be
defined in the current program. If an assigned subscreen screen is a
selection screen, user actions on the
subscreen lead to the event AT
SELECTION-SCREEN . This includes when the user chooses a tab title.
The event AT SELECTION-SCREEN is executed first for the subscreen
included in the selection screen and then for the selection screen
itself.
Example ABAP Coding Definition of a tabstrip control mytab on the
standard selection screen and
inclusion of the selection screens 100 und 200 , which are
defined as subscreen screens, in an executable program. The assignment
of the subscreen screens to the tab titles takes place dynamically. For
an example of a static assignment with the addition DEFAULT ,
refer to SELECTION-SCREEN - AS
SUBSCREEN .
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
PARAMETERS: p1 TYPE c LENGTH 10,
p2 TYPE c LENGTH 10,
p3 TYPE c LENGTH 10.
SELECTION-SCREEN END OF SCREEN 100.
SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
PARAMETERS: q1 TYPE c LENGTH 10,
q2 TYPE c LENGTH 10,
q3 TYPE c LENGTH 10.
SELECTION-SCREEN END OF SCREEN 200.
SELECTION-SCREEN: BEGIN OF TABBED BLOCK mytab FOR 10 LINES,
TAB (20) button1 USER-COMMAND push1,
TAB (20) button2 USER-COMMAND push2,
END OF BLOCK mytab.
INITIALIZATION.
button1 = 'Selection Screen 1'.
button2 = 'Selection Screen 2'.
mytab-prog = sy-repid.
mytab-dynnr = 100.
mytab-activetab = 'PUSH1'.
AT SELECTION-SCREEN.
CASE sy-dynnr.
WHEN 1000.
CASE sy-ucomm.
WHEN 'PUSH1'.
mytab-dynnr = 100.
WHEN 'PUSH2'.
mytab-dynnr = 200.
WHEN OTHERS.
...
ENDCASE.
...
ENDCASE.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved