SAP CDS COND EXPR INITIAL V1



Get Example source ABAP code based on a different SAP table
  


• IS INITIAL ABAP_CDS_DDL_OPERATOR

ABAP_CDS_DDL - DDIC-Based View, cds_cond, INITIAL

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

What does it do?
Determines the initial value. This expression is true if the value of lhs is (is not) the initial value of its built-in dictionary type.
The operand lhs must stick to the context-dependent rules listed in topic CDS DDL - DDIC-based View, cds_cond, Operands.
lhs can have any data type except for CLNT, DECFLOAT16 , DECFLOAT34, DF16_DEC, DF34_DEC, DF16_RAW , DF34_RAW, LCHR, STRING, RAW , RAWSTRING, DATN, TIMN, UTCL, and GEOM_EWKB.



Latest notes:

The expression IS $[NOT$] INITIAL is suitable for checking the type-dependent initial value, instead of comparing it with a type-compliant operand that contains the initial value.
The expression IS $[NOT$] INITIAL must not be confused with the expression IS $[NOT$] NULL.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
The following DDIC-based view reads all rows from the DDIC database table DEMO_DDIC_TYPES in which the column INT8 does not contain its initial value 0.
DDLS DEMO_CDS_IS_INITIAL
ABAP_EXAMPLE_END