Skip to content

ABAP Keyword Documentation →  ABAP - Quick Reference 

SYNTAX-CHECK - Quick reference

Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


SYNTAX-CHECK FOR itab MESSAGE mess LINE lin WORD wrd 
                 [PROGRAM prog] [DIRECTORY ENTRY dir]
                 [WITH CURRENT SWITCHSTATES]
                 [INCLUDE incl]
                 [OFFSET off]
                 [MESSAGE-ID mid].

Effect

Checks the syntax of the source code in itab and returns the first error message, the first line with an error, and the first word with an error in mess, lin, and wrd.

Additions

  • PROGRAM prog
    Defines the program attributes with reference to a program prog.
  • DIRECTORY ENTRY dir
    Defines the program attributes by specifying a structure in dir of the type TRDIR.
  • WITH CURRENT SWITCHSTATES
    Defines which key configuration is used for the syntax check.
  • INCLUDE incl
    Returns the name of the include program in which the error occurs in incl.
  • OFFSET off
    Returns the offset of the error in the line in off.
  • MESSAGE-ID mid
    Returns the key of the error message from the table TRMSG in mid.