sepm_sddl_purchaseorder_item

DDL: SEPM_SDDL_PURCHASEORDER_ITEM SQL: SEPM_SDDL_V_POI Type: view Package: S_EPM_CDS

EPM: DDL View for purchase order item table

sepm_sddl_purchaseorder_item is a CDS View that provides data about "EPM: DDL View for purchase order item table" in SAP S/4HANA. It reads from 1 data source (snwd_po_i) and exposes 9 fields with key field item_key. It has 8 associations to related views. Part of development package S_EPM_CDS.

Data Sources (1)

SourceAliasJoin Type
snwd_po_i snwd_po_i from

Associations (8)

CardinalityTargetAliasCondition
[1] sepm_sddl_purchaseorder_itemsl schedule_line $projection.item_key = schedule_line.purchase_order_item_key
[0..1] sepm_sddl_text_original_langu original_note_language $projection.note_key = original_note_language.text_original_language_key
[0..*] sepm_sddl_text_data note_texts $projection.note_key = note_texts.original_lanuage_key
[1] sepm_sddl_product product $projection.product_key = product.product_key
[1] sepm_sddl_purchaseorder_header purchase_order $projection.purchase_order_key = purchase_order.purchase_order_key
[0..1] sepm_sddl_goods_receipt_item goods_receipt_item $projection.item_key = goods_receipt_item.item_key
[0..1] sepm_sddl_goods_receipt_item purchase_invoice_item $projection.item_key = purchase_invoice_item.item_key
[1] tcurc currency currency_code = waers

Annotations (1)

NameValueLevelField
AbapCatalog.sqlViewName SEPM_SDDL_V_POI view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY item_key node_key Tree Model: Node Key
product_key product_guid Product
note_key note_guid Node Key
gross_amount gross_amount Tax-Inclusive Amount
net_amount net_amount Tax-Exclusive Amount
tax_amount tax_amount VAT Amount Type
note_texts note_texts
product product Product Sold
currency currency Valuation Crcy

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 sepm_sddl_purchaseorder_item.
-- 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: SEPM_SDDL_V_POI

CREATE VIEW sepm_sddl_purchaseorder_item AS
SELECT
  node_key AS item_key,
  product_guid AS product_key,
  note_guid AS note_key,
  gross_amount,
  net_amount,
  tax_amount,
  note_texts,
  product,
  currency
FROM snwd_po_i
LEFT OUTER JOIN sepm_sddl_purchaseorder_itemsl AS schedule_line ON item_key = schedule_line.purchase_order_item_key  -- association [1]
LEFT OUTER JOIN sepm_sddl_text_original_langu AS original_note_language ON note_key = original_note_language.text_original_language_key  -- association [0..1]
LEFT OUTER JOIN sepm_sddl_text_data AS note_texts ON note_key = note_texts.original_lanuage_key  -- association [0..*]
LEFT OUTER JOIN sepm_sddl_product AS product ON product_key = product.product_key  -- association [1]
LEFT OUTER JOIN sepm_sddl_purchaseorder_header AS purchase_order ON purchase_order_key = purchase_order.purchase_order_key  -- association [1]
LEFT OUTER JOIN sepm_sddl_goods_receipt_item AS goods_receipt_item ON item_key = goods_receipt_item.item_key  -- association [0..1]
LEFT OUTER JOIN sepm_sddl_goods_receipt_item AS purchase_invoice_item ON item_key = purchase_invoice_item.item_key  -- association [0..1]
LEFT OUTER JOIN tcurc AS currency ON currency_code = waers  -- association [1]
;