P_SupplierDeliveryPrediction

DDL: P_SUPPLIERDELIVERYPREDICTION SQL: PSUPLRDELPRED Type: view CONSUMPTION

P_SupplierDeliveryPrediction is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_SuplrDelivPredictTrngData1) and exposes 44 fields with key fields PurchaseOrder, PurchaseOrderItem, ScheduleLine. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
P_SuplrDelivPredictTrngData1 P_SuplrDelivPredictTrngData1 from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_Material _Material $projection.Material = _Material.Material

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PSUPLRDELPRED view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view

Fields (44)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
KEY ScheduleLine ScheduleLine Schedule Line
PurchaseOrderDate PurchaseOrderDate PO Date
PurchaseOrderItemQty PurchaseOrderItemQty
Supplier Supplier Supplier
SupplyingPlant SupplyingPlant Supplying Plant
Plant Plant Valuation Area
MaterialGroup MaterialGroup Product Group
Material Material Vehicle Model
MaterialBaseUnit _Material MaterialBaseUnit Valuation Unit
UnitOfMeasureDimension
MRPRelevantMaterial MRPRelevantMaterial
MaterialClassification MaterialClassification
AccountAssignmentCategory AccountAssignmentCategory Acct Assgmt Cat
POIncotermsClassification POIncotermsClassification
POIncotermsTransferLocation POIncotermsTransferLocation
POIncotermsLocation1 POIncotermsLocation1
POIncotermsLocation2 POIncotermsLocation2
ItemIncotermsClassification ItemIncotermsClassification
ItemIncotermsTransferLocation ItemIncotermsTransferLocation
ItemIncotermsLocation1 ItemIncotermsLocation1
ItemIncotermsLocation2 ItemIncotermsLocation2
ScheduleLineOrderQuantity ScheduleLineOrderQuantity Scheduled Qty
PurchaseOrderQuantityUnit PurchaseOrderQuantityUnit Order Unit
SchedLineStscDeliveryDate SchedLineStscDeliveryDate Stat. Del. Date
ExpectedNoOfDays ExpectedNoOfDays
ActualNoOfDays ActualNoOfDays
DelayInNoOfDays DelayInNoOfDays
DeliveryBehavior DeliveryBehavior
LastPostingDateOfMaterialDoc LastPostingDateOfMaterialDoc
SupplierPlant SupplierPlant Plant
WeekNumber WeekNumber Calendar Week
PreviousWeekNumber PreviousWeekNumber
CreatedMonth CreatedMonth Calendar Month
PreviousMonthNumber PreviousMonthNumber
GoodsReceiptMaterialDocYear GoodsReceiptMaterialDocYear
diff_create diff_create
PreviousWeek PreviousWeek
prev_w_count prev_w_count
PreviousMonth PreviousMonth
prev_m_count prev_m_count
diff_w_count diff_w_count
diff_m_count diff_m_count

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_SupplierDeliveryPrediction.
-- 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: PSUPLRDELPRED

CREATE VIEW P_SupplierDeliveryPrediction AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  ScheduleLine,
  PurchaseOrderDate,
  PurchaseOrderItemQty,
  Supplier,
  SupplyingPlant,
  Plant,
  MaterialGroup,
  Material,
  _Material.MaterialBaseUnit AS MaterialBaseUnit,
  _Material._BaseUnit.UnitOfMeasureDimension AS UnitOfMeasureDimension,
  MRPRelevantMaterial,
  MaterialClassification,
  AccountAssignmentCategory,
  POIncotermsClassification,
  POIncotermsTransferLocation,
  POIncotermsLocation1,
  POIncotermsLocation2,
  ItemIncotermsClassification,
  ItemIncotermsTransferLocation,
  ItemIncotermsLocation1,
  ItemIncotermsLocation2,
  ScheduleLineOrderQuantity,
  PurchaseOrderQuantityUnit,
  SchedLineStscDeliveryDate,
  ExpectedNoOfDays,
  ActualNoOfDays,
  DelayInNoOfDays,
  DeliveryBehavior,
  LastPostingDateOfMaterialDoc,
  SupplierPlant,
  WeekNumber,
  PreviousWeekNumber,
  CreatedMonth,
  PreviousMonthNumber,
  GoodsReceiptMaterialDocYear,
  diff_create,
  PreviousWeek,
  prev_w_count,
  PreviousMonth,
  prev_m_count,
  diff_w_count,
  diff_m_count
FROM P_SuplrDelivPredictTrngData1
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [1..1]
;