I_MPPurOrdRefInvoice

DDL: I_MPPURORDREFINVOICE SQL: IMPPOREFINVOICE Type: view BASIC Package: VDM_CPM_WS

Master Project PO Reference Invoice

I_MPPurOrdRefInvoice is a Basic CDS View that provides data about "Master Project PO Reference Invoice" in SAP S/4HANA. It reads from 1 data source (P_MstrProjSupplierInvoice) and exposes 6 fields with key fields PurchaseOrder, PurchaseOrderItem. Part of development package VDM_CPM_WS.

Data Sources (1)

SourceAliasJoin Type
P_MstrProjSupplierInvoice SupplierInvoice from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName IMPPOREFINVOICE view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Master Project PO Reference Invoice view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder P_MstrProjSupplierInvoice PurchaseOrder Purchasing Document
KEY PurchaseOrderItem P_MstrProjSupplierInvoice PurchaseOrderItem Purchasing Document Item
Plant P_MstrProjSupplierInvoice Plant Valuation Area
InvoicedQuantity
CompanyCode P_MstrProjSupplierInvoice CompanyCode Receiver Company Code
InvoicedAmount

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_MPPurOrdRefInvoice.
-- 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: IMPPOREFINVOICE

CREATE VIEW I_MPPurOrdRefInvoice AS
SELECT
  SupplierInvoice.PurchaseOrder AS PurchaseOrder,
  SupplierInvoice.PurchaseOrderItem AS PurchaseOrderItem,
  SupplierInvoice.Plant AS Plant,
  sum(SupplierInvoice.QuantityInPurchaseOrderUnit) AS InvoicedQuantity,
  SupplierInvoice.CompanyCode AS CompanyCode,
  sum(SupplierInvoice.SupplierInvoiceItemAmount) AS InvoicedAmount
FROM P_MstrProjSupplierInvoice AS SupplierInvoice
;