ARTICLE
Screens, Dynamic Screen Modification
The example shows how to modify screen fields at runtime.
ABAP_SOURCE_CODE
ABAP_EXEC
ABAP_DESCRIPTION
The static next screen number of screen 100 is 100. The input and output
fields have been copied from the structure
DEMO_CONN of the ABAP Dictionary. The bottom-most four input
and output fields are assigned to the modification group MOD . The
screen flow logic is as follows:
PROCESS BEFORE OUTPUT.
MODULE status_0100.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
MODULE user_command_0100.
In GUI status SCREEN_100 , the function code TOGGLE is
linked to a pushbutton. When the program is called, the bottommost four
input and output fields are displayed as not ready for input since the
variable flag initially contains a blank. The user can switch the
ready-for-input status on and off using Display/Change .
Program
DEMO_DYNPRO_MODIFY_SCREEN demonstrates further dynamic screen
modifications.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved