DEMO_SALES_CDS_VIEW_ANALYTICS

DDL: DEMO_SALES_CDS_VIEW_ANALYTICS SQL: DEMOANALYTIC Type: view Package: SABAP_DEMOS_SALES

CDS View for Sales Order

DEMO_SALES_CDS_VIEW_ANALYTICS is a CDS View that provides data about "CDS View for Sales Order" in SAP S/4HANA. It reads from 1 data source (demo_sales_so_i) and exposes 3 fields with key field SalesOrderKey. Part of development package SABAP_DEMOS_SALES.

Data Sources (1)

SourceAliasJoin Type
demo_sales_so_i demo_sales_so_i from

Annotations (3)

NameValueLevelField
AbapCatalog.sqlViewName DEMOANALYTIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label CDS View for Sales Order view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY SalesOrderKey parent_key UUID
GrossAmountSum
SumCurrency

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_SALES_CDS_VIEW_ANALYTICS.
-- 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.
-- SQL view name: DEMOANALYTIC

CREATE VIEW DEMO_SALES_CDS_VIEW_ANALYTICS AS
SELECT
  parent_key AS SalesOrderKey,
  sum( gross_amount ) AS GrossAmountSum,
  cast('EUR' as abap.cuky ) AS SumCurrency
FROM demo_sales_so_i
;