LOG-POINT
Short Reference
ABAP Syntax LOG-POINT ID group
[SUBKEY sub]
[FIELDS val1 val2 ...].
ABAP_ADDITIONS:
1 ... ID group
2 ... SUBKEY sub
3 ... FIELDS val1 val2 ...
What does it do? This statement defines a
logpoint whose activation is controlled via the addition ID .
When the program reaches an active logpoint, an entry is created in the
log that is also used by the statement ASSERT
and the program execution proceeds with the statement after
LOG-POINT . During this process, an already existing entry of the same
LOG-POINT statement is overwritten by default. Each time an
entry is written to, a counter for the entry is increased. The log can
be evaluated using transaction SAAB .
No log entry is written for an inactive logpoint and the program
execution proceeds with the statement after LOG-POINT .
ABAP_ADDITION_1 ... ID group
What does it do? The addition ID controls the activation of the
logpoint from outside the program via a
checkpoint group group or an
activation variant . For the
specification of the checkpoint group, the same rules apply as to the
ASSERT statement.The possible operations modes
for logpoints are active and logging .
ABAP_ADDITION_2 ... SUBKEY sub
What does it do? When you specify SUBKEY , the content of sub
is stored as sub-key in the log. Already existing log entries of the
same LOG-POINT statement are only overwritten if the sub-keys
have the same content. Without specifying SUBKEY , the sub-key is
initial. sub is a
character-like expression position of which the first 200 characters
are evaluated. An expression or function specified here is executed only
if the log point is active.
ABAP_ADDITION_3 ... FIELDS val1 val2 ...
What does it do? After the addition FIELDS , you can specify a list
of values val1 val2 ... (no reference variables) that are used in
the log.
val1 val2 ... are
functional operand positions at which data objects or functional
methods can be specified. The methods are executed only if the log point
is active.
Latest notes:
Example ABAP Coding See Checkpoints and Checkpoint
Groups .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved