P_InvoicesCreatedBeforePO

DDL: P_INVOICESCREATEDBEFOREPO SQL: PINVBFRPO Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

Invoices created before Purchase Orders

P_InvoicesCreatedBeforePO is a Consumption CDS View that provides data about "Invoices created before Purchase Orders" in SAP S/4HANA. It reads from 4 data sources (I_PurchaseOrder, I_PurchaseOrderItem, I_SupplierInvoice, I_SupplierInvoiceItemPurOrdRef) and exposes 7 fields with key field PurchaseOrder. Part of development package ODATA_MM_ANALYTICS.

Data Sources (4)

SourceAliasJoin Type
I_PurchaseOrder PurchaseOrder from
I_PurchaseOrderItem PurchaseOrderItem inner
I_SupplierInvoice SupplierInvoice inner
I_SupplierInvoiceItemPurOrdRef SupplierInvoiceItem inner

Parameters (3)

NameTypeDefault
P_DisplayCurrency displaycurrency
P_StartDate vdm_validitystart
P_EndDate vdm_validityend

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PINVBFRPO view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder I_PurchaseOrder PurchaseOrder Purchasing Document
CompanyCode I_PurchaseOrder CompanyCode Receiver Company Code
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
Supplier Supplier Supplier
PurchaseOrderDate PurchaseOrderDate PO Date
DocumentDate DocumentDate Journal Entry Date

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 P_InvoicesCreatedBeforePO.
-- 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: PINVBFRPO
-- Parameters: P_DisplayCurrency : displaycurrency, P_StartDate : vdm_validitystart, P_EndDate : vdm_validityend

CREATE VIEW P_InvoicesCreatedBeforePO AS
SELECT
  PurchaseOrder.PurchaseOrder AS PurchaseOrder,
  PurchaseOrder.CompanyCode AS CompanyCode,
  PurchasingOrganization,
  PurchasingGroup,
  Supplier,
  PurchaseOrderDate,
  DocumentDate
FROM I_PurchaseOrder AS PurchaseOrder
INNER JOIN I_PurchaseOrderItem AS PurchaseOrderItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_SupplierInvoiceItemPurOrdRef AS SupplierInvoiceItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_SupplierInvoice AS SupplierInvoice ON /* join condition not captured in parsed metadata */
;