SAP DYNPRO SUBSCREEN ABEXA
Get Example source ABAP code based on a different SAP table
ARTICLE
Dynpros, Subscreens
The example demonstrates how to include subscreens.
ABAP_SOURCE_CODE
ABAP_DESCRIPTION
The static next-screen number of dynpro 100 is 100. Four pushbuttons with functions codes
MODULE status_100.
CALL SUBSCREEN: area1 INCLUDING sy-repid number1,
area2 INCLUDING sy-repid number2.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
MODULE save_ok.
CALL SUBSCREEN: area1,
area2.
MODULE user_command_100.
The screen flow logic of the subscreen dynpros 110 and 130 is:
MODULE fill_0110|0130.
PROCESS AFTER INPUT.
MODULE user_command_0110|0130.
The screen flow logic of the subscreen dynpros 120 and 140 is:
MODULE fill_0120|0150.
PROCESS AFTER INPUT.
When executing the program, the user sees a screen that displays the subscreens 110 and 130. The user can use the pushbuttons of the main dynpro to switch between two subscreen dynpros for each subscreen area and the pushbuttons on the subscreen dynpros 110 and 130 to pass data to the subscreen dynpros 120 and 140.
Since on all subscreen dynpros the same field name
The function code of the pushbuttons of the subscreen dynpros differs, so that the usual handling in an ABAP field is sufficient. If the function codes had the same names, too, than several auxiliary fields would have to be used here as well.