Ansicht
Dokumentation
ABENCDS_COND_EXPR_INITIAL_V2 - CDS COND EXPR INITIAL V2
Addresses (Business Address Services) General Data in Customer MasterThis documentation is copyright by SAP AG.
- CDS View Entity, cds_cond, INITIAL
.... lhs IS $[NOT$] INITIAL ...
Effect
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 - View Entity, 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.
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.
Example
The following CDS view entity reads all rows from the DDIC database table DEMO_DDIC_TYPES in which the column INT8 does not contain its initial value 0.
Fill RESBD Structure from EBP Component Structure RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 2217 Date: 20240425 Time: 060814 sap01-206 ( 40 ms )