Get Example source ABAP code based on a different SAP table
ABAP_SELSCR -Subscreens This example demonstrates how to include subscreens in selection screens.
ABAP_SOURCE_CODE ABAP_EXEC >
ABAP_DESCRIPTION Displaying subscreens in subscreen areas on selection screens is a special case of tabstrips on selection screens. Defining a subscreen area is similar to defining a tabstrip area without a tab title. Before the selection screen is sent, a subscreen must be assigned to the subscreen area sub>. This is done using the components prog> and dynnr> of the identically named structure sub>, which itself is created automatically by the statement above. The component prog> must be assigned to the program name of the subscreen, and the component dynnr> must be assigned to the dynpro number of the subscreen. This program defines three subscreen selection screens: 100, 200, and 300. It also defines a subscreen area sub> on the standard selection screen. There are two pushbuttons in the application toolbar. In the INITIALIZATION> event, the subscreen selection screen 100 is assigned to the subscreen area. In the AT SELECTION-SCREEN> event, the function keys are evaluated and assigned to one of the other subscreens accordingly.