I_Sadl_DraftLeafCore

DDL: I_SADL_DRAFT_LEAF_CORE SQL: SADL_DRFT_LEAF_C Type: view BASIC

Item core view

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

Data Sources (3)

SourceAliasJoin Type
snwd_so header inner
snwd_so_i item inner
snwd_so_sl line from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_Sadl_DraftRootCore _Sadl_DraftRootCore $projection.SalesOrder = _Sadl_DraftRootCore.SalesOrder
[1..1] I_Sadl_DraftItemCore _Sadl_DraftItemCore $projection.SalesOrder = _Sadl_DraftItemCore.SalesOrder and $projection.ItemPosition = _Sadl_DraftItemCore.ItemPosition

Annotations (4)

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

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY SalesOrder snwd_so so_id Sales Order ID
KEY ItemPosition snwd_so_i so_item_pos Item Position
KEY DeliveryDate snwd_so_sl delivery_date Time Stamp
UnitOfMeasure snwd_so_sl quantity_unit Unit of Measure
quantity snwd_so_sl quantity Value
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_DraftItemCore _Sadl_DraftItemCore

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_DraftLeafCore.
-- 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_LEAF_C

CREATE VIEW I_Sadl_DraftLeafCore AS
SELECT
  header.so_id AS SalesOrder,
  item.so_item_pos AS ItemPosition,
  line.delivery_date AS DeliveryDate,
  line.quantity_unit AS UnitOfMeasure,
  line.quantity AS quantity,
  item.currency_code AS CurrencyCode,
  item.gross_amount AS GrossAmount,
  item.net_amount AS netAmount,
  item.tax_amount AS taxAmount
FROM snwd_so_sl AS line
INNER JOIN snwd_so_i AS item ON /* join condition not captured in parsed metadata */
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_DraftItemCore AS _Sadl_DraftItemCore ON SalesOrder = _Sadl_DraftItemCore.SalesOrder AND ItemPosition = _Sadl_DraftItemCore.ItemPosition  -- association [1..1]
;