sapdev logo background
sapdev logo sapdev logo
Comments

ABAP GENERATE DYNPRO Statement syntax, information and example SAP source code



Return to Statement index



GENERATE DYNPRO


ABAP Syntax GENERATE DYNPRO h f e m ID g.
...MESSAGE f1 ...LINE f2 ...WORD f3.

ABAP_ANY_SEQUENCE

ABAP_ADDITIONS:
1 ... OFFSET f4
2 ... TRACE-FILE f5

What does it do? The screen specified in the field g is generated.
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) should correspond to the structure
D021S , the internal table e (=flow logic) should correspond to the structure D022S , and the internal table m (=matchcode info) should correspond to the structure D023S . Standard tables without secondary keys can be specified for f , e , and
m .

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 syntax.
By querying the return value, it is possible to 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 .

System fields
sy-subrc meaning
0The screen was generated.
4The screen could not be generated. The given error position is in the flow logic.
4The screen could not be generated. The given error position is in the field list.

ABAP_ADDITION_1 ... OFFSET f4

What does it do? If a syntax error occurs, the position of the incorrect word in the incorrect line is output to this field.

ABAP_ADDITION_2 ... TRACE-FILE f5

What does it do? Trace outputs are stored to this file. The trace mode is automatically switched on through this addition.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




GENERATE
GENERATE_REPORT




comments powered by Disqus