P_CntrlPOItemDeliveryDuration

DDL: P_CNTRLPOITEMDELIVERYDURATION SQL: PMMCPOIDELDUR Type: view CONSUMPTION Package: ODATA_MM_PUR_HUB_PO_ANA

Central PO Item Delivery Duration

P_CntrlPOItemDeliveryDuration is a Consumption CDS View that provides data about "Central PO Item Delivery Duration" in SAP S/4HANA. It reads from 1 data source (I_CntrlPurOrderScheduleLine) and exposes 6 fields with key fields PurchaseOrder, PurchaseOrderItem, ExtSourceSystem, ScheduleLine. Part of development package ODATA_MM_PUR_HUB_PO_ANA.

Data Sources (1)

SourceAliasJoin Type
I_CntrlPurOrderScheduleLine I_CntrlPurOrderScheduleLine from

Parameters (1)

NameTypeDefault
P_Date sydatum

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PMMCPOIDELDUR view
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Central PO Item Delivery Duration view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
KEY ExtSourceSystem ExtSourceSystem Connected System ID
KEY ScheduleLine ScheduleLine Schedule Line
ScheduleLineDeliveryDate ScheduleLineDeliveryDate Delivery Date
DurationToNextStatusInDays

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_CntrlPOItemDeliveryDuration.
-- 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: PMMCPOIDELDUR
-- Parameters: P_Date : sydatum

CREATE VIEW P_CntrlPOItemDeliveryDuration AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  ExtSourceSystem,
  ScheduleLine,
  ScheduleLineDeliveryDate,
  dats_days_between($parameters.P_Date,ScheduleLineDeliveryDate) AS DurationToNextStatusInDays
FROM I_CntrlPurOrderScheduleLine
;