P_MaterialOverdueSITPrediction

DDL: P_MATERIALOVERDUESITPREDICTION SQL: PMATOVERDUESITPD Type: view COMPOSITE

P_MaterialOverdueSITPrediction is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_MaterialOverdueSITPredCalc) and exposes 47 fields with key fields PurchaseOrder, PurchaseOrderItem, GoodsIssueMaterialDocument, GoodsIssueMaterialDocumentItem, GoodsIssueMaterialDocumentYear. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
P_MaterialOverdueSITPredCalc P_MaterialOverdueSITPredCalc from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_Product _Product $projection.Material = _Product.Product

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PMATOVERDUESITPD view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (47)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
KEY GoodsIssueMaterialDocument GoodsIssueMaterialDocument
KEY GoodsIssueMaterialDocumentItem GoodsIssueMaterialDocumentItem
KEY GoodsIssueMaterialDocumentYear GoodsIssueMaterialDocumentYear
KEY GoodsReceiptMaterialDocument GoodsReceiptMaterialDocument
KEY GoodsReceiptMaterialDocItem GoodsReceiptMaterialDocItem
KEY GoodsReceiptMaterialDocYear GoodsReceiptMaterialDocYear
IssuingCompanyCode IssuingCompanyCode
IssuingPlant IssuingPlant
IssuingPlantName IssuingPlantName
PurchasingDocumentType PurchasingDocumentType RFQ Type
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
PurchasingDocumentDeletionCode PurchasingDocumentDeletionCode Del. Indicator
InventorySpecialStockType InventorySpecialStockType Special Stock Type
Material Material Vehicle Model
MaterialName MaterialName Material Description
IsCompletelyDelivered IsCompletelyDelivered Is completely delivered
PurchaseOrderItemQuantity PurchaseOrderItemQuantity
BaseUnit BaseUnit Unit of Measure
NetAmount NetAmount Stated Amount
DocumentCurrency DocumentCurrency Document Currency
NumbersOfDaysSincePurOrdPostg NumbersOfDaysSincePurOrdPostg
DifferenceOfGRAndGIDate DifferenceOfGRAndGIDate
UnitOfMeasure UnitOfMeasure Unit Protected Qty
StockInTransitProcessType StockInTransitProcessType
GoodsIssueMovementType GoodsIssueMovementType
GoodsIssuePostingDate GoodsIssuePostingDate
GoodsIssueQuantity GoodsIssueQuantity
ReceivingPlant ReceivingPlant Receiving Plant
ReceivingPlantName ReceivingPlantName
GoodsReceiptMovementType GoodsReceiptMovementType
GoodsReceiptPostingDate GoodsReceiptPostingDate
ReceivingCompanyCode ReceivingCompanyCode Rcvg Co Code
GoodsReceiptQuantity GoodsReceiptQuantity Delivered
StorageLocation StorageLocation StorageLocation
Batch Batch Lot No.
LastPostingDateOfMaterialDoc
ScheduleLine ScheduleLine Schedule Line
ScheduleLineDeliveryDate ScheduleLineDeliveryDate Delivery Date
target TargetSys
both_plant
productgroup _Product ProductGroup Product Sold Group
volumeunit _Product VolumeUnit Volume Unit
lowlevelcode _Product LowLevelCode Low-Level Code

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_MaterialOverdueSITPrediction.
-- 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: PMATOVERDUESITPD

CREATE VIEW P_MaterialOverdueSITPrediction AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  GoodsIssueMaterialDocument,
  GoodsIssueMaterialDocumentItem,
  GoodsIssueMaterialDocumentYear,
  GoodsReceiptMaterialDocument,
  GoodsReceiptMaterialDocItem,
  GoodsReceiptMaterialDocYear,
  IssuingCompanyCode,
  IssuingPlant,
  IssuingPlantName,
  PurchasingDocumentType,
  CreatedByUser,
  CreationDate,
  PurchasingDocumentCategory,
  PurchasingDocumentDeletionCode,
  InventorySpecialStockType,
  Material,
  MaterialName,
  IsCompletelyDelivered,
  PurchaseOrderItemQuantity,
  BaseUnit,
  NetAmount,
  DocumentCurrency,
  NumbersOfDaysSincePurOrdPostg,
  DifferenceOfGRAndGIDate,
  UnitOfMeasure,
  StockInTransitProcessType,
  GoodsIssueMovementType,
  GoodsIssuePostingDate,
  GoodsIssueQuantity,
  ReceivingPlant,
  ReceivingPlantName,
  GoodsReceiptMovementType,
  GoodsReceiptPostingDate,
  ReceivingCompanyCode,
  GoodsReceiptQuantity,
  StorageLocation,
  Batch,
  cast(LastPostingDateOfMaterialDoc as nsdm_last_posting_of_matdoc preserving type) AS LastPostingDateOfMaterialDoc,
  ScheduleLine,
  ScheduleLineDeliveryDate,
  cast(target as nsdm_pred_deviation_in_days ) AS target,
  cast(both_plant as nsdm_pred_both_plants ) AS both_plant,
  _Product.ProductGroup AS productgroup,
  _Product.VolumeUnit AS volumeunit,
  _Product.LowLevelCode AS lowlevelcode
FROM P_MaterialOverdueSITPredCalc
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product  -- association [1..1]
;