MODULE modl.
The processing block between the "
MODULE modl." and "ENDMODULE."
statements is known as a
module.
You call the module modl in
the screen flow logic with the statement "MODULE modl.". This screen must belong to the same ABAP program as the module.
DATA: INPUT, GOOD_INPUT.
MODULE CONTROL.
...
IF INPUT NE GOOD_INPUT.
MESSAGE E123.
ENDIF.
ENDMODULE.
The ABAP/4 statement MODULE, which is always terminated
by ENDMODULE, must not be confused with the flow logic statement MODULE (screen).
... OUTPUT
... INPUT
The module called before screen output (in the
PROCESS BEFORE OUTPUT section of the flow logic) should
be qualified by the addition OUTPUT.
Since the addition
INPUT is the default value, it can be omitted. This means
that the module called after user input (in the
PROCESS AFTER INPUT section of the flow logic) is
either followed by no addition or qualified by the addition INPUT.
A module modl can thus exist twice - as an input and as an output module.
Dialog Modules