Show TOC Start of Content Area

Component documentation Activatable Checkpoints  Locate the document in its SAP Library structure

Purpose

You use the activatable checkpoints tool (transaction SAAB) to maintain checkpoint groups, their respective activation variants, and the corresponding activation settings.

Checkpoints are used for test and control purposes. An ABAP program can contain the following types of checkpoints:

      Breakpoints

      Logpoints

      Assertions

Features

Checkpoints have no operative character and are not part of the program logic.

There are conditional and unconditional checkpoints. An assertion is a conditional checkpoint and is linked to a logical expression. Breakpoints and logpoints are unconditional checkpoints.

You can specify an IDaddition to each checkpoint statement. This ID links it to a checkpoint group. Checkpoints linked to checkpoint groups are called activatable checkpoints. When you execute them, the system searches for a suitable activation setting through the specified checkpoint group.

Logpoints are always activatable checkpoints. For assertions and breakpoints the specification of a checkpoint group is optional. Assertions and breakpoints not assigned to a checkpoint group are always active and are never ignored during program execution. The statements ASSERT and BREAK-POINT are available in an activatable version as well as in a version that is always active. Breakpoints that are always active are not allowed in productive programs. An assertion that is always active causes a runtime error if the result of the corresponding logical expression is incorrect.

Recommendation

We recommend that you use activatable checkpoints only for testing or troubleshooting purposes. Your productive code must never rely on any specific activation settings.

Using a checkpoint group, you can activate or deactivate checkpoints outside of the program and determine the system behavior during execution of the checkpoint statement. An inactive checkpoint is ignored during program execution

You can create activation variants for checkpoint groups which simplify the grouping and multiple activation of checkpoint groups. Using variants, you can activate checkpoints through the surrounding compilation unit.

For information about the statements ASSERT, BREAK-POINT, LOG-POINT, and their IDaddition, see the ABAP keyword documentation.

 

End of Content Area