SYNTAX-TRACE
ABAP Syntax SYNTAX-TRACE { {ON [...]} | OFF }.
ABAP_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.
ABAP_VARIANT_1 SYNTAX-TRACE ON.
What does it do? 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.
ABAP_VARIANT_2 SYNTAX-TRACE ON OPTION CODING.
What does it do? This statement has the same effect as
SYNTAX-TRACE ON
, except that the trace output is restricted to the processed program
lines.
ABAP_VARIANT_3 SYNTAX-TRACE ON OPTION CLASS.
What does it do? This statement has the same effect as SYNTAX-TRACE ON
. Additionally, all operations are traced that are relevant for
loading classes.
ABAP_VARIANT_4 SYNTAX-TRACE ON OPTION CLASS-CODING.
What does it do? 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.
ABAP_VARIANT_5 SYNTAX-TRACE ON OPTION EXPAND.
What does it do? This statement currently has no effects.
ABAP_VARIANT_6 SYNTAX-TRACE ON OPTION SYNCPOINTS.
What does it do? 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 thedeclaration units (that is, used global class and interface
declarations as well as type groups ) for
which the routines for creating the load table entries must be
called after a delay and not immediately.
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.
Latest notes: 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.
ABAP_VARIANT_7 SYNTAX-TRACE OFF.
What does it do? Switches off the syntax trace switched on with
SYNTAX-TRACE ON .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved