SAP DYNPRO SUBSCREEN ABEXA
Get Example source ABAP code based on a different SAP table
ABAP_DYNPRO - Subscreens
This example demonstrates how to include subscreens.
ABAP_SOURCE_CODE
ABAP_DESCRIPTION
The static next dynpro number of dynpro 100 is 100. Four pushbuttons with function 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 dynpro flow logic of subscreen dynpros 110 and 130 is:
MODULE fill_0110$|0130.
PROCESS AFTER INPUT.
MODULE user_command_0110$|0130.>
The dynpro flow logic of subscreen dynpros 120 and 140 is:
MODULE fill_0120$|0150.
PROCESS AFTER INPUT.>
When the program is executed, a screen appears on which subscreens 110 and 130 are displayed. The pushbuttons on the main dynpro allow the user to choose between two subscreen dynpros for each screen area. The pushbuttons on the subscreen dynpros 110 and 130 allow data to be passed to the subscreen dynpros 120 and 140.
Since all subscreen dynpros use the same field name
The function code of the pushbuttons of the subscreen dynpros is different and regular handling in an ABAP field is enough. If the function codes had the same names, it would be necessary to use multiple helper fields here as well.