SEPM_I_SupplierInvoice

DDL: SEPM_I_SUPPLIERINVOICE SQL: SEPM_ISI Type: view

EPM Demo: Supplier Invoice

SEPM_I_SupplierInvoice is a CDS View of category Dimension that provides data about "EPM Demo: Supplier Invoice" in SAP S/4HANA. It reads from 1 data source (snwd_po_inv_head) and exposes 19 fields with key field SupplierInvoiceUUID. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
snwd_po_inv_head snwd_po_inv_head from

Associations (7)

CardinalityTargetAliasCondition
[0..1] SEPM_I_Currency _TransactionCurrency $projection.TransactionCurrency = _TransactionCurrency.Currency
[0..*] SEPM_I_SupplierInvoiceItem _Item $projection.SupplierInvoiceUUID = _Item.SupplierInvoiceUUID
[0..1] SEPM_I_PurchaseOrder _PurchaseOrder $projection.PurchaseOrderUUID = _PurchaseOrder.PurchaseOrderUUID
[0..1] SEPM_I_BusinessPartner _Supplier $projection.SupplierUUID = _Supplier.BusinessPartnerUUID
[0..1] SEPM_I_SUPPLIER _SupplierV2 $projection.SupplierUUID = _SupplierV2.SupplierUUID
[0..1] SEPM_I_Employee _CreatedByUser $projection.CreatedByUser = _CreatedByUser.EmployeeUUID
[0..1] SEPM_I_Employee _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.EmployeeUUID

Annotations (9)

NameValueLevelField
EndUserText.label EPM Demo: Supplier Invoice view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
AbapCatalog.sqlViewName SEPM_ISI view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey SupplierInvoiceUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY SupplierInvoiceUUID node_key Tree Model: Node Key
PurchaseOrderUUID po_guid Node Key
DeliveryNote dly_note_number Delivery Note No.
CreatedByUser created_by Version Created By
CreationDateTime created_at Uploaded On
LastChangedByUser changed_by User Name
LastChangedDateTime changed_at Timestamp
GrossAmountInTransacCurrency gross_amount Tax-Inclusive Amount
NetAmountInTransactionCurrency net_amount Tax-Exclusive Amount
TaxAmountInTransactionCurrency tax_amount VAT Amount Type
TransactionCurrency currency_code Currency Code
SupplierUUID partner_guid Partner GUID
_PurchaseOrder _PurchaseOrder
_Supplier _Supplier
_SupplierV2 _SupplierV2
_Item _Item
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_TransactionCurrency _TransactionCurrency

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_I_SupplierInvoice.
-- 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_ISI

CREATE VIEW SEPM_I_SupplierInvoice AS
SELECT
  node_key AS SupplierInvoiceUUID,
  po_guid AS PurchaseOrderUUID,
  dly_note_number AS DeliveryNote,
  created_by AS CreatedByUser,
  created_at AS CreationDateTime,
  changed_by AS LastChangedByUser,
  changed_at AS LastChangedDateTime,
  gross_amount AS GrossAmountInTransacCurrency,
  net_amount AS NetAmountInTransactionCurrency,
  tax_amount AS TaxAmountInTransactionCurrency,
  currency_code AS TransactionCurrency,
  partner_guid AS SupplierUUID
FROM snwd_po_inv_head
LEFT OUTER JOIN SEPM_I_Currency AS _TransactionCurrency ON TransactionCurrency = _TransactionCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN SEPM_I_SupplierInvoiceItem AS _Item ON SupplierInvoiceUUID = _Item.SupplierInvoiceUUID  -- association [0..*]
LEFT OUTER JOIN SEPM_I_PurchaseOrder AS _PurchaseOrder ON PurchaseOrderUUID = _PurchaseOrder.PurchaseOrderUUID  -- association [0..1]
LEFT OUTER JOIN SEPM_I_BusinessPartner AS _Supplier ON SupplierUUID = _Supplier.BusinessPartnerUUID  -- association [0..1]
LEFT OUTER JOIN SEPM_I_SUPPLIER AS _SupplierV2 ON SupplierUUID = _SupplierV2.SupplierUUID  -- association [0..1]
LEFT OUTER JOIN SEPM_I_Employee AS _CreatedByUser ON CreatedByUser = _CreatedByUser.EmployeeUUID  -- association [0..1]
LEFT OUTER JOIN SEPM_I_Employee AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.EmployeeUUID  -- association [0..1]
;