GENERATE DYNPRO

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for GENERATE_SCREEN

GENERATE DYNPRO

INCLUDE ABAP_COMM_FOR_INTERNAL_USE

• GENERATE DYNPRO ABAP_STATEMENT_INT
• ID GENERATE DYNPRO (internal)
• MESSAGE GENERATE DYNPRO (internal)
• LINE GENERATE DYNPRO (internal)
• WORD GENERATE DYNPRO (internal)


ABAP SyntaxGENERATE DYNPRO h f e m ID g.

...MESSAGE f1 ...LINE f2 ...WORD f3.


ABAP_ANY_SEQUENCE


ABAP Addition
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-subrcmeaning 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.

• OFFSET GENERATE DYNPRO (internal)

ABAP Addition


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

• TRACE-FILE GENERATE DYNPRO (internal)

ABAP Addition


What does it do?Trace outputs are stored to this file. The trace mode is automatically switched on through this addition.

Return to menu