I_MaterialSupplyDemandPegging

DDL: I_MATERIALSUPPLYDEMANDPEGGING Type: view_entity COMPOSITE

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)

SourceAliasJoin Type
I_MatlSupplyDemandPeggingBasic Line from

Parameters (2)

NameTypeDefault
P_MRPElementCategory delkz
P_MRPElement pph_del12

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;