Get Example source ABAP code based on a different SAP table
ID SYNTAX-CHECK • SYNTAX-CHECK FOR itab ABAP Statement • MESSAGE SYNTAX-CHECK FOR itab • LINE SYNTAX-CHECK FOR itab • WORD SYNTAX-CHECK FOR itab
SYNTAX-CHECK> Short Reference >
ABAP_SYNTAX SYNTAX-CHECK FOR itab MESSAGE mess LINE lin WORD wrd> $[PROGRAM prog$] $[DIRECTORY ENTRY dir$]> $[WITH CURRENT SWITCHSTATES$]> $[error_handling>$].>
ABAP Addition 1 ... PROGRAM prog> 2 ... DIRECTORY ENTRY dir> 3 ... WITH CURRENT SWITCHSTATES>
What does it do? This statement executes a syntax check> on the content of the internal table itab>. The internal table itab> must be a standard table> without secondary table keys> with a character-like line type. If the internal table does not contain syntactically correct ABAP source code, then:
The error message of the first syntax error is assigned to variable mess>. mess> must be a character-like data object.
The line number of the first syntax error, with reference to the program in which it occurs (either the source code in itab> or an