Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  program editing →  Testing and Checking Programs →  Checkpoints 

LOG-POINT

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


LOG-POINT ID group 
          [SUBKEY sub]
          [FIELDS val1 val2 ...].

Extras

1. ... ID group

2. ... SUBKEY sub
3. ... FIELDS val1 val2 ...

Effect

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.

Addition 1

... ID group

Effect

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.

Addition 2

... SUBKEY sub

Effect

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.

Addition 3

... FIELDS val1 val2 ...

Effect

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.


Note

The size of each data object saved in the log with the FIELDS addition is restricted by the profile parameter abap/aab_log_field_size_limit. The value of the profile parameter specifies the size in bytes. The default value is 1,024. The value 0 means there is no restriction. When a log entry is generated, the content of each data object is truncated when this limit is reached, and full lines are removed from internal tables.