GENERATE - Generate a screen
GENERATE DYNPRO h f e m ID g.
...MESSAGE F1 ...LINE F2 ...WORD F3.
Additions
1. ... OFFSET f4
2. ... TRACE-FILE f5
Effect
Generates the screen specified in the field g .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 D023S .
If a syntax error occurs, the error message is stored in the field f1 .
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 f3 .
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.
Addition 1
... OFFSET f4Effect
If a syntax error occurs, the position of the incorrect word is output in this field.Addition 2
... TRACE-FILE f5Effect
Stores performance data in this file. This addition automatically switches on the trace mode.Related IMPORT DYNPRO , EXPORT DYNPRO , DELETE DYNPRO , SYNTAX-CHECK FOR DYNPRO .
Index
© SAP AG 1996
No hay comentarios:
Publicar un comentario
Nota: solo los miembros de este blog pueden publicar comentarios.