C_CntrlPOItemNextDelivery

DDL: C_CNTRLPOITEMNEXTDELIVERY SQL: CMMCPOINXTDEL Type: view CONSUMPTION

Central PO Item Next Delivery

C_CntrlPOItemNextDelivery is a Consumption CDS View that provides data about "Central PO Item Next Delivery" in SAP S/4HANA. It reads from 4 data sources (P_CntralPurOrderItm, P_CntrlPOItemNextDelivery, P_CntrlPOItemDeliveryDuration, I_CntrlPurOrderScheduleLine) and exposes 13 fields with key fields PurchaseOrder, PurchaseOrderItem, ExtSourceSystem. It has 2 associations to related views.

Data Sources (4)

SourceAliasJoin Type
P_CntralPurOrderItm CentralPOItem from
P_CntrlPOItemNextDelivery NextDelivery left_outer
P_CntrlPOItemDeliveryDuration P_CntrlPOItemDeliveryDuration left_outer
I_CntrlPurOrderScheduleLine ScheduleLine left_outer

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_ProcmtShippingStatus _DeliveryStatusText $projection.DeliveryStatus = _DeliveryStatusText.DeliveryStatus
[0..1] I_ProcmtDelivSchedDate _DeliveryPeriodText $projection.PlannedDeliveryDuration = _DeliveryPeriodText.PlannedDeliveryDuration

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName CMMCPOINXTDEL view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
EndUserText.label Central PO Item Next Delivery view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder P_CntralPurOrderItm PurchaseOrder Purchasing Document
KEY PurchaseOrderItem P_CntralPurOrderItm PurchaseOrderItem Purchasing Document Item
KEY ExtSourceSystem P_CntralPurOrderItm ExtSourceSystem Connected System ID
ScheduleLine P_CntrlPOItemNextDelivery ScheduleLine Schedule Line
PurchaseOrderQuantityUnit P_CntralPurOrderItm PurchaseOrderQuantityUnit Order Unit
ScheduleLineOrderQuantity
RoughGoodsReceiptQty
PurchaseOrderType P_CntralPurOrderItm PurchaseOrderType PO Type
PurchasingGroup P_CntralPurOrderItm PurchasingGroup Purchasing Group
PurchasingOrganization P_CntralPurOrderItm PurchasingOrganization Purchasing Organization
Plant P_CntralPurOrderItm Plant Valuation Area
_DeliveryStatusText _DeliveryStatusText
_DeliveryPeriodText _DeliveryPeriodText

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_CntrlPOItemNextDelivery.
-- 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: CMMCPOINXTDEL

CREATE VIEW C_CntrlPOItemNextDelivery AS
SELECT
  CentralPOItem.PurchaseOrder AS PurchaseOrder,
  CentralPOItem.PurchaseOrderItem AS PurchaseOrderItem,
  CentralPOItem.ExtSourceSystem AS ExtSourceSystem,
  NextDelivery.ScheduleLine AS ScheduleLine,
  CentralPOItem.PurchaseOrderQuantityUnit AS PurchaseOrderQuantityUnit,
  CentralPOItem.ReturnItems * ScheduleLine.ScheduleLineOrderQuantity AS ScheduleLineOrderQuantity,
  CentralPOItem.ReturnItems * ScheduleLine.RoughGoodsReceiptQty AS RoughGoodsReceiptQty,
  CentralPOItem.PurchaseOrderType AS PurchaseOrderType,
  CentralPOItem.PurchasingGroup AS PurchasingGroup,
  CentralPOItem.PurchasingOrganization AS PurchasingOrganization,
  CentralPOItem.Plant AS Plant
FROM P_CntralPurOrderItm AS CentralPOItem
LEFT OUTER JOIN P_CntrlPOItemNextDelivery AS NextDelivery ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CntrlPurOrderScheduleLine AS ScheduleLine ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_CntrlPOItemDeliveryDuration ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProcmtShippingStatus AS _DeliveryStatusText ON DeliveryStatus = _DeliveryStatusText.DeliveryStatus  -- association [0..1]
LEFT OUTER JOIN I_ProcmtDelivSchedDate AS _DeliveryPeriodText ON PlannedDeliveryDuration = _DeliveryPeriodText.PlannedDeliveryDuration  -- association [0..1]
;