SAP DYNPRO FIELD ABEXA

Get Example source ABAP code based on a different SAP table
  


ARTICLE

Screens, FIELD Statement
The example shows how to transport data using the statement FIELD .

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
The static next screen number of screen 100 is 100. The checkboxes which are ready for input have been assigned the screen fields box1, box2, box3, and box4. The screen flow logic is as follows: PROCESS BEFORE OUTPUT.
MODULE init_screen_100.
PROCESS AFTER INPUT.
MODULE user_command_0100.
MODULE module_1.
FIELD box2.
MODULE module_2.
FIELD: box1, box3.
MODULE module_3.
In GUI status STATUS_100 the Cancel icon (F12) has been activated using function code CANCEL. If the user selects the checkboxes ready for input and triggers the PAI event by pressing Enter, the output fields indicate which screen field is available in which dialog module.
Screen field box4 is transported in the event PAI since it is not contained in any FIELD statement.
Screen field box2 is only transported before the dialog module module_2 is called and is therefore not available in user_command_0100 and module_1.
Screen fields box1 and box3 are only transported before the dialog module module_3 is called and are only available in this module.