C_OverduePurchaseOrder

DDL: C_OVERDUEPURCHASEORDER Type: view CONSUMPTION Package: ODATA_MM_PUR_PO_MAINTAIN_V2

Overdue Purchase Orders

C_OverduePurchaseOrder is a Consumption CDS View that provides data about "Overdue Purchase Orders" in SAP S/4HANA. It reads from 1 data source (I_PurOrdScheduleLineBasic) and exposes 5 fields with key field PurchaseOrder. It has 1 association to related views. Part of development package ODATA_MM_PUR_PO_MAINTAIN_V2.

Data Sources (1)

SourceAliasJoin Type
I_PurOrdScheduleLineBasic I_PurOrdScheduleLineBasic from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_PurchaseOrder _PurchaseOrder $projection.PurchaseOrder = _PurchaseOrder.PurchaseOrder

Annotations (8)

NameValueLevelField
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName COVDPURORDER view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
ScheduleLineDeliveryDate
NumberOfOverduePurOrders
NumberOfOverduePurOrdItm
_PurchaseOrder _PurchaseOrder

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_OverduePurchaseOrder.
-- 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.

CREATE VIEW C_OverduePurchaseOrder AS
SELECT
  PurchaseOrder,
  min(ScheduleLineDeliveryDate) AS ScheduleLineDeliveryDate,
  count( distinct PurchaseOrder ) AS NumberOfOverduePurOrders,
  count( distinct PurchaseOrderItem ) AS NumberOfOverduePurOrdItm
FROM I_PurOrdScheduleLineBasic
LEFT OUTER JOIN I_PurchaseOrder AS _PurchaseOrder ON PurchaseOrder = _PurchaseOrder.PurchaseOrder  -- association [1..1]
;