SAP SEL SCREEN WITH TABSTRIP ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_SELSCR -Tabstrips
The example demonstrates how tabstrips can be included in selection screens.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
This program defines two selection screens 100 and 200 as subscreens, and places a tabstrip control area with three tab pages on the standard selection screen. A subscreen dynpro 300 (from the same program) is assigned statically to the third tab page.
The input/output fields of dynpro 300, p1 to q3, are created by copying the selection parameters from the ABAP program and are assigned to the modification group MOD. The pushbutton has the function code TOGGLE. The dynpro flow logic for dynpro 300 is as follows: PROCESS BEFORE OUTPUT.
MODULE init_0100.
PROCESS AFTER INPUT.
MODULE user_command_0100.
Both dialog modules are defined in the ABAP program.
The standard selection screen appears when the program is executed. At the event INITIALIZATION, the tab title texts are determined, the subscreen selection screen 100 is assigned initially to the tabstrip area, and the first tab title is activated.
User actions on the selection screen are evaluated in the AT SELECTION-SCREEN event block. In particular, when the first two tab titles are selected, the corresponding subscreens are assigned dynamically and tab titles are activated. This is not necessary for the third tab title, since the static assignment of dynpro 300 is automatically placed in the structure mytab when the title is selected.
Before the subscreen screen is displayed, the PBO module init_0100 is executed. User actions on the subscreen screen raise the PAI module. This includes the selection of a tab title. After that, the AT SELECTION-SCREEN event is raised.
Messages in the status bar show where an action has been processed.