P_OverdueNotReleased
P_OverdueNotReleased
P_OverdueNotReleased is a Consumption CDS View that provides data about "P_OverdueNotReleased" in SAP S/4HANA. It reads from 4 data sources (P_OverduePurOrdItemsCount, I_PurchaseOrderItem, P_PurchaseOrderScheduleLine1, P_ScheduleLineConfirmation) and exposes 24 fields with key fields PurchaseOrder, PurchaseOrderItem. It has 3 associations to related views. Part of development package ODATA_MM_ANALYTICS.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| P_OverduePurOrdItemsCount | P_OverduePurOrdItemsCount | left_outer |
| I_PurchaseOrderItem | PurchaseOrderItem | from |
| P_PurchaseOrderScheduleLine1 | PurchaseOrderScheduleLine | left_outer |
| P_ScheduleLineConfirmation | ScheduleLineConfirmation | left_outer |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | mm_a_delivery_date | |
| P_EndDate | mm_a_delivery_date |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PurchasingOrganization | _PurchasingOrganization | $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization |
| [1..1] | I_PurchasingGroup | _PurchasingGroup | $projection.purchasinggroup = _PurchasingGroup.PurchasingGroup |
| [1..1] | I_Country | _Country | $projection.SupplierCountry = _Country.Country |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMMOVERDUENRREL | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | |||
| KEY | PurchaseOrderItem | |||
| PurchaseOrderItemText | I_PurchaseOrderItem | PurchaseOrderItemText | Short Text | |
| PurchasingOrganization | ||||
| _PurchasingOrganization | _PurchasingOrganization | |||
| PurchasingGroup | ||||
| _PurchasingGroup | _PurchasingGroup | |||
| Currency | _PurchaseOrderItem | DocumentCurrency | Document Currency | |
| Material | _PurchaseOrderItem | Material | Vehicle Model | |
| Supplier | ||||
| CompanyCode | _PurchaseOrderItem | CompanyCode | Receiver Company Code | |
| Plant | _PurchaseOrderItem | Plant | Valuation Area | |
| MaterialGroup | _PurchaseOrderItem | MaterialGroup | Product Group | |
| PurchaseOrderQuantityUnit | _PurchaseOrderItem | PurchaseOrderQuantityUnit | Order Unit | |
| PurchaseOrderQty | _PurchaseOrderItem | OrderQuantity | Quantity | |
| ReleaseIsNotCompleted | ||||
| ScheduleLineDeliveryDate | ||||
| OpenPurchaseOrderQuantity | ||||
| today | ||||
| SupplierCountry | ||||
| OpenPurchaseOrderNetAmount | ||||
| IsConfirmedScheduleLine | ||||
| PurchaseOrderDate | ||||
| _Country | _Country |
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_OverdueNotReleased.
-- 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: PMMOVERDUENRREL
-- Parameters: P_StartDate : mm_a_delivery_date, P_EndDate : mm_a_delivery_date
CREATE VIEW P_OverdueNotReleased AS
SELECT
cast( PurchaseOrderItem.PurchaseOrder as vdm_purchaseorder ) AS PurchaseOrder,
cast( PurchaseOrderItem.PurchaseOrderItem as vdm_purchaseorderitem ) AS PurchaseOrderItem,
PurchaseOrderItem.PurchaseOrderItemText AS PurchaseOrderItemText,
_PurchaseOrderItem._PurchaseOrder.PurchasingOrganization AS PurchasingOrganization,
_PurchaseOrderItem._PurchaseOrder.PurchasingGroup AS PurchasingGroup,
_PurchaseOrderItem.DocumentCurrency AS Currency,
_PurchaseOrderItem.Material AS Material,
_PurchaseOrderItem._PurchaseOrder.Supplier AS Supplier,
_PurchaseOrderItem.CompanyCode AS CompanyCode,
_PurchaseOrderItem.Plant AS Plant,
_PurchaseOrderItem.MaterialGroup AS MaterialGroup,
_PurchaseOrderItem.PurchaseOrderQuantityUnit AS PurchaseOrderQuantityUnit,
_PurchaseOrderItem.OrderQuantity AS PurchaseOrderQty,
_PurchaseOrderItem._PurchaseOrder.ReleaseIsNotCompleted AS ReleaseIsNotCompleted,
min(ScheduleLineDeliveryDate) AS ScheduleLineDeliveryDate,
sum( OpenPurchaseOrderQuantity ) AS OpenPurchaseOrderQuantity,
$session.system_date AS today,
cast( _PurchaseOrder._Supplier._StandardAddress.Country as mm_a_supplier_country ) AS SupplierCountry,
sum( OpenPurchaseOrderNetAmount ) AS OpenPurchaseOrderNetAmount,
max( IsConfirmedScheduleLine ) AS IsConfirmedScheduleLine,
PurchaseOrderItem._PurchaseOrder.PurchaseOrderDate AS PurchaseOrderDate
FROM I_PurchaseOrderItem AS PurchaseOrderItem
LEFT OUTER JOIN P_PurchaseOrderScheduleLine1 AS PurchaseOrderScheduleLine ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_ScheduleLineConfirmation AS ScheduleLineConfirmation ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_OverduePurOrdItemsCount ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization -- association [1..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON purchasinggroup = _PurchasingGroup.PurchasingGroup -- association [1..1]
LEFT OUTER JOIN I_Country AS _Country ON SupplierCountry = _Country.Country -- association [1..1]
;
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