DEMO_CDS_VIEW_ENTITY_GROUP_BY

DDL: DEMO_CDS_EXTEND_GROUP_BY Type: extend_view_entity

DEMO_CDS_VIEW_ENTITY_GROUP_BY is a CDS View in SAP S/4HANA.

Fields (3)

KeyFieldSource TableSource FieldDescription
connid sflight connid Flight Number
currency sflight currency Valuation Crcy
sum_distance

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_VIEW_ENTITY_GROUP_BY.
-- 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_VIEW_ENTITY_GROUP_BY AS
SELECT
  sflight.connid AS connid,
  sflight.currency AS currency,
  sum(sflight.paymentsum) AS sum_distance
;