ABAP Keyword Documentation → ABAP − Reference → program editing → Testing and Checking Programs → Checkpoints
Checkpoints and Checkpoint Groups
This example demonstrates the various checkpoints and their binding to a checkpoint group.
Other versions: 7.31 | 7.40 | 7.54
Source Code
LOG-POINT ID demo_checkpoint_group
SUBKEY subkey
FIELDS field1 field2.
BREAK-POINT ID demo_checkpoint_group.
ASSERT ID demo_checkpoint_group
CONDITION field2 IS NOT INITIAL.
Description
The example includes the following:
- A logpoint
- An assertion
All of these are associated with the checkpoint group DEMO_CHECKPOINT_GROUP.
The Activation function in transaction SAAB can be used to individually set the activation functions of this checkpoint group for the three checkpoints.
For example, if the following settings are made:
- Break for breakpoints
- Log for logpoints
- Abort for assertions
and the default values for the parameters are applied,
- the statement
LOG-POINT
writes an entry to a log that can be analyzed after the program is executed in transaction SAAB,
- the program stops at the statement
BREAK-POINT
in ABAP Debugger,
- an ASSERTION_FAILED runtime error occurs for the statement
ASSERT
becausefield2
is initial.
If the activation settings are all inactive, all of the checkpoints are ignored.