C_PurOrdOverdueNotReleased
Overdue and not relsd purchase orders
C_PurOrdOverdueNotReleased is a Consumption CDS View (Cube) that provides data about "Overdue and not relsd purchase orders" in SAP S/4HANA. It reads from 1 data source (C_PurchaseOrderItemMoni) and exposes 21 fields. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| C_PurchaseOrderItemMoni | C_PurchaseOrderItemMoni | from |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_DisplayCurrency | displaycurrency | |
| P_DateFunction | datefunctionid | |
| P_StartDate | mm_a_delivery_date | |
| P_EndDate | mm_a_delivery_date | |
| P_Language | sylangu |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | P_OverdueNotReleased | _OverdueNotReleased | $projection.PurchaseOrder = _OverdueNotReleased.PurchaseOrder and $projection.PurchaseOrderItem = _OverdueNotReleased.PurchaseOrderItem |
| [1..1] | I_ProductPlantBasic | _ProductPlantBasic | $projection.Material = _ProductPlantBasic.Product and $projection.Plant = _ProductPlantBasic.Plant |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| AbapCatalog.sqlViewName | CPOOVERDUENREL | view | |
| EndUserText.label | Overdue and not relsd purchase orders | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.dataCategory | #CUBE | view | |
| Metadata.allowExtensions | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Analytics.internalName | #LOCAL | view | |
| AbapCatalog.preserveKey | true | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| resultElementDateFunctionStartDate | ||||
| resultElementDateFunctionEndDate | ||||
| PurchaseOrder | ||||
| PurchaseOrderItem | PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | |
| Supplier | PurchaseOrderItem | Supplier | Supplier | |
| SupplierName | PurchaseOrderItem | SupplierName | Supplier Name | |
| Material | PurchaseOrderItem | Material | Vehicle Model | |
| MaterialName | PurchaseOrderItem | MaterialName | Material Description | |
| Plant | PurchaseOrderItem | Plant | Valuation Area | |
| PlantName | PurchaseOrderItem | PlantName | Plant Name | |
| StorageLocation | PurchaseOrderItem | StorageLocation | StorageLocation | |
| StorageLocationName | PurchaseOrderItem | StorageLocationName | Storage Loc. Name | |
| PurchaseOrderQuantityUnit | PurchaseOrderItem | PurchaseOrderQuantityUnit | Order Unit | |
| PurchaseOrderItemStatus | PurchaseOrderItem | PurchaseOrderStatus | Doc. Status | |
| PurchasingDocumentStatusName | PurchaseOrderItem | PurchaseOrderOutputStatusName | PurOrdStatusName | |
| PurOrdItmNextDelivStatus | PurchaseOrderItem | DeliveryStatus | Delivery Status | |
| DeliveryStatusDescription | PurchaseOrderItem | DeliveryStatusDescription | ||
| DisplayCurrency | ||||
| OverdueDays | ||||
| OrderedQuantity | ||||
| _ProductPlantBasic | _ProductPlantBasic |
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 C_PurOrdOverdueNotReleased.
-- 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: CPOOVERDUENREL
-- Parameters: P_DisplayCurrency : displaycurrency, P_DateFunction : datefunctionid, P_StartDate : mm_a_delivery_date, P_EndDate : mm_a_delivery_date, P_Language : sylangu
CREATE VIEW C_PurOrdOverdueNotReleased AS
SELECT
resultElement: 'DateFunctionStartDate' AS resultElementDateFunctionStartDate,
resultElement: 'DateFunctionEndDate' AS resultElementDateFunctionEndDate,
binding: [ { targetParameter: 'P_DateFunction', type: #PARAMETER, value : 'P_DateFunction' AS PurchaseOrder,
PurchaseOrderItem.PurchaseOrderItem AS PurchaseOrderItem,
PurchaseOrderItem.Supplier AS Supplier,
PurchaseOrderItem.SupplierName AS SupplierName,
PurchaseOrderItem.Material AS Material,
PurchaseOrderItem.MaterialName AS MaterialName,
PurchaseOrderItem.Plant AS Plant,
PurchaseOrderItem.PlantName AS PlantName,
PurchaseOrderItem.StorageLocation AS StorageLocation,
PurchaseOrderItem.StorageLocationName AS StorageLocationName,
PurchaseOrderItem.PurchaseOrderQuantityUnit AS PurchaseOrderQuantityUnit,
PurchaseOrderItem.PurchaseOrderStatus AS PurchaseOrderItemStatus,
PurchaseOrderItem.PurchaseOrderOutputStatusName AS PurchasingDocumentStatusName,
PurchaseOrderItem.DeliveryStatus AS PurOrdItmNextDelivStatus,
PurchaseOrderItem.DeliveryStatusDescription AS DeliveryStatusDescription,
cast(:P_DisplayCurrency as displaycurrency) AS DisplayCurrency,
cast(dats_days_between(ScheduleLineDeliveryDate,_OverdueNotReleased(P_StartDate : $parameters.P_StartDate, P_EndDate : $parameters.P_EndDate).today)as mm_a_overdue_days) AS OverdueDays,
cast(_OverdueNotReleased(P_StartDate : $parameters.P_StartDate, P_EndDate : $parameters.P_EndDate).PurchaseOrderQty as mm_a_ordered_quantity) AS OrderedQuantity
FROM C_PurchaseOrderItemMoni
LEFT OUTER JOIN P_OverdueNotReleased AS _OverdueNotReleased ON PurchaseOrder = _OverdueNotReleased.PurchaseOrder AND PurchaseOrderItem = _OverdueNotReleased.PurchaseOrderItem -- association [1..1]
LEFT OUTER JOIN I_ProductPlantBasic AS _ProductPlantBasic ON Material = _ProductPlantBasic.Product AND Plant = _ProductPlantBasic.Plant -- 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