SAP WHERE LOGEXP INITIAL



Get Example source ABAP code based on a different SAP table
  


Short Reference
• IS INITIAL ABAP_OSQL_COND
• IS NOT INITIAL ABAP_OSQL_COND

ABAP_SQLCOND - IS INITIAL

ABAP_SYNTAX
... operand IS $[NOT$] INITIAL ...

What does it do?
This relational expression is true if the value of the operand operand is (is not) the initial value of its built-in dictionary type .
The following applies to operand:
SQL expressions except for aggregate expressions and window expressions can be specified.
In a HAVING clause, aggregate expressions can also be used.



Latest notes:

The expression IS $[NOT$] INITIAL is suitable for checking the type-dependent initial value, regardless of its actual data type, instead of comparing it with a type-compliant operand that contains the initial value. This is of particular use in dynamic conditions.
The expression IS $[NOT$] INITIAL must not be confused with the expression IS $[NOT$] NULL.
NON_V5_HINTS
If used, the relational expression IS $[NOT$] INITIAL enforces ABAP_STRICT_772 strict mode from ABAP_RELEASE ABAP_772 / .
ABAP_HINT_END

ABAP_EXAMPLE_VX5
Reads the rows of the DDIC database table DEMO_DDIC_TYPES in which a dynamically specified column contains its type-dependent initial value.
ABEXA 01399
ABAP_EXAMPLE_END