SAP SEL SCREEN WITH SUBSCR ABEXA

Get Example source ABAP code based on a different SAP table
  


ARTICLE

Subscreens on Selection Screens
The example shows how to include subsceens in selection screens.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
Displaying subscreens in subscreen areas on selection screens is a special case of tabstrips being used on selection screens. Defining a subscreen area is similar to defining a tabstrip area without a tab title. Before the selection screen is sent, you must assign a subscreen to the subscreen area sub. To do this, you use the components prog and dynnr of the identically named structure sub which is generated automatically by the statement above. The component prog must be assigned the program name of the subscreen, and the component dynnr must be assigned the screen number of the subscreen.
This program defines three subscreen selection screens, 100, 200, and 300. On the standard selection screen, a subscreen area sub is created. In addition, two pushbuttons are enabled in the application toolbar.
At the INITIALIZATION event, the system assigns the subscreen selection screen 100 to the subscreen area. At the AT SELECTION-SCREEN event, the system evaluates the function keys and assigns them to one of the other subscreens accordingly.