GENERATE DYNPRO

Note

This statement is for internal use only.
It cannot 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 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 internhal 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 (=Matchcodeinfo) should correspond to the structure D023S.

The error message is stored in the field f1 when a syntax error occurs.

The number of the incorrect line is stored in the field f2 when a syntax error occurs.
By querying the return value, it is possible to determine whether this line refers to the flow logic or the field list.
The incorrect word is stored in the field f3 when a syntax error occurs.

Return Value

SY-SUBRC = 0:
The screen was generated.
SY-SUBRC <> 0:
The screen could not be generated.
SY-SUBRC = 4:
The specified error position is in the flow logic.
SY-SUBRC = 8:
The specified error position is in the field list.

Addition 1

... OFFSET f4

Effect

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

Addition 2

... TRACE-FILE f5

Effect

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