I_Sadl_DraftItemCore

DDL: I_SADL_DRAFT_ITEM_CORE SQL: SADL_DRFT_ITEM_C Type: view BASIC

Item core view

I_Sadl_DraftItemCore is a Basic CDS View that provides data about "Item core view" in SAP S/4HANA. It reads from 2 data sources (snwd_so, snwd_so_i) and exposes 8 fields with key fields SalesOrder, ItemPosition. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
snwd_so header inner
snwd_so_i item from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_Sadl_DraftRootCore _Sadl_DraftRootCore $projection.SalesOrder = _Sadl_DraftRootCore.SalesOrder
[0..*] I_Sadl_DraftLeafCore _Sadl_DraftLeafCore $projection.SalesOrder = _Sadl_DraftLeafCore.SalesOrder and $projection.ItemPosition = _Sadl_DraftLeafCore.ItemPosition

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName SADL_DRFT_ITEM_C view
ClientDependent false view
EndUserText.label Item core view view
VDM.viewType #BASIC view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY SalesOrder snwd_so so_id Sales Order ID
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
_Sadl_DraftRootCore _Sadl_DraftRootCore
_Sadl_DraftLeafCore _Sadl_DraftLeafCore

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_DraftItemCore.
-- 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_DRFT_ITEM_C

CREATE VIEW I_Sadl_DraftItemCore AS
SELECT
  header.so_id AS SalesOrder,
  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_DraftRootCore AS _Sadl_DraftRootCore ON SalesOrder = _Sadl_DraftRootCore.SalesOrder  -- association [1..1]
LEFT OUTER JOIN I_Sadl_DraftLeafCore AS _Sadl_DraftLeafCore ON SalesOrder = _Sadl_DraftLeafCore.SalesOrder AND ItemPosition = _Sadl_DraftLeafCore.ItemPosition  -- association [0..*]
;