DEMO_CDS_EXPRESSION_REUSE

DDL: DEMO_CDS_EXPRESSION_REUSE Type: view_entity

CDS view entity, expression reuse

DEMO_CDS_EXPRESSION_REUSE is a CDS View that provides data about "CDS view entity, expression reuse" in SAP S/4HANA. It reads from 1 data source (demo_expressions) and exposes 9 fields with key field field1.

Data Sources (1)

SourceAliasJoin Type
demo_expressions demo_expressions from

Annotations (2)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label CDS view entity, expression reuse view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY field1 id WorklistID
field_reuse
lit1
lit_reuse
arith
arith_reuse
builtIn
builtIn_reuse
case_reuse

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view DEMO_CDS_EXPRESSION_REUSE.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW DEMO_CDS_EXPRESSION_REUSE AS
SELECT
  id AS field1,
  concat(field1, 'x') AS field_reuse,
  abap.char'hallo' AS lit1,
  concat(lit1, 'x') AS lit_reuse,
  abap.decfloat34'123.45E6' AS arith,
  arith * 2 AS arith_reuse,
  abs(dec1) AS builtIn,
  cast(builtIn as abap.int4) AS builtIn_reuse,
  left(case1, 1) AS case_reuse
FROM demo_expressions
;