Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Program Flow →  Expressions and Functions for Logical Expressions →  log_exp - Logical Expressions →  log_exp - Predicates →  log_exp - IS 

log_exp - IS INITIAL

Other versions: 7.31 | 7.40 | 7.54


... operand IS [NOT] INITIAL ...


This logical expression checks whether the operand operand is initial. The expression is true, if the operand contains its type-specific initial value. For operand, you can specify data objects, built-in functions and functional methods. The latter use the return value as the operand.

With the addition NOT, the expression is true if the operand contains a value other than its type-specific initial value


The logical expression in the IF statement is true if the internal table in the SELECT statement was filled with rows.

DATA spfli_tab TYPE TABLE OF spfli.
CLEAR spfli_tab.
       FROM spfli
       INTO TABLE spfli_tab
       WHERE ...

IF spfli_tab IS NOT INITIAL.