C_MRPInternalRequirement

DDL: C_MRPINTERNALREQUIREMENT Type: view_entity CONSUMPTION

MRP Internal Requirement

C_MRPInternalRequirement is a Consumption CDS View that provides data about "MRP Internal Requirement" in SAP S/4HANA. It reads from 2 data sources (I_MaterialShortageDefinition, I_MRPProductionDemand) and exposes 76 fields with key fields MRPPlant, MRPArea, Material, MRPPlanningSegment, MRPPlanningSegmentType. It has 6 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_MaterialShortageDefinition _MaterialShortageDef inner
I_MRPProductionDemand I_MRPProductionDemand from

Associations (6)

CardinalityTargetAliasCondition
[0..1] P_MRPProductionDemandDelay _WorkingDaysCount $projection.MRPPlant = _WorkingDaysCount.MRPPlant and $projection.MRPArea = _WorkingDaysCount.MRPArea and $projection.Material = _WorkingDaysCount.Material and $projection.MRPPlanningSegment = _WorkingDaysCount.MRPPlanningSegment and $projection.MRPPlanningSegmentType = _WorkingDaysCount.MRPPlanningSegmentType and $projection.MaterialShortageProfile = _WorkingDaysCount.MaterialShortageProfile and $projection.MaterialShortageProfileCount = _WorkingDaysCount.MaterialShortageProfileCount and $projection.MRPElement = _WorkingDaysCount.MRPElement and $projection.MRPElementItem = _WorkingDaysCount.MRPElementItem and $projection.MRPElementScheduleLine = _WorkingDaysCount.MRPElementScheduleLine and $projection.MRPElementCategory = _WorkingDaysCount.MRPElementCategory and $projection.MRPElementAvailyOrRqmtDate = _WorkingDaysCount.MRPElementAvailyOrRqmtDate
[0..1] C_MRPExtRqmtMaterialOverview _MaterialOverview $projection.MRPPlant = _MaterialOverview.MRPPlant and $projection.MRPArea = _MaterialOverview.MRPArea and $projection.Material = _MaterialOverview.Material and $projection.MRPPlanningSegment = _MaterialOverview.MRPPlanningSegment and $projection.MRPPlanningSegmentType = _MaterialOverview.MRPPlanningSegmentType and $projection.MaterialShortageProfile = _MaterialOverview.MaterialShortageProfile and $projection.MaterialShortageProfileCount = _MaterialOverview.MaterialShortageProfileCount
[0..1] C_ProcurementProgressTextVH _ProcurementProgressText $projection.ProcurementProgress = _ProcurementProgressText.ProcurementProgress and _ProcurementProgressText.Language = $session.system_language
[0..1] I_StorageLocation _StorageLocation $projection.StorageLocation = _StorageLocation.StorageLocation and $projection.MRPPlant = _StorageLocation.Plant
[0..*] I_WorkCenterTextBySemanticKey _WorkCenterTextBySemanticKey $projection.ProductionLine = _WorkCenterTextBySemanticKey.WorkCenter and $projection.ProductionPlant = _WorkCenterTextBySemanticKey.Plant and _WorkCenterTextBySemanticKey.Language = $session.system_language
[0..1] I_OrderBasic _OrderBasic I_MRPProductionDemand.SourceMRPElement = _OrderBasic.OrderID

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label MRP Internal Requirement view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
Search.searchable true view
Metadata.allowExtensions true view

Fields (76)

