I_Sadl_Mk_Draft_Item_Core

DDL: I_SADL_MK_DRAFT_ITEM_CORE SQL: ISADLMKITEM Type: view

Test scenario: multiple key fields

I_Sadl_Mk_Draft_Item_Core is a CDS View that provides data about "Test scenario: multiple key fields" in SAP S/4HANA. It reads from 2 data sources (snwd_so, snwd_so_i) and exposes 8 fields with key fields SalesOrder, Version, ItemPosition. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
snwd_so header inner
snwd_so_i item from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_Sadl_Mk_Draft_Root_Core _Parent _Parent.SalesOrder = $projection.SalesOrder and _Parent.Version = $projection.Version

Annotations (2)

NameValueLevelField
AbapCatalog.sqlViewName ISADLMKITEM view
EndUserText.label Test scenario: multiple key fields view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY SalesOrder snwd_so so_id Sales Order ID
KEY Version
KEY ItemPosition snwd_so_i so_item_pos Item Position
CurrencyCode snwd_so_i currency_code Currency Code
GrossAmount snwd_so_i gross_amount Tax-Inclusive Amount
NetAmount snwd_so_i net_amount Tax-Exclusive Amount
TaxAmount snwd_so_i tax_amount VAT Amount Type
_Parent _Parent

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_Item_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: ISADLMKITEM

CREATE VIEW I_Sadl_Mk_Draft_Item_Core AS
SELECT
  header.so_id AS SalesOrder,
  '0000' AS Version,
  item.so_item_pos AS ItemPosition,
  item.currency_code AS CurrencyCode,
  item.gross_amount AS GrossAmount,
  item.net_amount AS NetAmount,
  item.tax_amount AS TaxAmount
FROM snwd_so_i AS item
INNER JOIN snwd_so AS header ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Sadl_Mk_Draft_Root_Core AS _Parent ON _Parent.SalesOrder = SalesOrder AND _Parent.Version = Version  -- association [1..1]
;