I_Sadl_Mk_Draft_Root_Core
Test scenario: multiple key fields
I_Sadl_Mk_Draft_Root_Core is a CDS View that provides data about "Test scenario: multiple key fields" in SAP S/4HANA. It reads from 1 data source (snwd_so) and exposes 12 fields with key fields SalesOrder, Version. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| snwd_so | header | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_Sadl_Mk_Draft_Item_Core | _Items | _Items.SalesOrder = $projection.SalesOrder and _Items.Version = $projection.Version |
| [0..*] | I_Sadl_Mk_Draft_Item_IV_Core | _ItemsInvalidV | _ItemsInvalidV.SalesOrder = $projection.SalesOrder and _ItemsInvalidV.Version = $projection.Version |
| [0..*] | I_Sadl_Mk_Draft_Item_IW_Core | _ItemsInvalidW | _ItemsInvalidW.SalesOrder = $projection.SalesOrder and _ItemsInvalidW.Version = $projection.Version |
| [0..*] | I_Sadl_Mk_Draft_Item_IX_Core | _ItemsInvalidX | _ItemsInvalidX.SalesOrder = $projection.SalesOrder |
| [0..*] | I_Sadl_Mk_Draft_Item_IY_Core | _ItemsInvalidY | _ItemsInvalidY.SalesOrder = $projection.SalesOrder and _ItemsInvalidY.Version = $projection.Version |
| [0..*] | I_Sadl_Mk_Draft_Item_IZ_Core | _ItemsInvalidZ | _ItemsInvalidZ.SalesOrder = $projection.SalesOrder and _ItemsInvalidZ.Version = $projection.Version |
Annotations (2)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ISADLMKCROOT | view | |
| EndUserText.label | Test scenario: multiple key fields | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrder | snwd_so | so_id | Sales Order ID |
| KEY | Version | |||
| CurrencyCode | snwd_so | currency_code | Currency Code | |
| GrossAmount | snwd_so | gross_amount | Tax-Inclusive Amount | |
| NetAmount | snwd_so | net_amount | Tax-Exclusive Amount | |
| TaxAmount | snwd_so | tax_amount | VAT Amount Type | |
| _Items | _Items | |||
| _ItemsInvalidV | _ItemsInvalidV | |||
| _ItemsInvalidW | _ItemsInvalidW | |||
| _ItemsInvalidX | _ItemsInvalidX | |||
| _ItemsInvalidY | _ItemsInvalidY | |||
| _ItemsInvalidZ | _ItemsInvalidZ |
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 I_Sadl_Mk_Draft_Root_Core.
-- 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: ISADLMKCROOT
CREATE VIEW I_Sadl_Mk_Draft_Root_Core AS
SELECT
header.so_id AS SalesOrder,
'0000' AS Version,
header.currency_code AS CurrencyCode,
header.gross_amount AS GrossAmount,
header.net_amount AS NetAmount,
header.tax_amount AS TaxAmount
FROM snwd_so AS header
LEFT OUTER JOIN I_Sadl_Mk_Draft_Item_Core AS _Items ON _Items.SalesOrder = SalesOrder AND _Items.Version = Version -- association [0..*]
LEFT OUTER JOIN I_Sadl_Mk_Draft_Item_IV_Core AS _ItemsInvalidV ON _ItemsInvalidV.SalesOrder = SalesOrder AND _ItemsInvalidV.Version = Version -- association [0..*]
LEFT OUTER JOIN I_Sadl_Mk_Draft_Item_IW_Core AS _ItemsInvalidW ON _ItemsInvalidW.SalesOrder = SalesOrder AND _ItemsInvalidW.Version = Version -- association [0..*]
LEFT OUTER JOIN I_Sadl_Mk_Draft_Item_IX_Core AS _ItemsInvalidX ON _ItemsInvalidX.SalesOrder = SalesOrder -- association [0..*]
LEFT OUTER JOIN I_Sadl_Mk_Draft_Item_IY_Core AS _ItemsInvalidY ON _ItemsInvalidY.SalesOrder = SalesOrder AND _ItemsInvalidY.Version = Version -- association [0..*]
LEFT OUTER JOIN I_Sadl_Mk_Draft_Item_IZ_Core AS _ItemsInvalidZ ON _ItemsInvalidZ.SalesOrder = SalesOrder AND _ItemsInvalidZ.Version = Version -- association [0..*]
;
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