ARTICLE
Screens, Automatic Input Checks
The example illustrates what an automatic input check does.
ABAP_SOURCE_CODE
ABAP_EXEC
ABAP_DESCRIPTION
The static next screen number of screen 100 is 100. The date field
(taken from the program) date is assigned to the input field
Date . The remaining input field are the components CARRID ,
CONNID and MARK of the structure
DEMO_CONN (taken from the ABAP
Dictionary). All input fields are obligatory. 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 . In addition, the function code EXECUTE is assigned
to the function key F8 . The screen flow logic is:
PROCESS BEFORE OUTPUT.
MODULE init_screen_100.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
MODULE pai.
The user must first correctly fill all input fields, before the module
PAI can be called:
all input fields must be populated with values.
the format of the date input must be correct.
the airline must exist in 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 screen via Cancel ( F12 ) without
correctly entering all values, as the module call was programmed
accordingly with AT EXIT-COMMAND .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved