Skip to content

ABAP Keyword Documentation →  ABAP − Short Reference 

ASSERT - Short Reference

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 group group that controls its activation and behavior.
  • SUBKEY sub
    Controls the summarization of the log using subkey sub.
  • FIELDS val1 val2 ...
    Writes the content of data objects val1 val2 ... to the log or the short dump.
  • CONDITION
    Must be specified before log_exp if one of the other additions is specified.