KeyFieldSource TableSource FieldDescription
KEY MRPPlant I_MRPProductionDemand MRPPlant Plant
KEY MRPArea I_MRPProductionDemand MRPArea MRP Area
KEY Material I_MRPProductionDemand Material Vehicle Model
KEY MRPPlanningSegment I_MRPProductionDemand MRPPlanningSegment Plng Segmnt No.
KEY MRPPlanningSegmentType I_MRPProductionDemand MRPPlanningSegmentType MRP segment
KEY MaterialShortageProfile I_MRPProductionDemand MaterialShortageProfile Shortage Prf.
KEY MaterialShortageProfileCount I_MRPProductionDemand MaterialShortageProfileCount Counter
KEY MRPElement I_MRPProductionDemand MRPElement MRP element number
KEY MRPElementItem I_MRPProductionDemand MRPElementItem MRP elemnt item
KEY MRPElementScheduleLine I_MRPProductionDemand MRPElementScheduleLine Scheduling
KEY MRPElementCategory I_MRPProductionDemand MRPElementCategory MRP Elmnt Ind.
KEY MRPElementAvailyOrRqmtDate I_MRPProductionDemand MRPElementAvailyOrRqmtDate Time Stamp
MRPPlanningSegmentExternalCode I_MRPProductionDemand MRPPlanningSegmentExternalCode
MaterialExternalID I_MRPProductionDemand MaterialExternalID Material
MaterialShortageDefinitionName I_MaterialShortageDefinition MaterialShortageDefinitionName
MaterialShortageDefinition I_MRPProductionDemand MaterialShortageDefinition
MRPElementCategoryName
MRPElementCategoryShortName
SourceMRPElementCategoryName
SrcMRPElementCategoryShortName
ProductionResourceText
LatestPlannedAvailabilityDate I_MRPProductionDemand LatestPlannedAvailabilityDate
PlanningSegmentDocument I_MRPProductionDemand PlanningSegmentDocument
PlanningSegmentDocumentItem I_MRPProductionDemand PlanningSegmentDocumentItem
FactoryCalendar I_MRPProductionDemand FactoryCalendar Factory Calendar
MaterialName I_MRPProductionDemand MaterialName Material Description
UnitOfMeasureCommercialName
MRPController I_MRPProductionDemand MRPController MRP Controller
MaterialBaseUnit I_MRPProductionDemand MaterialBaseUnit Valuation Unit
TargetQuantityUnitDcmls I_MRPProductionDemand UnitOfMeasureNumberOfDecimals
TargetQuantityUnitDisplayDcmls I_MRPProductionDemand UnitOfMeasureDspNmbrOfDcmls
SourceMRPElementCategory I_MRPProductionDemand SourceMRPElementCategory MRP Elmnt Ind.
SourceMRPElement
OrderDescription _OrderBasic OrderDescription
SourceMRPElementItem I_MRPProductionDemand SourceMRPElementItem MRP elemnt item
MaximumDelayInDays I_MRPProductionDemand MaximumDelayInDays Max.DelayInDays
MaximumDelayInDaysText
MaximumDelayInWorkdays I_MRPProductionDemand MaximumDelayInWorkdays MaxDelayWorkday
MaximumDelayInWorkDaysText
StorageLocation I_MRPProductionDemand StorageLocation StorageLocation
StorageLocationName _StorageLocation StorageLocationName Storage Loc. Name
PlantName I_MRPProductionDemand PlantName Plant Name
OrderType I_MRPProductionDemand OrderType Order Type
OrderTypeName
MRPControllerName I_MRPProductionDemand MRPControllerName Controller name
MRPAreaText I_MRPProductionDemand MRPAreaText
char18endasSourceOrderName
MRPElementMissingQuantity
MRPElementOpenQuantity I_MRPProductionDemand MRPElementOpenQuantity Rec./reqd qty
MRPElementUncoveredQuantity I_MRPProductionDemand MRPElementUncoveredQuantity DEC 20 3
MRPElementDelayedQuantity I_MRPProductionDemand MRPElementDelayedQuantity DEC 20 3
OrderQuantity I_MRPProductionDemand OrderQuantity Quantity
MRPElementCoveredQuantity
dec203asMRPElementIssuedQuantity
UnitUoM
HasMaterialShortageReplnmtLead
HasShortageTotalReplnmtLead I_MRPProductionDemand HasShortageTotalReplnmtLead
HasShortageManualPlanHorizon I_MRPProductionDemand HasShortageManualPlanHorizon
HasShortageMRPSafetyDuration I_MRPProductionDemand HasShortageMRPSafetyDuration
ProducedMaterial
ProducedMaterialName
ProductionSupervisor I_MRPProductionDemand ProductionSupervisor Prodn Supervisor
ProductionSupervisorName I_MRPProductionDemand ProductionSupervisorName
ProductionVersion I_MRPProductionDemand ProductionVersion Version ID
ProductionVersionText I_MRPProductionDemand ProductionVersionText
ProductionLine I_MRPProductionDemand ProductionLine Production Line
WorkCenterText _WorkCenterTextBySemanticKey WorkCenterText Work Center Text
ProductionPlant I_MRPProductionDemand ProductionPlant Prod plnt
ProcurementProgress I_MRPProductionDemand ProcurementProgress
ProcurementProgressDesc _ProcurementProgressText ProcurementProgressDesc
MRPCoverageStatusCode
MRPCoverageStatusName
UICT_BufferUpdateIndicator
TimeTillShortageFilterId
TimeTillShortageFilterText
_MaterialOverview _MaterialOverview

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_MRPInternalRequirement.
-- 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 C_MRPInternalRequirement AS
SELECT
  I_MRPProductionDemand.MRPPlant AS MRPPlant,
  I_MRPProductionDemand.MRPArea AS MRPArea,
  I_MRPProductionDemand.Material AS Material,
  I_MRPProductionDemand.MRPPlanningSegment AS MRPPlanningSegment,
  I_MRPProductionDemand.MRPPlanningSegmentType AS MRPPlanningSegmentType,
  I_MRPProductionDemand.MaterialShortageProfile AS MaterialShortageProfile,
  I_MRPProductionDemand.MaterialShortageProfileCount AS MaterialShortageProfileCount,
  I_MRPProductionDemand.MRPElement AS MRPElement,
  I_MRPProductionDemand.MRPElementItem AS MRPElementItem,
  I_MRPProductionDemand.MRPElementScheduleLine AS MRPElementScheduleLine,
  I_MRPProductionDemand.MRPElementCategory AS MRPElementCategory,
  I_MRPProductionDemand.MRPElementAvailyOrRqmtDate AS MRPElementAvailyOrRqmtDate,
  I_MRPProductionDemand.MRPPlanningSegmentExternalCode AS MRPPlanningSegmentExternalCode,
  I_MRPProductionDemand.MaterialExternalID AS MaterialExternalID,
  _MaterialShortageDef.MaterialShortageDefinitionName AS MaterialShortageDefinitionName,
  I_MRPProductionDemand.MaterialShortageDefinition AS MaterialShortageDefinition,
  I_MRPProductionDemand._MRPElementCategoryText.MRPElementCategoryName AS MRPElementCategoryName,
  I_MRPProductionDemand._MRPElementCategoryText.MRPElementCategoryShortName AS MRPElementCategoryShortName,
  I_MRPProductionDemand._SrcMRPElementCategoryText.MRPElementCategoryName AS SourceMRPElementCategoryName,
  I_MRPProductionDemand._SrcMRPElementCategoryText.MRPElementCategoryShortName AS SrcMRPElementCategoryShortName,
  I_MRPProductionDemand._ProductionLineText.ProductionResourceText AS ProductionResourceText,
  I_MRPProductionDemand.LatestPlannedAvailabilityDate AS LatestPlannedAvailabilityDate,
  I_MRPProductionDemand.PlanningSegmentDocument AS PlanningSegmentDocument,
  I_MRPProductionDemand.PlanningSegmentDocumentItem AS PlanningSegmentDocumentItem,
  I_MRPProductionDemand.FactoryCalendar AS FactoryCalendar,
  I_MRPProductionDemand.MaterialName AS MaterialName,
  I_MRPProductionDemand._UnitOfMeasureText.UnitOfMeasureCommercialName AS UnitOfMeasureCommercialName,
  I_MRPProductionDemand.MRPController AS MRPController,
  I_MRPProductionDemand.MaterialBaseUnit AS MaterialBaseUnit,
  I_MRPProductionDemand.UnitOfMeasureNumberOfDecimals AS TargetQuantityUnitDcmls,
  I_MRPProductionDemand.UnitOfMeasureDspNmbrOfDcmls AS TargetQuantityUnitDisplayDcmls,
  I_MRPProductionDemand.SourceMRPElementCategory AS SourceMRPElementCategory,
  ltrim ( I_MRPProductionDemand.SourceMRPElement, '0' ) AS SourceMRPElement,
  _OrderBasic.OrderDescription AS OrderDescription,
  I_MRPProductionDemand.SourceMRPElementItem AS SourceMRPElementItem,
  I_MRPProductionDemand.MaximumDelayInDays AS MaximumDelayInDays,
  cast( '' as abap.char( 30 )) AS MaximumDelayInDaysText,
  I_MRPProductionDemand.MaximumDelayInWorkdays AS MaximumDelayInWorkdays,
  cast( '' as abap.char( 30 )) AS MaximumDelayInWorkDaysText,
  I_MRPProductionDemand.StorageLocation AS StorageLocation,
  _StorageLocation.StorageLocationName AS StorageLocationName,
  I_MRPProductionDemand.PlantName AS PlantName,
  I_MRPProductionDemand.OrderType AS OrderType,
  I_MRPProductionDemand._OrderTypeText.OrderTypeName AS OrderTypeName,
  I_MRPProductionDemand.MRPControllerName AS MRPControllerName,
  I_MRPProductionDemand.MRPAreaText AS MRPAreaText,
  case when I_MRPProductionDemand.SourceMRPElementItem is initial then cast ( ltrim ( I_MRPProductionDemand.SourceMRPElement, '0' ) as abap.char( 18 ) ) else cast ( concat( ltrim ( I_MRPProductionDemand.SourceMRPElement, '0' ), concat( '-', ltrim ( I_MRPProductionDemand.SourceMRPElementItem, '0' ) ) ) as abap.char( 18 ) ) end as SourceOrderName AS char18endasSourceOrderName,
  I_MRPProductionDemand.MRPElementOpenQuantity AS MRPElementOpenQuantity,
  I_MRPProductionDemand.MRPElementUncoveredQuantity AS MRPElementUncoveredQuantity,
  I_MRPProductionDemand.MRPElementDelayedQuantity AS MRPElementDelayedQuantity,
  I_MRPProductionDemand.OrderQuantity AS OrderQuantity,
  I_MRPProductionDemand.MRPElementOpenQuantity - I_MRPProductionDemand.MRPElementUncoveredQuantity - I_MRPProductionDemand.MRPElementDelayedQuantity AS MRPElementCoveredQuantity,
  cast ( case when I_MRPProductionDemand.OrderQuantity - I_MRPProductionDemand.MRPElementOpenQuantity > 0 then I_MRPProductionDemand.OrderQuantity - I_MRPProductionDemand.MRPElementOpenQuantity else 0 end as abap.dec( 20, 3 ) ) as MRPElementIssuedQuantity AS dec203asMRPElementIssuedQuantity,
  cast( '%' as abap.unit( 3 ) ) AS UnitUoM,
  I_MRPProductionDemand.HasShortageTotalReplnmtLead AS HasShortageTotalReplnmtLead,
  I_MRPProductionDemand.HasShortageManualPlanHorizon AS HasShortageManualPlanHorizon,
  I_MRPProductionDemand.HasShortageMRPSafetyDuration AS HasShortageMRPSafetyDuration,
  I_MRPProductionDemand._ProducedMaterialText.MaterialName AS ProducedMaterialName,
  I_MRPProductionDemand.ProductionSupervisor AS ProductionSupervisor,
  I_MRPProductionDemand.ProductionSupervisorName AS ProductionSupervisorName,
  I_MRPProductionDemand.ProductionVersion AS ProductionVersion,
  I_MRPProductionDemand.ProductionVersionText AS ProductionVersionText,
  I_MRPProductionDemand.ProductionLine AS ProductionLine,
  _WorkCenterTextBySemanticKey.WorkCenterText AS WorkCenterText,
  I_MRPProductionDemand.ProductionPlant AS ProductionPlant,
  I_MRPProductionDemand.ProcurementProgress AS ProcurementProgress,
  _ProcurementProgressText.ProcurementProgressDesc AS ProcurementProgressDesc,
  cast( 0 as int2 ) AS MRPCoverageStatusCode,
  cast( '' as char25 ) AS MRPCoverageStatusName,
  cast( 'X' as abap_boolean preserving type ) AS UICT_BufferUpdateIndicator,
  cast( 0 as abap.int2 ) AS TimeTillShortageFilterId,
  cast( '' as abap.char( 50 ) ) AS TimeTillShortageFilterText
