SYNTAX-CHECK FOR DYNPRO h f e m ...MESSAGE f1 ...LINE f2
...WORD f3.
Parts marked with " ..." are interchangeable
1. ... OFFSET
f4
2. ...
TRACE-TABLE itab1
3. ... MESSAGE-ID f5
Syntax check for screen
The screen description is taken from the field string h
and the internal tables
f, e and m.
The field string 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.
DATA: DHEAD TYPE D020S, "screen header
DFIELDS TYPE TABLE OF D021S, "field list
DFLOWL TYPE TABLE OF D022S, "flow logic
MCINFO TYPE TABLE OF D023S. "matchcode information
If a syntax error is detected during the check, the fields f1, f2 and f3 are filled as follows:
- f1 contains the error message text - f2 contains the screen line where the error occurred - f3 contains the incorrect word in the screen
... OFFSET f4
When a syntax error occurs, this field contains the position of the incorrect word in the incorrect line.
... TRACE-TABLE itab1
Any trace output is stored in this table. Trace output is automatically switched on when you specify this addition.
... MESSAGE-ID f5
If a syntax error occurs, the key of the corresponding message is placed in field f5. This key has the same structure as the key of table TRMSG.