Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  program editing →  Dynamic Program Editing →  Screen →  Internal Statements for Editing Dynpros 

GENERATE DYNPRO

Other versions: 7.31 | 7.40 | 7.54

This statement is for internal use only. It must not be used in application programs.

Syntax


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

Parts marked with " ..." are interchangeable

Extras

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

Effect

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.

f3

System fields

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

Addition 1

... OFFSET f4

Effect

If a syntax error occurs, the position of the incorrect word in the incorrect line is output to this field.

Addition 2

... TRACE-FILE f5

Effect

Trace outputs are stored to this file. The trace mode is automatically switched on through this addition.