Skip to content

ABAP Keyword Documentation →  ABAP − Short Reference 

SYNTAX-CHECK - Short 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 text in itab and returns the first error message, the first errored line and the first errored word 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 are used for the syntax check.
  • INCLUDE incl
    Returns the name of the include program in which the error occurs. 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 table TRMSG in mid.