GENERATE - Generate a screen
GENERATE DYNPRO h f e m ID g.
...MESSAGE F1 ...LINE F2 ...WORD F3.
1. ... OFFSET f4
2. ... TRACE-FILE f5
Generates the screen specified in the field
Here, the source code is taken from the structure h and the
internal tables f , e and m . The field h
(screen header) should correspond to the structure D020S , the
internal table f (field list) to the structure D021S , the
internal table e (flow logic) to the structure D022S and
the internal table m (matchcode information) to the structure
If a syntax error occurs, the error message is stored in the field
If a syntax error occurs, the number of the incorrect line is stored in
the field f2 .
By reading the return code value, you can determine whether this line
refers to the flow logic or the field list.
If a syntax error occurs, the incorrect word is stored in the field
The return code value is set as follows:
SY-SUBRC = 0
The screen was generated.
SY-SUBRC <> 0
The screen could not be generated.
SY_SUBRC = 4
The error is in the flow logic.
SY-SUBRC = 8
The error is in the field list.
... OFFSET f4
If a syntax error occurs, the position of the incorrect
word is output in this field.
... TRACE-FILE f5
Stores performance data in this file. This addition
automatically switches on the trace mode.
IMPORT DYNPRO ,
EXPORT DYNPRO ,
DELETE DYNPRO ,
SYNTAX-CHECK FOR DYNPRO
© SAP AG 1996