ARTICLE
rel_exp - IS INITIAL
Syntax
ABAP_KEY ... operand IS [NOT] INITIAL ...
Effect
This predicate expression checks whether the operand operand is
initial. The expression is true, if the operand contains its
type-specific initial value . Any data
objects can be specified for operand . This is an
extended functional operand
position in which, alongside
functional method calls ,
constructor expressions , or table
expressions , certain predefined functions can also be specified.
With the addition NOT , the expression is true if the operand
contains a value other than its type-specific initial value
Notes
Calculation expressions cannot
be specified for operand .
It is possible, but not recommended, to specified certain predefined
functions as operand . For example, instead of
strlen( ... ) IS INITIAL
it is better to use the following comparison:
strlen( ... ) = 0
Example
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.
SELECT *
FROM spfli
INTO TABLE spfli_tab
WHERE ...
IF spfli_tab IS NOT INITIAL.
...
ENDIF.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved