P_InvoicesCreatedBeforePO3

DDL: P_INVOICESCREATEDBEFOREPO3 SQL: PINVBFRPO3 Type: view CONSUMPTION

P_InvoicesCreatedBeforePO3 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_InvoicesCreatedBeforePO) and exposes 8 fields with key field PurchaseOrder.

Data Sources (1)

SourceAliasJoin Type
P_InvoicesCreatedBeforePO P_InvoicesCreatedBeforePO from

Parameters (3)

NameTypeDefault
P_DisplayCurrency displaycurrency
P_StartDate vdm_validitystart
P_EndDate vdm_validityend

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PINVBFRPO3 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 (8)

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

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

CREATE VIEW P_InvoicesCreatedBeforePO3 AS
SELECT
  PurchaseOrder.PurchaseOrder AS PurchaseOrder,
  PurchaseOrder.CompanyCode AS CompanyCode,
  PurchasingOrganization,
  PurchasingGroup,
  Supplier,
  PurchaseOrderDate,
  sum(PurOrdNetAmountInDisplayCrcy) AS PurOrdNetAmountInDisplayCrcy,
  min(DocumentDate) AS DocumentDate
FROM P_InvoicesCreatedBeforePO
;