Implementing a subscreen to an ABAP dynpro screen with SAP


Creating a subscreen on a ABAP dynpro screen is a fairly simple process, you just add a subscreen area (i.e. GD_SUBSCREENAREA) to your main program screen and then add the following ABAP code to the dynpro screens PBO flow logic.

For this example the main screen is 0100 and the subscreen is 0110. You then build the subscreen content as you would any other screen


*dynpro PBO flow logic for screen 0100
PROCESS BEFORE OUTPUT.
 MODULE STATUS_0100.
 CALL SUBSCREEN GD_SUBSCREENAREA INCLUDING  'program_name'  'subscreen_number'.
*   i.e. CALL SUBSCREEN GD_SUBSCREENAREA INCLUDING 'ZSAPPROG'  '0110'.
PROCESS AFTER INPUT.
 MODULE USER_COMMAND_0100.

Related Articles

ABAP Dialog Programming Techniques - BC410
Insert image onto SAP screen
Insert image onto SAP screen
Creating your first ABAP dialog screen program in SAP
SAP ABAP dynpro programs, dialog screen programs with input fields, buttons, OO ALV grids etc..
SAP ABAP dynpro programs, dialog screen programs with input fields, buttons, OO ALV grids etc..
SAP dialog screen / dynpro Exit Command
Dialog programming, dynpro screen field validation
SAP Graphics Development - Example code and information on various areas of graphics development
Grouping SAP dynpro screen radiobuttons
Add a dropdown list to a SAP dynpro screen using the Listbox option
F4 help functionality for a dynpro screen field using the PROCESS ON VALUE-REQUEST statement