SAP DYNPRO AUTO CHECK ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_DYNPRO - Automatic Input Checks
The example demonstrates what an automatic input check does.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
The static next dynpro number of dynpro 100 is 100. The date field date taken from the program is assigned to the input field Date. The remaining input fields are the components CARRID , CONNID, and MARK of the structure DEMO_CONN taken from ABAP Dictionary. All input fields are mandatory. 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. Additionally, the function key F8 is assigned the function code EXECUTE. The dynpro flow logic is as follows: PROCESS BEFORE OUTPUT.
MODULE init_screen_100.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
MODULE pai.
The user must fill all input fields with valid values before the PAI module can be called:
All input fields must contain values
The date entry must have the correct format
The airline must exist in the check table SCARR.
The flight number must exist in the check table SPFLI and match the airline.
The marker MARK must be one of the fixed values of the domain S_FLAG.
The user can exit the dynpro using Cancel (F12) without correctly entering all values, since the module call was programmed accordingly using AT EXIT-COMMAND.