Ansicht
Dokumentation

ABENCDS_CASE_EXPRESSION_V2 - CDS CASE EXPRESSION V2

ABENCDS_CASE_EXPRESSION_V2 - CDS CASE EXPRESSION V2

BAL_S_LOG - Application Log: Log header data   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

- CDS View Entity, case_expr

Simple case distinction

1. ... CASE operand
           WHEN operand1 THEN result1
          $[WHEN operand2 THEN result2$]
           ...
          $[ELSE resultn$]
      END ...


Complex case distinction

2. ... CASE WHEN cds_cond1 THEN result1
          $[WHEN cds_cond2 THEN result2$]
          $[WHEN cds_cond3 THEN result3$]
            ...
          $[ELSE resultn$]
      END ...



Effect

Case distinction in a SELECT statement of a CDS view entity. Either a simple case distinction (simple case) or a complex case distinction (searched case).

Case distinctions can be specified in the SELECT list and in operand positions of other expressions.






CPI1466 during Backup   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 2441 Date: 20240508 Time: 204724     sap01-206 ( 20 ms )