SADL_CDS_RS_SO_Root
Reference Scenario: Sales Order Root View
SADL_CDS_RS_SO_Root is a CDS View that provides data about "Reference Scenario: Sales Order Root View" in SAP S/4HANA. It reads from 1 data source (sadl_rs_so_root) and exposes 7 fields with key field id. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| sadl_rs_so_root | root | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [*] | Sadl_Cds_Rs_So_Item | _items_with_product_1 | $projection.id = _items_with_product_1.parent_id and _items_with_product_1.prod_id_content_char = 'PROD00001' |
| [*] | Sadl_Cds_Rs_So_Item | _active_items | $projection.id = _active_items.parent_id and $projection.act_indicator = 'X' |
| [0..1] | Sadl_V_Aunit_Srs_Bp | _seller | $projection.seller_id = _seller.bp_id and $projection.act_indicator = 'X' |
| [*] | Sadl_Cds_Rs_So_Item | _items | $projection.id = _items.parent_id |
| [1] | SADL_CDS_RS_SO_Root | _myself | $projection.id = _myself.id |
| [0..1] | SADL_CDS_RS_SO_Root | _myself_w_typecode | $projection.id = _myself_w_typecode.id and _myself_w_typecode.type_code = 'BBBBB' |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SADL_SQL_SO_ROOT | view | |
| EndUserText.label | Reference Scenario: Sales Order Root View | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Search.searchable | true | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | id | id | WorklistID | |
| buyer_id | buyer_id | Identifier | ||
| seller_id | seller_id | Identifier | ||
| type_code | type_code | Type Code | ||
| _myself | _myself | |||
| _items | _items | |||
| _seller | _seller |
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 SADL_CDS_RS_SO_Root.
-- 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: SADL_SQL_SO_ROOT
CREATE VIEW SADL_CDS_RS_SO_Root AS
SELECT
id,
buyer_id,
seller_id,
type_code
FROM sadl_rs_so_root AS root
LEFT OUTER JOIN Sadl_Cds_Rs_So_Item AS _items_with_product_1 ON id = _items_with_product_1.parent_id AND _items_with_product_1.prod_id_content_char = 'PROD00001' -- association [*]
LEFT OUTER JOIN Sadl_Cds_Rs_So_Item AS _active_items ON id = _active_items.parent_id AND act_indicator = 'X' -- association [*]
LEFT OUTER JOIN Sadl_V_Aunit_Srs_Bp AS _seller ON seller_id = _seller.bp_id AND act_indicator = 'X' -- association [0..1]
LEFT OUTER JOIN Sadl_Cds_Rs_So_Item AS _items ON id = _items.parent_id -- association [*]
LEFT OUTER JOIN SADL_CDS_RS_SO_Root AS _myself ON id = _myself.id -- association [1]
LEFT OUTER JOIN SADL_CDS_RS_SO_Root AS _myself_w_typecode ON id = _myself_w_typecode.id AND _myself_w_typecode.type_code = 'BBBBB' -- association [0..1]
;
Learn More
- CDS View Annotations — A Complete Guide
- 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 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