CDS_VIEW_ENTITY_WITH_AGGR
CDS Entity with aggregations
CDS_VIEW_ENTITY_WITH_AGGR is a CDS View that provides data about "CDS Entity with aggregations" in SAP S/4HANA. It reads from 1 data source (CdsFrwk_Sales_Order_Item) and exposes 6 fields with key field so_guid. It has 1 association to related views. Part of development package SABP_UNIT_DOUBLE_CDS_DEMO.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| CdsFrwk_Sales_Order_Item | CdsFrwk_Sales_Order_Item | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | CDS_VIEW_ENTITY_SIMPLE | _sales_order | CdsFrwk_Sales_Order_Item.so_guid = _sales_order.node_key |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | so_guid | so_guid | Node Key | |
| so_id | _sales_order | node_key | Tree Model: Node Key | |
| tax_rate | tax_rate | WithholdingRate | ||
| product_guid | product_guid | Product | ||
| _sales_order | _sales_order | |||
| _product | _product |
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 CDS_VIEW_ENTITY_WITH_AGGR.
-- 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 CDS_VIEW_ENTITY_WITH_AGGR AS
SELECT
so_guid,
_sales_order.node_key AS so_id,
tax_rate,
product_guid
FROM CdsFrwk_Sales_Order_Item
LEFT OUTER JOIN CDS_VIEW_ENTITY_SIMPLE AS _sales_order ON CdsFrwk_Sales_Order_Item.so_guid = _sales_order.node_key -- association [1]
;
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA