SYNTAX-TRACE ( SAP ABAP Keyword)

SYNTAX-TRACE is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details.

SYNTAX-TRACE

Variants

1. SYNTAX-TRACE ON.
2. SYNTAX-TRACE ON OPTION CODING.
3. SYNTAX-TRACE ON OPTION EXPAND.
4. SYNTAX-TRACE OFF.

Variant 1
SYNTAX-TRACE ON.

Effect
This
statement has no effect at runtime except to switch on the syntax check
or the generation of the program it specifies. If the syntax check or
generation was called in the test environment, this statement switches
on a syntax trace.

Variant 2
SYNTAX-TRACE ON OPTION CODING.

Effect
This statement has the same effect as SYNTAX-TRACE ON , but the syntax trace is restricted to the processed program lines.

Variant 3
SYNTAX-TRACE ON OPTION EXPAND.

Effect
This statement has no effect at present.

Variant 4
SYNTAX-TRACE OFF.

Effect
Switches off the syntax trace switched on with SYNTAX-TRACE ON .