I_MaterialSupplyDemandPegging
Hierarchy of table function
I_MaterialSupplyDemandPegging is a Composite CDS View that provides data about "Hierarchy of table function" in SAP S/4HANA. It reads from 1 data source (I_MatlSupplyDemandPeggingBasic) and exposes 36 fields with key fields PeggingRoot, PeggingNode. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MatlSupplyDemandPeggingBasic | Line | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_MRPElementCategory | delkz | |
| P_MRPElement | pph_del12 |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_MaterialSupplyDemandPegging | _Parent | Line.PeggingRoot = _Parent.PeggingRoot and Line.PeggingParentNode = _Parent.PeggingNode |
| [1..1] | I_MaterialPlant | _MaterialPlant | _MaterialPlant.Material = $projection.Product and _MaterialPlant.Plant = $projection.MRPPlant |
| [0..*] | I_MatlSupDmndPeggingMessage | _Message | _Message.PeggingRoot = $projection.PeggingRoot and _Message.PeggingNode = $projection.PeggingNode |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Hierarchy of table function | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (36)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PeggingRoot | PeggingRoot | Top component | |
| KEY | PeggingNode | PeggingNode | Workflow Step | |
| PeggingRootItem | PeggingRootItem | x | ||
| DemandMRPElementCategory | DemandMRPElementCategory | MRP Elmnt Ind. | ||
| DemandMRPElement | DemandMRPElement | |||
| DemandMRPElementItem | DemandMRPElementItem | MRP elemnt item | ||
| DemandMRPElementScheduleLine | DemandMRPElementScheduleLine | Scheduling | ||
| DemandMRPElementDate | MatlCompRequirementDate | Reqmts date | ||
| SupplyMRPElementCategory | SupplyMRPElementCategory | MRP Elmnt Ind. | ||
| SupplyMRPElement | SupplyMRPElement | |||
| SupplyMRPElementItem | SupplyMRPElementItem | MRP elemnt item | ||
| SupplyMRPElementScheduleLine | SupplyMRPElementScheduleLine | Scheduling | ||
| PeggingParentNode | PeggingParentNode | UUID | ||
| AggregatedPeggingNode | AggregatedPeggingNode | |||
| AggregatedPeggingParentNode | AggregatedPeggingParentNode | |||
| Product | Product | Product Sold | ||
| MRPPlant | MRPPlant | Plant | ||
| MRPArea | MRPArea | MRP Area | ||
| MRPPlanningSegmentType | MRPPlanningSegmentType | MRP segment | ||
| MRPPlanningSegment | MRPPlanningSegment | Plng Segmnt No. | ||
| MRPController | _MaterialPlant | MRPController | MRP Controller | |
| MaterialBaseUnit | ||||
| MRPElementAvailyOrRqmtDate | ||||
| MRPElementStartDate | I_MatlSupplyDemandPeggingBasic | MRPElementStartDate | Order Start | |
| MRPAvailableQuantity | I_MatlSupplyDemandPeggingBasic | MRPAvailableQuantity | DEC 20 3 | |
| PeggingMessage | I_MatlSupplyDemandPeggingBasic | PeggingMessage | Key | |
| IssueDate | I_MatlSupplyDemandPeggingBasic | IssueDate | Order End Date | |
| RequiredQuantity | MRPRequiredQuantityInBaseUnit | Open Quantity | ||
| DynamicPeggingQuantity | DynamicPeggingQuantity | |||
| MRPElementMissingQuantity | MRPElementMissingQuantity | DEC 20 3 | ||
| TotalDelayInDays | TotalDelayInDays | |||
| DmndMRPElmntAdjustedRqmtDate | DmndMRPElmntAdjustedRqmtDate | Date | ||
| NumberOfPeggingWarnings | NumberOfPeggingWarnings | INT4 | ||
| NumberOfPeggingErrors | NumberOfPeggingErrors | INT4 | ||
| _Parent | _Parent | |||
| _Message | _Message |
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_MaterialSupplyDemandPegging.
-- 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 I_MaterialSupplyDemandPegging AS
SELECT
PeggingRoot,
PeggingNode,
PeggingRootItem,
DemandMRPElementCategory,
DemandMRPElement,
DemandMRPElementItem,
DemandMRPElementScheduleLine,
MatlCompRequirementDate AS DemandMRPElementDate,
SupplyMRPElementCategory,
SupplyMRPElement,
SupplyMRPElementItem,
SupplyMRPElementScheduleLine,
PeggingParentNode,
AggregatedPeggingNode,
AggregatedPeggingParentNode,
Product,
MRPPlant,
MRPArea,
MRPPlanningSegmentType,
MRPPlanningSegment,
_MaterialPlant.MRPController AS MRPController,
_MaterialPlant._Material.MaterialBaseUnit AS MaterialBaseUnit,
Line.MRPElementStartDate AS MRPElementStartDate,
Line.MRPAvailableQuantity AS MRPAvailableQuantity,
Line.PeggingMessage AS PeggingMessage,
Line.IssueDate AS IssueDate,
MRPRequiredQuantityInBaseUnit AS RequiredQuantity,
DynamicPeggingQuantity,
MRPElementMissingQuantity,
TotalDelayInDays,
DmndMRPElmntAdjustedRqmtDate,
NumberOfPeggingWarnings,
NumberOfPeggingErrors
FROM I_MatlSupplyDemandPeggingBasic AS Line
LEFT OUTER JOIN I_MaterialSupplyDemandPegging AS _Parent ON Line.PeggingRoot = _Parent.PeggingRoot AND Line.PeggingParentNode = _Parent.PeggingNode -- association [0..1]
LEFT OUTER JOIN I_MaterialPlant AS _MaterialPlant ON _MaterialPlant.Material = Product AND _MaterialPlant.Plant = MRPPlant -- association [1..1]
LEFT OUTER JOIN I_MatlSupDmndPeggingMessage AS _Message ON _Message.PeggingRoot = PeggingRoot AND _Message.PeggingNode = PeggingNode -- association [0..*]
;
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