SAP - Syntax-CHECK FOR DYNPRO ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for SYNTAX-CHECK_FOR_DYNPRO

SYNTAX-CHECK FOR DYNPRO
ABAP Code Snippet
• SYNTAX-CHECK FOR DYNPRO ABAP_STATEMENT_INT
• MESSAGE SYNTAX-CHECK FOR DYNPRO (internal)
• LINE SYNTAX-CHECK FOR DYNPRO (internal)
• WORD SYNTAX-CHECK FOR DYNPRO (internal)

ABAP_BASIC_FORM_2 SYNTAX-CHECK FOR DYNPRO h f e m ...MESSAGE f1 ...LINE f2
...WORD f3.

ABAP_ANY_SEQUENCE

ABAP Addition
1 ... OFFSET f4
2 ... TRACE-TABLE itab1
3 ... MESSAGE-ID f5

What does it do? 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. For f, e, and m you can specify standard tables without secondary keys.



Example ABAP Coding
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.


System Fields sy-subrcMeaning 0The screen contains no syntax errors. 4The screen contains syntax errors.
• OFFSET SYNTAX-CHECK FOR DYNPRO (internal)

ABAP Addition

What does it do? When a syntax error occurs, the position of the incorrect word in the incorrect line is stored in this field.
• TRACE-TABLE SYNTAX-CHECK FOR DYNPRO (internal)

ABAP Addition

What does it do? Any trace output is stored in this table. Trace output is automatically switched on when you specify this addition. You can specify a standard table without secondary keys for itab1.
• MESSAGE-ID SYNTAX-CHECK FOR DYNPRO (internal)

ABAP Addition

What does it do? If a syntax error occurs, the key of the corresponding error message is returned in field f5. This key has the same structure as the key of table TRMSG.

Return to menu