C_SupplyDemandViewMaterialList
Material List on Supply and Demand Items
C_SupplyDemandViewMaterialList is a Consumption CDS View that provides data about "Material List on Supply and Demand Items" in SAP S/4HANA. It has 13 associations to related views.
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_SupplyDemandItem | _SupplyDemandItem | $projection.MRPPlant = _SupplyDemandItem.MRPPlant and $projection.Material = _SupplyDemandItem.Material and $projection.MRPArea = _SupplyDemandItem.MRPArea |
| [0..*] | C_MRPAvailability | _MRPAvailability | $projection.MRPPlant = _MRPAvailability.MRPPlant and $projection.Material = _MRPAvailability.Material and $projection.MRPArea = _MRPAvailability.MRPArea and $projection.MRPPlanningSegmentType = _MRPAvailability.MRPPlanningSegmentType and $projection.MRPPlanningSegment = _MRPAvailability.MRPPlanningSegment and $projection.MaterialShortageProfile = _MRPAvailability.MaterialShortageProfile and $projection.MaterialShortageProfileCount = _MRPAvailability.MaterialShortageProfileCount |
| [0..1] | I_MRPController | _MRPController | $projection.MRPPlant = _MRPController.Plant and $projection.MRPController = _MRPController.MRPController |
| [1..1] | C_PlantVH | _PlantVH | $projection.MRPPlant = _PlantVH.Plant |
| [0..1] | I_MRPAreaVH | _MRPAreaVH | $projection.MRPArea = _MRPAreaVH.MRPArea |
| [0..*] | C_MRPMaterialNoteInfo | _Note | $projection.Material = _Note.Material and $projection.MRPPlant = _Note.MRPPlant |
| [0..1] | C_PurchasingGroupValueHelp | _PurchasingGroupVH | $projection.PurchasingGroup = _PurchasingGroupVH.PurchasingGroup |
| [0..*] | I_MatlProcurementCategoryText | _MatlProcurementCategoryText | $projection.MaterialProcurementCategory = _MatlProcurementCategoryText.MaterialProcurementCategory |
| [0..*] | I_MRPTypeText | _MRPTypeText | $projection.MRPType = _MRPTypeText.MRPType |
| [1..1] | I_MatlProcurementProfile | _MatlProcurementProfile | $projection.MaterialProcurementProfile = _MatlProcurementProfile.MaterialProcurementProfile and $projection.MRPPlant = _MatlProcurementProfile.Plant |
| [0..1] | I_MatlProcurementProfileText | _ProcurementProfileTextPlant | $projection.MaterialProcurementProfile = _ProcurementProfileTextPlant.MaterialProcurementProfile and $projection.MRPPlant = _ProcurementProfileTextPlant.Plant and $projection.PlantLanguage = _ProcurementProfileTextPlant.Language |
| [0..1] | I_MRPAreaPlanningFileEntry | _LastMRPRun | $projection.Material = _LastMRPRun.Material and $projection.MRPPlant = _LastMRPRun.Plant and $projection.MRPArea = _LastMRPRun.MRPArea and _LastMRPRun.MRPPlanningScenario = '000' |
| [0..1] | I_MRPAcknowledgeResultVH | _MRPAcknowledgeResultVH | $projection.MRPResultIsProcessed = _MRPAcknowledgeResultVH.MRPResultIsProcessed and _MRPAcknowledgeResultVH.Language = $session.system_language |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Material List on Supply and Demand Items | view | |
| Search.searchable | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.allowExtensions | true | view |
Fields (71)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MRPPlant | Material | MRPPlant | Plant |
| KEY | MRPArea | Material | MRPArea | MRP Area |
| KEY | Material | Material | Material | Vehicle Model |
| KEY | MRPPlanningSegmentType | |||
| KEY | MRPPlanningSegment | Material | MRPPlanningSegment | Plng Segmnt No. |
| KEY | MaterialShortageProfile | Material | MaterialShortageProfile | Shortage Prf. |
| KEY | MaterialShortageProfileCount | Material | MaterialShortageProfileCount | Counter |
| KEY | FactoryCalendar | Material | FactoryCalendar | Factory Calendar |
| MaterialSelectionIdentifier | ||||
| PlantName | _PlantVH | PlantName | Plant Name | |
| MRPAreaText | _MRPAreaVH | MRPAreaText | ||
| MaterialName | Material | MaterialName | Material Description | |
| PlantLanguage | Material | PlantLanguage | ||
| Supplier | ||||
| SupplierName | ||||
| NumberOfSupplier | Material | NumberOfSupplier | ||
| MRPValidMaterialStatus | Material | MRPValidMaterialStatus | ||
| MRPPlanningSegmentExternalCode | ||||
| UnitOfMeasureDspNmbrOfDcmls | Material | UnitOfMeasureDspNmbrOfDcmls | ||
| UnitOfMeasureNumberOfDecimals | Material | UnitOfMeasureNumberOfDecimals | ||
| AvailabilityChart | ||||
| PurchasingGroup | ||||
| PurchasingGroupName | _PurchasingGroupVH | PurchasingGroupName | Purchasing Grp. Name | |
| MaterialTypeName | Material | MaterialTypeName | Mat.Type Desc. | |
| MaterialGroupName | Material | MaterialGroupName | prod Grp Desc. | |
| MaterialShortageDefinition | ||||
| MaterialShortageDefinitionName | Material | MaterialShortageDefinitionName | ||
| MRPController | Material | MRPController | MRP Controller | |
| MRPControllerName | _MRPController | MRPControllerName | Controller name | |
| TimeTillShortageDurationText | ||||
| MaterialReplnmtLeadDurnEndDate | ||||
| TotalReplnmtLeadDurnEndDate | Material | TotalReplnmtLeadDurnEndDate | Date | |
| ManualPlanningHorizonEndDate | Material | ManualPlanningHorizonEndDate | Date | |
| MRPSafetyDurationEndDate | Material | MRPSafetyDurationEndDate | Date | |
| MaterialShortageStartDate | Material | MaterialShortageStartDate | Time Stamp | |
| MaterialShortageEndDate | Material | MaterialShortageEndDate | Time Stamp | |
| MaterialPlannedDeliveryDurn | ||||
| MaterialPlannedProductionDurn | Material | MaterialPlannedProductionDurn | InhseProdTime | |
| MRPSafetyDuration | Material | MRPSafetyDuration | Safety Time | |
| TotalReplenishmentLeadDuration | Material | TotalReplenishmentLeadDuration | Total RL time | |
| MaterialGoodsReceiptDuration | Material | MaterialGoodsReceiptDuration | GR proc. time | |
| PlanningTimeFenceInDays | Material | PlanningTimeFenceInDays | Plng time fence | |
| EvaluationHorizonInDays | Material | EvaluationHorizonInDays | ||
| DaysOfSupplyDuration | Material | DaysOfSupplyDuration | Days' Supply (Working Days) | |
| IntraDaySupplyDuration | Material | IntraDaySupplyDuration | ||
| MaterialBaseUnit | ||||
| MaterialSafetyStockQty | Material | MaterialSafetyStockQty | Safety Stock | |
| MRPAvailableStockQty | Material | MRPAvailableStockQty | ||
| MaterialShortageQuantity | ||||
| HasMaterialShortageReplnmtLead | ||||
| HasShortageTotalReplnmtLead | Material | HasShortageTotalReplnmtLead | ||
| HasShortageManualPlanHorizon | Material | HasShortageManualPlanHorizon | ||
| HasShortageMRPSafetyDuration | Material | HasShortageMRPSafetyDuration | ||
| char1asMaterialShortageStatus | ||||
| MRPType | ||||
| MRPTypeendasMRPTypeName | ||||
| MaterialProcurementProfile | Material | MaterialProcurementProfile | Special Procur. | |
| MaterialProcurementCategory | Material | MaterialProcurementCategory | Procurement | |
| MRPGroup | Material | MRPGroup | MRP Group | |
| MaterialABCClassification | Material | MaterialABCClassification | ABC Indicator | |
| MRPResultIsProcessed | Material | MRPResultIsProcessed | ||
| MRPResultProcessingText | _MRPAcknowledgeResultVH | MRPResultProcessingText | ||
| MRPResultProcessedDateTime | Material | MRPResultProcessedDateTime | ||
| MaterialLastMRPDateTime | _LastMRPRun | MaterialLastMRPDateTime | ||
| Associations_SupplyDemandItem | ||||
| _MRPAvailability | _MRPAvailability | |||
| _MRPController | _MRPController | |||
| _UnitOfMeasure | Material | _UnitOfMeasure | ||
| _Note | _Note | |||
| _MatlProcurementCategoryText | _MatlProcurementCategoryText | |||
| _MRPTypeText | _MRPTypeText |
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_SupplyDemandViewMaterialList.
-- 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_SupplyDemandViewMaterialList AS
SELECT
Material.MRPPlant AS MRPPlant,
Material.MRPArea AS MRPArea,
Material.Material AS Material,
cast(Material.MRPPlanningSegmentType as plaab) AS MRPPlanningSegmentType,
Material.MRPPlanningSegment AS MRPPlanningSegment,
Material.MaterialShortageProfile AS MaterialShortageProfile,
Material.MaterialShortageProfileCount AS MaterialShortageProfileCount,
Material.FactoryCalendar AS FactoryCalendar,
concat(Material,concat(MRPPlant,concat(MRPArea,concat(MRPPlanningSegmentType,MRPPlanningSegmentExternalCode)))) AS MaterialSelectionIdentifier,
_PlantVH.PlantName AS PlantName,
_MRPAreaVH.MRPAreaText AS MRPAreaText,
Material.MaterialName AS MaterialName,
Material.PlantLanguage AS PlantLanguage,
cast( '' as md_supplier) AS Supplier,
cast ('' as suppliername_2) AS SupplierName,
Material.NumberOfSupplier AS NumberOfSupplier,
Material.MRPValidMaterialStatus AS MRPValidMaterialStatus,
Material.UnitOfMeasureDspNmbrOfDcmls AS UnitOfMeasureDspNmbrOfDcmls,
Material.UnitOfMeasureNumberOfDecimals AS UnitOfMeasureNumberOfDecimals,
_PurchasingGroupVH.PurchasingGroupName AS PurchasingGroupName,
Material.MaterialTypeName AS MaterialTypeName,
Material.MaterialGroupName AS MaterialGroupName,
concat(Material.MaterialShortageProfile, Material.MaterialShortageProfileCount) AS MaterialShortageDefinition,
Material.MaterialShortageDefinitionName AS MaterialShortageDefinitionName,
Material.MRPController AS MRPController,
_MRPController.MRPControllerName AS MRPControllerName,
cast ('' as char20 ) AS TimeTillShortageDurationText,
Material.TotalReplnmtLeadDurnEndDate AS TotalReplnmtLeadDurnEndDate,
Material.ManualPlanningHorizonEndDate AS ManualPlanningHorizonEndDate,
Material.MRPSafetyDurationEndDate AS MRPSafetyDurationEndDate,
Material.MaterialShortageStartDate AS MaterialShortageStartDate,
Material.MaterialShortageEndDate AS MaterialShortageEndDate,
Material.MaterialPlannedProductionDurn AS MaterialPlannedProductionDurn,
Material.MRPSafetyDuration AS MRPSafetyDuration,
Material.TotalReplenishmentLeadDuration AS TotalReplenishmentLeadDuration,
Material.MaterialGoodsReceiptDuration AS MaterialGoodsReceiptDuration,
Material.PlanningTimeFenceInDays AS PlanningTimeFenceInDays,
Material.EvaluationHorizonInDays AS EvaluationHorizonInDays,
Material.DaysOfSupplyDuration AS DaysOfSupplyDuration,
Material.IntraDaySupplyDuration AS IntraDaySupplyDuration,
Material.MaterialSafetyStockQty AS MaterialSafetyStockQty,
Material.MRPAvailableStockQty AS MRPAvailableStockQty,
cast (Material.MaterialShortageQuantity as materialshortageqty) AS MaterialShortageQuantity,
Material.HasShortageTotalReplnmtLead AS HasShortageTotalReplnmtLead,
Material.HasShortageManualPlanHorizon AS HasShortageManualPlanHorizon,
Material.HasShortageMRPSafetyDuration AS HasShortageMRPSafetyDuration,
case when _MRPTypeText[ 1: Language = $session.system_language ].MRPTypeName is not null and _MRPTypeText[ 1: Language = $session.system_language ].MRPTypeName != '' then _MRPTypeText[ 1: Language = $session.system_language ].MRPTypeName when _MRPTypeText[ 1: Language = 'E' ].MRPTypeName is not null and _MRPTypeText[ 1: Language = 'E' ].MRPTypeName != '' then _MRPTypeText[ 1: Language = 'E' ].MRPTypeName else Material.MRPType end as MRPTypeName AS MRPTypeendasMRPTypeName,
Material.MaterialProcurementProfile AS MaterialProcurementProfile,
Material.MaterialProcurementCategory AS MaterialProcurementCategory,
Material.MRPGroup AS MRPGroup,
Material.MaterialABCClassification AS MaterialABCClassification,
Material.MRPResultIsProcessed AS MRPResultIsProcessed,
_MRPAcknowledgeResultVH.MRPResultProcessingText AS MRPResultProcessingText,
Material.MRPResultProcessedDateTime AS MRPResultProcessedDateTime,
_LastMRPRun.MaterialLastMRPDateTime AS MaterialLastMRPDateTime,
Material._UnitOfMeasure AS _UnitOfMeasure
LEFT OUTER JOIN C_SupplyDemandItem AS _SupplyDemandItem ON MRPPlant = _SupplyDemandItem.MRPPlant AND Material = _SupplyDemandItem.Material AND MRPArea = _SupplyDemandItem.MRPArea -- association [0..*]
LEFT OUTER JOIN C_MRPAvailability AS _MRPAvailability ON MRPPlant = _MRPAvailability.MRPPlant AND Material = _MRPAvailability.Material AND MRPArea = _MRPAvailability.MRPArea AND MRPPlanningSegmentType = _MRPAvailability.MRPPlanningSegmentType AND MRPPlanningSegment = _MRPAvailability.MRPPlanningSegment AND MaterialShortageProfile = _MRPAvailability.MaterialShortageProfile AND MaterialShortageProfileCount = _MRPAvailability.MaterialShortageProfileCount -- association [0..*]
LEFT OUTER JOIN I_MRPController AS _MRPController ON MRPPlant = _MRPController.Plant AND MRPController = _MRPController.MRPController -- association [0..1]
LEFT OUTER JOIN C_PlantVH AS _PlantVH ON MRPPlant = _PlantVH.Plant -- association [1..1]
LEFT OUTER JOIN I_MRPAreaVH AS _MRPAreaVH ON MRPArea = _MRPAreaVH.MRPArea -- association [0..1]
LEFT OUTER JOIN C_MRPMaterialNoteInfo AS _Note ON Material = _Note.Material AND MRPPlant = _Note.MRPPlant -- association [0..*]
LEFT OUTER JOIN C_PurchasingGroupValueHelp AS _PurchasingGroupVH ON PurchasingGroup = _PurchasingGroupVH.PurchasingGroup -- association [0..1]
LEFT OUTER JOIN I_MatlProcurementCategoryText AS _MatlProcurementCategoryText ON MaterialProcurementCategory = _MatlProcurementCategoryText.MaterialProcurementCategory -- association [0..*]
LEFT OUTER JOIN I_MRPTypeText AS _MRPTypeText ON MRPType = _MRPTypeText.MRPType -- association [0..*]
LEFT OUTER JOIN I_MatlProcurementProfile AS _MatlProcurementProfile ON MaterialProcurementProfile = _MatlProcurementProfile.MaterialProcurementProfile AND MRPPlant = _MatlProcurementProfile.Plant -- association [1..1]
LEFT OUTER JOIN I_MatlProcurementProfileText AS _ProcurementProfileTextPlant ON MaterialProcurementProfile = _ProcurementProfileTextPlant.MaterialProcurementProfile AND MRPPlant = _ProcurementProfileTextPlant.Plant AND PlantLanguage = _ProcurementProfileTextPlant.Language -- association [0..1]
LEFT OUTER JOIN I_MRPAreaPlanningFileEntry AS _LastMRPRun ON Material = _LastMRPRun.Material AND MRPPlant = _LastMRPRun.Plant AND MRPArea = _LastMRPRun.MRPArea AND _LastMRPRun.MRPPlanningScenario = '000' -- association [0..1]
LEFT OUTER JOIN I_MRPAcknowledgeResultVH AS _MRPAcknowledgeResultVH ON MRPResultIsProcessed = _MRPAcknowledgeResultVH.MRPResultIsProcessed AND _MRPAcknowledgeResultVH.Language = $session.system_language -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA