Ansicht
Dokumentation

ABENCDS_COND_EXPR_INITIAL - CDS COND EXPR INITIAL

ABENCDS_COND_EXPR_INITIAL - CDS COND EXPR INITIAL

Addresses (Business Address Services)   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

- cond_expr, 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 same context-dependent rules apply to the operands lhs as to comparisons and only operands of the comparable types can be specified. The operand also cannot have the type RAW.

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.
  • The expression IS $[NOT$] INITIAL must not be confused with the expression IS $[NOT$] NULL.

Example

The following CDS view reads all rows from the DDIC database table DEMO_DDIC_TYPES in which the column INT8 does not contain its initial value 0.






BAL_S_LOG - Application Log: Log header data   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 1977 Date: 20240425 Time: 145857     sap01-206 ( 29 ms )