C_MultiLevelOrderReport
Multi Level Order Report
C_MultiLevelOrderReport is a Consumption CDS View that provides data about "Multi Level Order Report" in SAP S/4HANA. It reads from 1 data source (I_MatlSupDmndAggrgdPegging) and exposes 43 fields with key fields PeggingRoot, AggregatedPeggingNode. It has 9 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MatlSupDmndAggrgdPegging | I_MatlSupDmndAggrgdPegging | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_MRPElementCategory | delkz | |
| P_MRPElement | pph_del12 |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | C_MultiLevelOrderReport | _Parent | _Line.PeggingRoot = _Parent.PeggingRoot and _Line.AggregatedPeggingParentNode = _Parent.AggregatedPeggingNode |
| [0..1] | I_MRPElementCategoryText | _DemMRPElementCategoryText | _DemMRPElementCategoryText.MRPElementCategory = $projection.DemandMRPElementCategory and _DemMRPElementCategoryText.Language = $session.system_language |
| [0..1] | I_MRPElementCategoryText | _SupMRPElementCategoryText | _SupMRPElementCategoryText.MRPElementCategory = $projection.SupplyMRPElementCategory and _SupMRPElementCategoryText.Language = $session.system_language |
| [0..*] | I_MaterialText | _MaterialText | _MaterialText.Material = $projection.Product |
| [0..1] | C_MRPController | _MRPController | _MRPController.Plant = $projection.MRPPlant and _MRPController.MRPController = $projection.MRPController |
| [0..1] | I_UnitOfMeasure | _UnitOfMeasure | _UnitOfMeasure.UnitOfMeasure = $projection.MaterialBaseUnit |
| [0..1] | I_Plant | _Plant | _Plant.Plant = $projection.MRPPlant |
| [0..1] | I_MRPArea | _MRPArea | _MRPArea.MRPArea = $projection.MRPArea |
| [0..1] | I_MatlSupDmndAggrgdPegging | _Root | _Root.PeggingRoot = $projection.PeggingRoot and _Root.AggregatedPeggingParentNode = 0 and _Root.PeggingRootItem = _Line.PeggingRootItem |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Multi Level Order Report | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Search.searchable | true | view | |
| Metadata.allowExtensions | true | view |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PeggingRoot | PeggingRoot | ||
| KEY | AggregatedPeggingNode | AggregatedPeggingNode | ||
| AggregatedPeggingParentNode | AggregatedPeggingParentNode | |||
| DemandMRPElementCategory | DemandMRPElementCategory | |||
| DemandMRPElement | DemandMRPElement | |||
| DemandMRPElementItem | DemandMRPElementItem | |||
| DemandMRPElementScheduleLine | DemandMRPElementScheduleLine | |||
| SupplyMRPElementCategory | SupplyMRPElementCategory | |||
| SupplyMRPElement | SupplyMRPElement | |||
| SupplyMRPElementItem | SupplyMRPElementItem | |||
| SupplyMRPElementScheduleLine | SupplyMRPElementScheduleLine | |||
| MRPElementAvailyOrRqmtDate | MRPElementAvailyOrRqmtDate | Time Stamp | ||
| DemandMRPElementDate | DemandMRPElementDate | |||
| Product | Product | Product Sold | ||
| Material | Product | Product Sold | ||
| MaterialName | ||||
| MRPPlant | MRPPlant | Plant | ||
| PlantName | _Plant | PlantName | Plant Name | |
| MRPArea | MRPArea | MRP Area | ||
| MRPAreaText | _MRPArea | MRPAreaText | ||
| MRPPlanningSegmentType | MRPPlanningSegmentType | MRP segment | ||
| MRPPlanningSegment | MRPPlanningSegment | Plng Segmnt No. | ||
| MRPController | MRPController | MRP Controller | ||
| MRPControllerName | _MRPController | MRPControllerName | Controller name | |
| MaterialBaseUnit | MaterialBaseUnit | Valuation Unit | ||
| DynamicPeggingQuantity | DynamicPeggingQuantity | |||
| RequiredQuantity | RequiredQuantity | Requirement qty | ||
| CriticalPeggingQuantity | CriticalPeggingQuantity | |||
| MRPElementMissingQuantity | MRPElementMissingQuantity | |||
| MRPElementDelayedQuantity | MRPElementDelayedQuantity | DEC 20 3 | ||
| DmndMRPElmntAdjustedRqmtDate | DmndMRPElmntAdjustedRqmtDate | |||
| MaximumDelayInDays | MaximumDelayInDays | Max.DelayInDays | ||
| TotalDelayInDays | TotalDelayInDays | |||
| PeggingRootItem | PeggingRootItem | |||
| NumberOfPeggingWarnings | NumberOfPeggingWarnings | INT4 | ||
| NumberOfPeggingErrors | NumberOfPeggingErrors | INT4 | ||
| UnitOfMeasureDspNmbrOfDcmls | _UnitOfMeasure | UnitOfMeasureDspNmbrOfDcmls | ||
| UnitOfMeasureNumberOfDecimals | _UnitOfMeasure | UnitOfMeasureNumberOfDecimals | ||
| UnitOfMeasureCommercialName | _UnitOfMeasure | UnitOfMeasure_E | ||
| UICT_BufferUpdate | ||||
| UICT_RootNodeMRPPlant | ||||
| SupplyMRPElementasSourceMRPElement | ||||
| _Parent | _Parent |
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_MultiLevelOrderReport.
-- 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.
-- Parameters: P_MRPElementCategory : delkz, P_MRPElement : pph_del12
CREATE VIEW C_MultiLevelOrderReport AS
SELECT
PeggingRoot,
AggregatedPeggingNode,
AggregatedPeggingParentNode,
DemandMRPElementCategory,
DemandMRPElement,
DemandMRPElementItem,
DemandMRPElementScheduleLine,
SupplyMRPElementCategory,
SupplyMRPElement,
SupplyMRPElementItem,
SupplyMRPElementScheduleLine,
MRPElementAvailyOrRqmtDate,
DemandMRPElementDate,
Product,
Product AS Material,
_MaterialText[ 1: Language = $session.system_language ].MaterialName AS MaterialName,
MRPPlant,
_Plant.PlantName AS PlantName,
MRPArea,
_MRPArea.MRPAreaText AS MRPAreaText,
MRPPlanningSegmentType,
MRPPlanningSegment,
MRPController,
_MRPController.MRPControllerName AS MRPControllerName,
MaterialBaseUnit,
DynamicPeggingQuantity,
RequiredQuantity,
CriticalPeggingQuantity,
MRPElementMissingQuantity,
MRPElementDelayedQuantity,
DmndMRPElmntAdjustedRqmtDate,
MaximumDelayInDays,
TotalDelayInDays,
PeggingRootItem,
NumberOfPeggingWarnings,
NumberOfPeggingErrors,
_UnitOfMeasure.UnitOfMeasureDspNmbrOfDcmls AS UnitOfMeasureDspNmbrOfDcmls,
_UnitOfMeasure.UnitOfMeasureNumberOfDecimals AS UnitOfMeasureNumberOfDecimals,
_UnitOfMeasure.UnitOfMeasure_E AS UnitOfMeasureCommercialName,
cast( '' as char15 ) AS UICT_BufferUpdate,
_Root(P_MRPElement:$parameters.P_MRPElement, P_MRPElementCategory:$parameters.P_MRPElementCategory).MRPPlant AS UICT_RootNodeMRPPlant,
_ParentDetail(P_MRPElement:$parameters.P_MRPElement, P_MRPElementCategory:$parameters.P_MRPElementCategory).SupplyMRPElement as SourceMRPElement AS SupplyMRPElementasSourceMRPElement
FROM I_MatlSupDmndAggrgdPegging
LEFT OUTER JOIN C_MultiLevelOrderReport AS _Parent ON _Line.PeggingRoot = _Parent.PeggingRoot AND _Line.AggregatedPeggingParentNode = _Parent.AggregatedPeggingNode -- association [0..1]
LEFT OUTER JOIN I_MRPElementCategoryText AS _DemMRPElementCategoryText ON _DemMRPElementCategoryText.MRPElementCategory = DemandMRPElementCategory AND _DemMRPElementCategoryText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_MRPElementCategoryText AS _SupMRPElementCategoryText ON _SupMRPElementCategoryText.MRPElementCategory = SupplyMRPElementCategory AND _SupMRPElementCategoryText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON _MaterialText.Material = Product -- association [0..*]
LEFT OUTER JOIN C_MRPController AS _MRPController ON _MRPController.Plant = MRPPlant AND _MRPController.MRPController = MRPController -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON _UnitOfMeasure.UnitOfMeasure = MaterialBaseUnit -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON _Plant.Plant = MRPPlant -- association [0..1]
LEFT OUTER JOIN I_MRPArea AS _MRPArea ON _MRPArea.MRPArea = MRPArea -- association [0..1]
LEFT OUTER JOIN I_MatlSupDmndAggrgdPegging AS _Root ON _Root.PeggingRoot = PeggingRoot AND _Root.AggregatedPeggingParentNode = 0 AND _Root.PeggingRootItem = _Line.PeggingRootItem -- 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