Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  program editing →  Testing and Checking Programs →  Internal test statements 

SYNTAX-TRACE

Other versions: 7.31 | 7.40 | 7.54

This statement is for internal use only. It must not be used in application programs.

Syntax


SYNTAX-TRACE { {ON [...]} | OFF }. 

Variants

1. SYNTAX-TRACE ON.

2. SYNTAX-TRACE ON OPTION CODING.

3. SYNTAX-TRACE ON OPTION CLASS.

4. SYNTAX-TRACE ON OPTION CLASS-CODING.

5. SYNTAX-TRACE ON OPTION EXPAND.

6. SYNTAX-TRACE ON OPTION SYNCPOINTS.

7. 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 CLASS.

Effect

This statement has the same effect as SYNTAX-TRACE ON. Additionally, all operations are traced that are relevant for loading classes.

Variant 4

SYNTAX-TRACE ON OPTION CLASS-CODING.

Effect

This statement has the same effect as SYNTAX-TRACE ON, except that the trace output is restricted to the processed program lines. Additionally, as for addition 3, all operations are traced that are relevant for loading classes.

Variant 5

SYNTAX-TRACE ON OPTION EXPAND.

Effect

This statement currently has no effects.

Variant 6

SYNTAX-TRACE ON OPTION SYNCPOINTS.

Effect

This statement can be used to activate the trace function of the ABAP syntax check and to select a certain mode for the trace output.

This trace mode SYNCPOINTS (for internal test purposes only) logs, for which declaration units (i.e. used global class and interface declarations as well as type groups), the routines for creating the load table entries must be called delayed and not at once.

In doing so, the call of the generation routine is delayed until a synchronization point is reached, for which the generation of a quantity of declaration units is executed afterwards.

The trace that operates on the ABAP coding level and not on the RSYN level, provides the information, where such synchronization points were defined and which declaration units at these points in time have to go to the delayed generation.


Note

The delayed generation of declaration units is neccessary to solve sequencing problems in the load tables when precompiled headers are used to generate ABAP programs.

Variant 7

SYNTAX-TRACE OFF.

Effect

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