SAP DYNPRO FIELD CHAIN ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_DYNPRO - Input Checks in Dialog Modules
This example demonstrates how to check input fields in dialog modules.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
The static next dynpro number of dynpro 100 is 100. The input fields are assigned the dynpro fields input1 to input6. The function code of the pushbutton is EXECUTE.
In the GUI status STATUS_100, the symbol Cancel (F12 ) is activated by the function code CANCEL with the function type E. The function key F8 is assigned the function code EXECUTE without a special function type. The dynpro flow logic is as follows: PROCESS BEFORE OUTPUT.
MODULE init_screen_100.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
FIELD input1 MODULE module_1.
FIELD input2 MODULE module_2.
FIELD input3 MODULE module_3.
CHAIN.
FIELD input4.
MODULE chain_module_1.
FIELD input5.
FIELD input6 MODULE chain_module_2.
ENDCHAIN.
MODULE execution.
The fields input1 to input3 are checked separately in the modules module_1 to module_3. As long as the user does not enter a corresponding value, the screen layout is repeatedly displayed with the appropriate field ready for input.
The fields input4 to input6 are checked together in the processing chain. If input4 does not match the condition in chain_module_1, all three fields are made ready for input again. The same applies if the three fields do not fulfill the condition in chain_module_2.
The execution module, from which an information message is displayed, is not executed until all six fields fulfill the appropriate conditions.