P_InvoicesCreatedBeforePO1

DDL: P_INVOICESCREATEDBEFOREPO1 SQL: PINVBFRPO1 Type: view CONSUMPTION

P_InvoicesCreatedBeforePO1 is a Consumption CDS View in SAP S/4HANA. It reads from 3 data sources (P_InvoicesCreatedBeforePO3, I_SupplierInvoice, I_SupplierInvoiceItemPurOrdRef) and exposes 9 fields with key field PurchaseOrder.

Data Sources (3)

SourceAliasJoin Type
P_InvoicesCreatedBeforePO3 P_InvoicesCreatedBeforePO3 from
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 PINVBFRPO1 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 (9)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder PurchaseOrder Purchasing Document
AccountingDocument
CompanyCode PurchaseOrder CompanyCode Receiver Company Code
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
Supplier Supplier Supplier
PurchaseOrderDate PurchaseOrderDate PO Date
PurOrdNetAmountInDisplayCrcy PurOrdNetAmountInDisplayCrcy
DocumentDate PurchaseOrder 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_InvoicesCreatedBeforePO1.
-- 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: PINVBFRPO1
-- Parameters: P_DisplayCurrency : displaycurrency, P_StartDate : vdm_validitystart, P_EndDate : vdm_validityend

CREATE VIEW P_InvoicesCreatedBeforePO1 AS
SELECT
  PurchaseOrder.PurchaseOrder AS PurchaseOrder,
  min(SupplierInvoice.SupplierInvoice) AS AccountingDocument,
  PurchaseOrder.CompanyCode AS CompanyCode,
  PurchasingOrganization,
  PurchasingGroup,
  Supplier,
  PurchaseOrderDate,
  PurOrdNetAmountInDisplayCrcy,
  PurchaseOrder.DocumentDate AS DocumentDate
FROM P_InvoicesCreatedBeforePO3
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 */
;