sepm_sddl_po_invoice_header

DDL: SEPM_SDDL_PO_INVOICE_HEADER SQL: SEPM_SDDL_V_POIH Type: view

sepm_sddl_po_invoice_header is a CDS View in SAP S/4HANA. It reads from 1 data source (snwd_po_inv_head) and exposes 9 fields. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
snwd_po_inv_head snwd_po_inv_head from

Associations (6)

CardinalityTargetAliasCondition
[1] sepm_sddl_purchaseorder_header purchases_order $projection.purchase_order_key = purchases_order.purchase_order_key
[1] sepm_sddl_employees created_by_employee $projection.created_by_employee_key = created_by_employee.employee_key
[1] sepm_sddl_employees changed_by_employee $projection.changed_by_employee_key = changed_by_employee.employee_key
[1] sepm_sddl_businesspartner supplier $projection.supplier_key = supplier.business_partner_key
[0..*] sepm_sddl_po_invoice_item items $projection.purchase_order_invoice_key = items.purchase_order_invoice_key
[1] tcurc currency currency_code = waers

Annotations (1)

NameValueLevelField
AbapCatalog.sqlViewName SEPM_SDDL_V_POIH view

Fields (9)

KeyFieldSource TableSource FieldDescription
created_at created_at Uploaded On
changed_at changed_at Timestamp
gross_amount gross_amount Tax-Inclusive Amount
net_amount net_amount Tax-Exclusive Amount
tax_amount tax_amount VAT Amount Type
supplier_key partner_guid Partner GUID
supplier supplier Supplier
items items Single-Character Flag
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_po_invoice_header.
-- 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_POIH

CREATE VIEW sepm_sddl_po_invoice_header AS
SELECT
  created_at,
  changed_at,
  gross_amount,
  net_amount,
  tax_amount,
  partner_guid AS supplier_key,
  supplier,
  items,
  currency
FROM snwd_po_inv_head
LEFT OUTER JOIN sepm_sddl_purchaseorder_header AS purchases_order ON purchase_order_key = purchases_order.purchase_order_key  -- association [1]
LEFT OUTER JOIN sepm_sddl_employees AS created_by_employee ON created_by_employee_key = created_by_employee.employee_key  -- association [1]
LEFT OUTER JOIN sepm_sddl_employees AS changed_by_employee ON changed_by_employee_key = changed_by_employee.employee_key  -- association [1]
LEFT OUTER JOIN sepm_sddl_businesspartner AS supplier ON supplier_key = supplier.business_partner_key  -- association [1]
LEFT OUTER JOIN sepm_sddl_po_invoice_item AS items ON purchase_order_invoice_key = items.purchase_order_invoice_key  -- association [0..*]
LEFT OUTER JOIN tcurc AS currency ON currency_code = waers  -- association [1]
;