P_PurOrdDeliveredQty
Purchase Order Delivered Quantity
P_PurOrdDeliveredQty is a Consumption CDS View that provides data about "Purchase Order Delivered Quantity" in SAP S/4HANA. It reads from 2 data sources (I_PurchaseOrderHistory, P_PurchaseOrderQuantity) and exposes 23 fields with key fields PurchaseOrder, PurchaseOrderItem.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseOrderHistory | History | inner |
| P_PurchaseOrderQuantity | P_PurchaseOrderQuantity | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | bedat | |
| P_EndDate | bedat |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMMPODELVRDQTY | view | |
| ClientDependent | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Purchase Order Delivered Quantity | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | _PurchaseOrderItem | PurchaseOrder | Purchasing Document |
| KEY | PurchaseOrderItem | _PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item |
| PurchaseOrderQuantityUnit | _PurchaseOrderItem | PurchaseOrderQuantityUnit | Order Unit | |
| NetAmount | _PurchaseOrderItem | NetAmount | Stated Amount | |
| OrderQuantity | _PurchaseOrderItem | OrderQuantity | Quantity | |
| OrderPriceUnitToOrderUnitNmrtr | _PurchaseOrderItem | OrderPriceUnitToOrderUnitNmrtr | Quantity Conversion Numerator | |
| OrdPriceUnitToOrderUnitDnmntr | _PurchaseOrderItem | OrdPriceUnitToOrderUnitDnmntr | Quantity Conversion Denominator | |
| Currency | _PurchaseOrderItem | Currency | Valuation Crcy | |
| PurchaseOrderDate | _PurchaseOrderItem | PurchaseOrderDate | PO Date | |
| Supplier | _PurchaseOrderItem | Supplier | Supplier | |
| PurchaseOrderType | _PurchaseOrderItem | PurchaseOrderType | PO Type | |
| PurchasingOrganization | _PurchaseOrderItem | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | _PurchaseOrderItem | PurchasingGroup | Purchasing Group | |
| Plant | _PurchaseOrderItem | Plant | Valuation Area | |
| Material | _PurchaseOrderItem | Material | Vehicle Model | |
| MaterialGroup | _PurchaseOrderItem | MaterialGroup | Product Group | |
| CompanyCode | _PurchaseOrderItem | CompanyCode | Receiver Company Code | |
| NetPriceAmount | _PurchaseOrderItem | NetPriceAmount | Net Price | |
| NetPriceQuantity | _PurchaseOrderItem | NetPriceQuantity | Price Unit | |
| FinalPostingDate | ||||
| FirstPostingDate | ||||
| Quantityelse0endendasDeliveredQuantity | ||||
| SuplrEvalCritraDelivCompleted | _PurchaseOrderItem | SuplrEvalCritraDelivCompleted |
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_PurOrdDeliveredQty.
-- 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: PMMPODELVRDQTY
-- Parameters: P_StartDate : bedat, P_EndDate : bedat
CREATE VIEW P_PurOrdDeliveredQty AS
SELECT
_PurchaseOrderItem.PurchaseOrder AS PurchaseOrder,
_PurchaseOrderItem.PurchaseOrderItem AS PurchaseOrderItem,
_PurchaseOrderItem.PurchaseOrderQuantityUnit AS PurchaseOrderQuantityUnit,
_PurchaseOrderItem.NetAmount AS NetAmount,
_PurchaseOrderItem.OrderQuantity AS OrderQuantity,
_PurchaseOrderItem.OrderPriceUnitToOrderUnitNmrtr AS OrderPriceUnitToOrderUnitNmrtr,
_PurchaseOrderItem.OrdPriceUnitToOrderUnitDnmntr AS OrdPriceUnitToOrderUnitDnmntr,
_PurchaseOrderItem.Currency AS Currency,
_PurchaseOrderItem.PurchaseOrderDate AS PurchaseOrderDate,
_PurchaseOrderItem.Supplier AS Supplier,
_PurchaseOrderItem.PurchaseOrderType AS PurchaseOrderType,
_PurchaseOrderItem.PurchasingOrganization AS PurchasingOrganization,
_PurchaseOrderItem.PurchasingGroup AS PurchasingGroup,
_PurchaseOrderItem.Plant AS Plant,
_PurchaseOrderItem.Material AS Material,
_PurchaseOrderItem.MaterialGroup AS MaterialGroup,
_PurchaseOrderItem.CompanyCode AS CompanyCode,
_PurchaseOrderItem.NetPriceAmount AS NetPriceAmount,
_PurchaseOrderItem.NetPriceQuantity AS NetPriceQuantity,
max( History.PostingDate ) AS FinalPostingDate,
min( History.PostingDate ) AS FirstPostingDate,
sum( case _PurchaseOrderItem.IsReturnsItem when 'X' then case History.DebitCreditCode when 'S' then -1 * History.Quantity when 'H' then History.Quantity else 0 end else case History.DebitCreditCode when 'S' then History.Quantity when 'H' then -1 * History.Quantity else 0 end end ) as DeliveredQuantity AS Quantityelse0endendasDeliveredQuantity,
_PurchaseOrderItem.SuplrEvalCritraDelivCompleted AS SuplrEvalCritraDelivCompleted
FROM P_PurchaseOrderQuantity
INNER JOIN I_PurchaseOrderHistory AS History ON /* join condition not captured in parsed metadata */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA