SAP CDS CASE EXPRESSION V1



Get Example source ABAP code based on a different SAP table
  


• CASE ABAP_CDS_EXPR_V1
• WHEN ABAP_CDS_EXPR_V1
• THEN ABAP_CDS_EXPR_V1
• ELSE ABAP_CDS_EXPR_V1
• END ABAP_CDS_EXPR_V1

ABAP_CDS_DDL - DDIC-Based View, case_expr

ABAP_SYNTAX_FORMS

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 ...


What does it do?
Case distinction in a SELECT statement of a ABAP_CDS_V1_VIEW . 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.