I_MRPUncoveredDemand

DDL: I_MRPUNCOVEREDDEMAND Type: view_entity COMPOSITE Package: ODATA_PP_MRP

Uncovered Demands

I_MRPUncoveredDemand is a Composite CDS View that provides data about "Uncovered Demands" in SAP S/4HANA. It reads from 2 data sources (I_MRPSalesDemand, I_MRPTransferDemand) and exposes 147 fields with key fields MRPPlant, MRPArea, Material, MRPPlanningSegment, MRPPlanningSegmentType. It has 6 associations to related views. Part of development package ODATA_PP_MRP.

Data Sources (2)

SourceAliasJoin Type
I_MRPSalesDemand SalesDemand from
I_MRPTransferDemand TransferDemand union

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_CustomerSalesArea _CustomerSalesArea $projection.Customer = _CustomerSalesArea.Customer and $projection.SalesOrganization = _CustomerSalesArea.SalesOrganization and $projection.DistributionChannel = _CustomerSalesArea.DistributionChannel and $projection.Division = _CustomerSalesArea.Division
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_Plant _Plant $projection.MRPPlant = _Plant.Plant
[0..1] I_MRPArea _MRPArea $projection.MRPArea = _MRPArea.MRPArea
[0..1] I_MRPController _MRPController $projection.MRPController = _MRPController.MRPController and $projection.MRPPlant = _MRPController.Plant
[0..1] I_MaterialMRPArea _MaterialMRPArea $projection.MRPPlant = _MaterialMRPArea.Plant and $projection.Material = _MaterialMRPArea.Material and $projection.MRPArea = _MaterialMRPArea.MRPArea

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Uncovered Demands view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view

Fields (147)