FROM I_MRPProductionDemand
INNER JOIN I_MaterialShortageDefinition AS _MaterialShortageDef ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_MRPProductionDemandDelay AS _WorkingDaysCount ON MRPPlant = _WorkingDaysCount.MRPPlant AND MRPArea = _WorkingDaysCount.MRPArea AND Material = _WorkingDaysCount.Material AND MRPPlanningSegment = _WorkingDaysCount.MRPPlanningSegment AND MRPPlanningSegmentType = _WorkingDaysCount.MRPPlanningSegmentType AND MaterialShortageProfile = _WorkingDaysCount.MaterialShortageProfile AND MaterialShortageProfileCount = _WorkingDaysCount.MaterialShortageProfileCount AND MRPElement = _WorkingDaysCount.MRPElement AND MRPElementItem = _WorkingDaysCount.MRPElementItem AND MRPElementScheduleLine = _WorkingDaysCount.MRPElementScheduleLine AND MRPElementCategory = _WorkingDaysCount.MRPElementCategory AND MRPElementAvailyOrRqmtDate = _WorkingDaysCount.MRPElementAvailyOrRqmtDate  -- association [0..1]
LEFT OUTER JOIN C_MRPExtRqmtMaterialOverview AS _MaterialOverview ON MRPPlant = _MaterialOverview.MRPPlant AND MRPArea = _MaterialOverview.MRPArea AND Material = _MaterialOverview.Material AND MRPPlanningSegment = _MaterialOverview.MRPPlanningSegment AND MRPPlanningSegmentType = _MaterialOverview.MRPPlanningSegmentType AND MaterialShortageProfile = _MaterialOverview.MaterialShortageProfile AND MaterialShortageProfileCount = _MaterialOverview.MaterialShortageProfileCount  -- association [0..1]
LEFT OUTER JOIN C_ProcurementProgressTextVH AS _ProcurementProgressText ON ProcurementProgress = _ProcurementProgressText.ProcurementProgress AND _ProcurementProgressText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON StorageLocation = _StorageLocation.StorageLocation AND MRPPlant = _StorageLocation.Plant  -- association [0..1]
LEFT OUTER JOIN I_WorkCenterTextBySemanticKey AS _WorkCenterTextBySemanticKey ON ProductionLine = _WorkCenterTextBySemanticKey.WorkCenter AND ProductionPlant = _WorkCenterTextBySemanticKey.Plant AND _WorkCenterTextBySemanticKey.Language = $session.system_language  -- association [0..*]
LEFT OUTER JOIN I_OrderBasic AS _OrderBasic ON I_MRPProductionDemand.SourceMRPElement = _OrderBasic.OrderID  -- association [0..1]
;