P_PurOrdItemAggr_Accpo

DDL: P_PURORDITEMAGGR_ACCPO SQL: PPURORDITMAGGR_A Type: view CONSUMPTION

Purchase Order Item History

P_PurOrdItemAggr_Accpo is a Consumption CDS View that provides data about "Purchase Order Item History" in SAP S/4HANA. It reads from 1 data source (P_PurOrdItemHisCal_Accpo) and exposes 6 fields with key fields PurchaseOrder, PurchaseOrderItem.

Data Sources (1)

SourceAliasJoin Type
P_PurOrdItemHisCal_Accpo P_PurOrdItemHisCal_Accpo from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PPURORDITMAGGR_A view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #NOT_REQUIRED view
AbapCatalog.preserveKey true view
EndUserText.label Purchase Order Item History view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
InvoiceReceiptQty
GoodsReceiptAmount
InvoiceReceiptAmount
InvcRcptAmtWthoutNonDcblTaxAmt

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_PurOrdItemAggr_Accpo.
-- 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: PPURORDITMAGGR_A

CREATE VIEW P_PurOrdItemAggr_Accpo AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  sum(InvoiceReceiptQty) AS InvoiceReceiptQty,
  sum(GoodsReceiptAmount) AS GoodsReceiptAmount,
  sum(InvoiceReceiptAmount) AS InvoiceReceiptAmount,
  sum(InvcRcptAmtWthoutNonDcblTaxAmt) AS InvcRcptAmtWthoutNonDcblTaxAmt
FROM P_PurOrdItemHisCal_Accpo
;