KeyFieldSource TableSource FieldDescription
KEY MRPPlant I_MRPSalesDemand MRPPlant Plant
KEY MRPArea I_MRPSalesDemand MRPArea MRP Area
KEY Material I_MRPSalesDemand Material Vehicle Model
KEY MRPPlanningSegment I_MRPSalesDemand MRPPlanningSegment Plng Segmnt No.
KEY MRPPlanningSegmentType MRP segment
KEY MaterialShortageProfile I_MRPSalesDemand MaterialShortageProfile Shortage Prf.
KEY MaterialShortageProfileCount I_MRPSalesDemand MaterialShortageProfileCount Counter
KEY MRPElement I_MRPSalesDemand MRPElement MRP element number
KEY MRPElementItem I_MRPSalesDemand MRPElementItem MRP elemnt item
KEY MRPElementScheduleLine I_MRPSalesDemand MRPElementScheduleLine Scheduling
KEY MRPElementCategory I_MRPSalesDemand MRPElementCategory MRP Elmnt Ind.
PlantName _Plant PlantName Plant Name
PlanningSegmentDocument I_MRPSalesDemand PlanningSegmentDocument
PlanningSegmentDocumentItem I_MRPSalesDemand PlanningSegmentDocumentItem
FactoryCalendar I_MRPSalesDemand FactoryCalendar Factory Calendar
MaterialName I_MRPSalesDemand MaterialName Material Description
MaterialSafetyStockQty I_MRPSalesDemand MaterialSafetyStockQty Safety Stock
MRPController I_MRPSalesDemand MRPController MRP Controller
MaterialProcurementCategory I_MRPSalesDemand MaterialProcurementCategory Procurement
MaterialBaseUnit I_MRPSalesDemand MaterialBaseUnit Valuation Unit
UnitOfMeasureNumberOfDecimals I_MRPSalesDemand UnitOfMeasureNumberOfDecimals
UnitOfMeasureDspNmbrOfDcmls I_MRPSalesDemand UnitOfMeasureDspNmbrOfDcmls
MaterialReplnmtLeadDurnEndDate I_MRPSalesDemand MaterialReplnmtLeadDurnEndDate Date
TotalReplnmtLeadDurnEndDate I_MRPSalesDemand TotalReplnmtLeadDurnEndDate Date
ManualPlanningHorizonEndDate I_MRPSalesDemand ManualPlanningHorizonEndDate Date
MRPSafetyDurationEndDate I_MRPSalesDemand MRPSafetyDurationEndDate Date
ProductionSupervisor I_MRPSalesDemand ProductionSupervisor Prodn Supervisor
MRPElementAvailyOrRqmtDate I_MRPSalesDemand MRPElementAvailyOrRqmtDate Time Stamp
MRPElementOpenQuantity
SourceMRPElementCategory I_MRPSalesDemand SourceMRPElementCategory MRP Elmnt Ind.
SourceMRPElement I_MRPSalesDemand SourceMRPElement MRP element number
SourceMRPElementItem I_MRPSalesDemand SourceMRPElementItem MRP elemnt item
MRPElementUncoveredQuantity I_MRPSalesDemand MRPElementUncoveredQuantity DEC 20 3
MRPElementDelayedQuantity I_MRPSalesDemand MRPElementDelayedQuantity DEC 20 3
MRPElementTypeImportance I_MRPSalesDemand MRPElementTypeImportance Sort ind. 01
MaximumDelayDate I_MRPSalesDemand MaximumDelayDate Date
MaximumDelayInDays I_MRPSalesDemand MaximumDelayInDays Max.DelayInDays
MaximumDelayInWorkdays I_MRPSalesDemand MaximumDelayInWorkdays MaxDelayWorkday
ProcurementProgress I_MRPSalesDemand ProcurementProgress
StorageLocation I_MRPSalesDemand StorageLocation StorageLocation
IssuingOrReceivingPlant I_MRPSalesDemand IssuingOrReceivingPlant Transfer Plant
CompanyCurrency I_MRPSalesDemand CompanyCurrency
CurrencyDecimals I_MRPSalesDemand CurrencyDecimals Rounding Places
MRPOrderCategory I_MRPSalesDemand OrderCategory
OrderType I_MRPSalesDemand OrderType Order Type
OrderQuantity I_MRPSalesDemand OrderQuantity Quantity
DocumentCurrency I_MRPSalesDemand DocumentCurrency Document Currency
NetValueInDocCurrency I_MRPSalesDemand NetValueInDocCurrency Stated Amount
OrderCreationDate I_MRPSalesDemand OrderCreationDate Time Stamp
RequestedDeliveryDate I_MRPSalesDemand RequestedDeliveryDate Requested Delivery Date
DeliveryPriority I_MRPSalesDemand DeliveryPriority Delivery Prior.
DeliveryDateQuantityIsFixed I_MRPSalesDemand DeliveryDateQuantityIsFixed Fixed Date
UnderdelivTolrtdLmtRatioInPct I_MRPSalesDemand UnderdelivTolrtdLmtRatioInPct Underdel. Tol.
RequestedLoadingDate I_MRPSalesDemand RequestedLoadingDate Loading Date
RequestedGoodsIssueDate I_MRPSalesDemand RequestedGoodsIssueDate Goods Issue
SalesOrganization I_MRPSalesDemand SalesOrganization Sales Organization
DistributionChannel I_MRPSalesDemand DistributionChannel RefDistCh-Cust/Mat.
PurchaseOrderByCustomer I_MRPSalesDemand PurchaseOrderByCustomer Purchase Order Number
Customer I_MRPSalesDemand Customer Transfer Plant
CustomerName _Customer BPCustomerName Name of Customer
CustomerGroup _CustomerSalesArea CustomerGroup Customer Group
CustomerClassification _CustomerSalesArea CustomerABCClassification ABC class
DeliveryBlockReason I_MRPSalesDemand DeliveryBlockReason Delivery Block
MRPDeliveryIsBlocked I_MRPSalesDemand DeliveryIsBlocked Delivery block
PartialDeliveryIsAllowed I_MRPSalesDemand PartialDeliveryIsAllowed Partial Deliv.
DeliveryBlockReasonText I_MRPSalesDemand DeliveryBlockReasonText
DeliveryPriorityDesc I_MRPSalesDemand DeliveryPriorityDesc
Division I_MRPSalesDemand Division Internal Division ID
MRPTypeendasMRPType
MRPAreaText _MRPArea MRPAreaText
MRPControllerName _MRPController MRPControllerName Controller name
AddressID _Plant AddressID Ship-to address
ShipToParty I_MRPSalesDemand ShipToParty Sold-to Party
MRPPlant Plant
KEY MRPArea I_MRPTransferDemand MRPArea MRP Area
KEY Material I_MRPTransferDemand Material Vehicle Model
KEY MRPPlanningSegment I_MRPTransferDemand MRPPlanningSegment Plng Segmnt No.
KEY MRPPlanningSegmentType I_MRPTransferDemand MRPPlanningSegmentType MRP segment
KEY MaterialShortageProfile I_MRPTransferDemand MaterialShortageProfile Shortage Prf.
KEY MaterialShortageProfileCount I_MRPTransferDemand MaterialShortageProfileCount Counter
KEY MRPElement I_MRPTransferDemand MRPElement MRP element number
KEY MRPElementItem I_MRPTransferDemand MRPElementItem MRP elemnt item
KEY MRPElementScheduleLine I_MRPTransferDemand MRPElementScheduleLine Scheduling
KEY MRPElementCategory I_MRPTransferDemand MRPElementCategory MRP Elmnt Ind.
PlantName _Plant PlantName Plant Name
PlanningSegmentDocument I_MRPTransferDemand PlanningSegmentDocument
PlanningSegmentDocumentItem I_MRPTransferDemand PlanningSegmentDocumentItem
FactoryCalendar I_MRPTransferDemand FactoryCalendar Factory Calendar
MaterialName I_MRPTransferDemand MaterialName Material Description
MaterialSafetyStockQty I_MRPTransferDemand MaterialSafetyStockQty Safety Stock
MRPController I_MRPTransferDemand MRPController MRP Controller
MaterialProcurementCategory I_MRPTransferDemand MaterialProcurementCategory Procurement
MaterialBaseUnit I_MRPTransferDemand MaterialBaseUnit Valuation Unit
UnitOfMeasureNumberOfDecimals I_MRPTransferDemand UnitOfMeasureNumberOfDecimals
UnitOfMeasureDspNmbrOfDcmls I_MRPTransferDemand UnitOfMeasureDspNmbrOfDcmls
MaterialReplnmtLeadDurnEndDate I_MRPTransferDemand MaterialReplnmtLeadDurnEndDate Date
TotalReplnmtLeadDurnEndDate I_MRPTransferDemand TotalReplnmtLeadDurnEndDate Date
ManualPlanningHorizonEndDate I_MRPTransferDemand ManualPlanningHorizonEndDate Date
MRPSafetyDurationEndDate I_MRPTransferDemand MRPSafetyDurationEndDate Date
ProductionSupervisor I_MRPTransferDemand ProductionSupervisor Prodn Supervisor
MRPElementAvailyOrRqmtDate I_MRPTransferDemand MRPElementAvailyOrRqmtDate Time Stamp
MRPElementOpenQuantity
SourceMRPElementCategory I_MRPTransferDemand SourceMRPElementCategory MRP Elmnt Ind.
SourceMRPElement I_MRPTransferDemand SourceMRPElement MRP element number
SourceMRPElementItem I_MRPTransferDemand SourceMRPElementItem MRP elemnt item
MRPElementUncoveredQuantity I_MRPTransferDemand MRPElementUncoveredQuantity DEC 20 3
MRPElementDelayedQuantity I_MRPTransferDemand MRPElementDelayedQuantity DEC 20 3
MRPElementTypeImportance I_MRPTransferDemand MRPElementTypeImportance Sort ind. 01
MaximumDelayDate I_MRPTransferDemand MaximumDelayDate Date
MaximumDelayInDays I_MRPTransferDemand MaximumDelayInDays Max.DelayInDays
MaximumDelayInWorkdays I_MRPTransferDemand MaximumDelayInWorkdays MaxDelayWorkday
ProcurementProgress I_MRPTransferDemand ProcurementProgress
StorageLocation I_MRPTransferDemand StorageLocation StorageLocation
IssuingOrReceivingPlant Transfer Plant
CompanyCurrency I_MRPTransferDemand CompanyCurrency
CurrencyDecimals Rounding Places
MRPOrderCategory I_MRPTransferDemand MRPOrderCategory
OrderType I_MRPTransferDemand OrderType Order Type
OrderQuantity I_MRPTransferDemand OrderQuantity Quantity
DocumentCurrency Document Currency
NetValueInDocCurrency Stated Amount
OrderCreationDate Time Stamp
RequestedDeliveryDate RequestedDeliveryDate Requested Delivery Date
DeliveryPriority Delivery Prior.
DeliveryDateQuantityIsFixed Fixed Date
UnderdelivTolrtdLmtRatioInPct Underdel. Tol.
RequestedLoadingDate LoadingDate Loading Date
RequestedGoodsIssueDate Goods Issue
SalesOrganization Sales Organization
DistributionChannel RefDistCh-Cust/Mat.
PurchaseOrderByCustomer I_MRPTransferDemand PurchaseOrderByCustomer Purchase Order Number
Customer I_MRPTransferDemand IssuingOrReceivingPlant Transfer Plant
CustomerName Name of Customer
CustomerGroup Customer Group
CustomerClassification ABC class
DeliveryBlockReason Delivery Block
MRPDeliveryIsBlocked Delivery block
PartialDeliveryIsAllowed Partial Deliv.
DeliveryBlockReasonText
DeliveryPriorityDesc
Division Internal Division ID
MRPTypeendasMRPType
MRPAreaText _MRPArea MRPAreaText
MRPControllerName _MRPController MRPControllerName Controller name
AddressID _Plant AddressID Ship-to address
ShipToParty I_MRPTransferDemand Customer Sold-to Party
SoldToParty I_MRPTransferDemand Customer Sold-to Party

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 I_MRPUncoveredDemand.
-- 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 I_MRPUncoveredDemand AS
SELECT
  SalesDemand.MRPPlant AS MRPPlant,
  SalesDemand.MRPArea AS MRPArea,
  SalesDemand.Material AS Material,
  SalesDemand.MRPPlanningSegment AS MRPPlanningSegment,
  cast( SalesDemand.MRPPlanningSegmentType as plaab ) AS MRPPlanningSegmentType,
  SalesDemand.MaterialShortageProfile AS MaterialShortageProfile,
  SalesDemand.MaterialShortageProfileCount AS MaterialShortageProfileCount,
  SalesDemand.MRPElement AS MRPElement,
  SalesDemand.MRPElementItem AS MRPElementItem,
  SalesDemand.MRPElementScheduleLine AS MRPElementScheduleLine,
  SalesDemand.MRPElementCategory AS MRPElementCategory,
  _Plant.PlantName AS PlantName,
  SalesDemand.PlanningSegmentDocument AS PlanningSegmentDocument,
  SalesDemand.PlanningSegmentDocumentItem AS PlanningSegmentDocumentItem,
  SalesDemand.FactoryCalendar AS FactoryCalendar,
  SalesDemand.MaterialName AS MaterialName,
  SalesDemand.MaterialSafetyStockQty AS MaterialSafetyStockQty,
  SalesDemand.MRPController AS MRPController,
  SalesDemand.MaterialProcurementCategory AS MaterialProcurementCategory,
  SalesDemand.MaterialBaseUnit AS MaterialBaseUnit,
  SalesDemand.UnitOfMeasureNumberOfDecimals AS UnitOfMeasureNumberOfDecimals,
  SalesDemand.UnitOfMeasureDspNmbrOfDcmls AS UnitOfMeasureDspNmbrOfDcmls,
  SalesDemand.MaterialReplnmtLeadDurnEndDate AS MaterialReplnmtLeadDurnEndDate,
  SalesDemand.TotalReplnmtLeadDurnEndDate AS TotalReplnmtLeadDurnEndDate,
  SalesDemand.ManualPlanningHorizonEndDate AS ManualPlanningHorizonEndDate,
  SalesDemand.MRPSafetyDurationEndDate AS MRPSafetyDurationEndDate,
  SalesDemand.ProductionSupervisor AS ProductionSupervisor,
  SalesDemand.MRPElementAvailyOrRqmtDate AS MRPElementAvailyOrRqmtDate,
  cast ( -1 * SalesDemand.MRPElementOpenQuantity as abap.dec( 20, 3 ) ) AS MRPElementOpenQuantity,
  SalesDemand.SourceMRPElementCategory AS SourceMRPElementCategory,
  SalesDemand.SourceMRPElement AS SourceMRPElement,
  SalesDemand.SourceMRPElementItem AS SourceMRPElementItem,
  SalesDemand.MRPElementUncoveredQuantity AS MRPElementUncoveredQuantity,
  SalesDemand.MRPElementDelayedQuantity AS MRPElementDelayedQuantity,
  SalesDemand.MRPElementTypeImportance AS MRPElementTypeImportance,
  SalesDemand.MaximumDelayDate AS MaximumDelayDate,
  SalesDemand.MaximumDelayInDays AS MaximumDelayInDays,
  SalesDemand.MaximumDelayInWorkdays AS MaximumDelayInWorkdays,
  SalesDemand.ProcurementProgress AS ProcurementProgress,
  SalesDemand.StorageLocation AS StorageLocation,
  SalesDemand.IssuingOrReceivingPlant AS IssuingOrReceivingPlant,
  SalesDemand.CompanyCurrency AS CompanyCurrency,
  SalesDemand.CurrencyDecimals AS CurrencyDecimals,
  SalesDemand.OrderCategory AS MRPOrderCategory,
  SalesDemand.OrderType AS OrderType,
  SalesDemand.OrderQuantity AS OrderQuantity,
  SalesDemand.DocumentCurrency AS DocumentCurrency,
  SalesDemand.NetValueInDocCurrency AS NetValueInDocCurrency,
  SalesDemand.OrderCreationDate AS OrderCreationDate,
  SalesDemand.RequestedDeliveryDate AS RequestedDeliveryDate,
  SalesDemand.DeliveryPriority AS DeliveryPriority,
  SalesDemand.DeliveryDateQuantityIsFixed AS DeliveryDateQuantityIsFixed,
  SalesDemand.UnderdelivTolrtdLmtRatioInPct AS UnderdelivTolrtdLmtRatioInPct,
  SalesDemand.RequestedLoadingDate AS RequestedLoadingDate,
  SalesDemand.RequestedGoodsIssueDate AS RequestedGoodsIssueDate,
  SalesDemand.SalesOrganization AS SalesOrganization,
  SalesDemand.DistributionChannel AS DistributionChannel,
  SalesDemand.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
  SalesDemand.Customer AS Customer,
  _Customer.BPCustomerName AS CustomerName,
  _CustomerSalesArea.CustomerGroup AS CustomerGroup,
  _CustomerSalesArea.CustomerABCClassification AS CustomerClassification,
  SalesDemand.DeliveryBlockReason AS DeliveryBlockReason,
  SalesDemand.DeliveryIsBlocked AS MRPDeliveryIsBlocked,
  SalesDemand.PartialDeliveryIsAllowed AS PartialDeliveryIsAllowed,
  SalesDemand.DeliveryBlockReasonText AS DeliveryBlockReasonText,
  SalesDemand.DeliveryPriorityDesc AS DeliveryPriorityDesc,
  SalesDemand.Division AS Division,
  case when SalesDemand.MRPType <> _MaterialMRPArea.MRPType and _MaterialMRPArea.MRPType <> '' then _MaterialMRPArea.MRPType else SalesDemand.MRPType end as MRPType AS MRPTypeendasMRPType,
  _MRPArea.MRPAreaText AS MRPAreaText,
  _MRPController.MRPControllerName AS MRPControllerName,
  _Plant.AddressID AS AddressID,
  SalesDemand.ShipToParty AS ShipToParty,
  TransferDemand.Customer AS SoldToParty
FROM I_MRPSalesDemand AS SalesDemand
LEFT OUTER JOIN I_CustomerSalesArea AS _CustomerSalesArea ON Customer = _CustomerSalesArea.Customer AND SalesOrganization = _CustomerSalesArea.SalesOrganization AND DistributionChannel = _CustomerSalesArea.DistributionChannel AND Division = _CustomerSalesArea.Division  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON MRPPlant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_MRPArea AS _MRPArea ON MRPArea = _MRPArea.MRPArea  -- association [0..1]
LEFT OUTER JOIN I_MRPController AS _MRPController ON MRPController = _MRPController.MRPController AND MRPPlant = _MRPController.Plant  -- association [0..1]
LEFT OUTER JOIN I_MaterialMRPArea AS _MaterialMRPArea ON MRPPlant = _MaterialMRPArea.Plant AND Material = _MaterialMRPArea.Material AND MRPArea = _MaterialMRPArea.MRPArea  -- association [0..1]
-- UNION with additional select branch(es): I_MRPTransferDemand
;