Subscreen can be created in selection screen using ABAP ststement and can be used with tabstrip defined on the selection
screen or with the screen defined in the screen painter.
SELECTION-SCREEN BEGIN OF SCREEN screen_number AS SUBSCREEN NO-INTERVALS.
SELECTION-SCREEN END OF SCREEN screen_number .
to use such a subscreen with tabstrip defined on the selection screen we should
use the DYNNR compnent of the structure which is created when the tabstrip is created and specifying the number
of the screen .We can also define the subscreen statically for such a tabstrip by using
DEFAULT PROGRAM program SCREEN subscreen_number when declaring a tabstrip in selection screen.
SELECTION-SCREEN BEGIN OF TABBED BLOCK tab_area FOR height LINES.
SELECTION-SCREN TAB (width)tab_name USER_COMMAND funct_code DEFAULT program SCREEN subscreen_no .
END OF BLOCK tab_area .
For each tabbed apge TAB addition is used with SELECTION-SCREEN statement. At the initialization event we can fill
the tabstrip structure to dsiplay the default screen or specify it with DEFAULT addition.
tab_area-PROGRAM = SY-REPID.
tab_area-DYNNR = subscreen_nummber.
tab_area-ACTIVETAB = tabname.