ABAP Keyword Documentation → ABAP − Short Reference
ASSERT - Short Reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
ASSERT [ [ID group [SUBKEY sub]]
[FIELDS val1 val2 ...]
CONDITION ] log_exp.
Effect
Defines an assertion. If
the logical expression log_exp
is false, either the program terminates with a runtime error, or processing switches to the ABAP debugger, or a log entry is created.
Additions
-
ID group
Assigns the assertion to a checkpoint groupgroup
that controls its activation and behavior. -
SUBKEY sub
Controls the summarization of the log using subkeysub
. -
FIELDS val1 val2 ...
Writes the content of data objectsval1 val2 ...
to the log or the short dump. -
CONDITION
Must be specified beforelog_exp
if one of the other additions is specified.