I_PMRPSimlnOutpQtyByTopLvlDmnd

DDL: I_PMRPSIMLNOUTPQTYBYTOPLVLDMND SQL: IPMRPOUTPTLD Type: view COMPOSITE

Output of a product per top level demand

I_PMRPSimlnOutpQtyByTopLvlDmnd is a Composite CDS View that provides data about "Output of a product per top level demand" in SAP S/4HANA. It reads from 1 data source (P_PMRPSimlnOutpQtyByTopLvlDmn1) and exposes 25 fields with key fields PMRPSimulation, TopLevelDemandInternalID, Product, Plant, MRPArea. It has 10 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_PMRPSimlnOutpQtyByTopLvlDmn1 P_PMRPSimlnOutpQtyByTopLvlDmn1 from

Associations (10)

CardinalityTargetAliasCondition
[1..1] I_UnitOfMeasure _UnitOfMeasure _UnitOfMeasure.UnitOfMeasure = $projection.UnitOfMeasure
[1..1] I_Product _Product _Product.Product = $projection.Product
[1..1] I_Plant _Plant _Plant.Plant = $projection.Plant
[1..1] I_MRPArea _MRPArea _MRPArea.MRPArea = $projection.MRPArea
[1..1] I_PMRPSimulation _Simulation _Simulation.PMRPSimulation = $projection.PMRPSimulation
[1..1] I_PMRPReferencePlan _ReferencePlan _ReferencePlan.PMRPReferencePlan = $projection.PMRPReferencePlan
[1..1] I_PMRPProduct _PMRPProduct _PMRPProduct.PMRPReferencePlan = $projection.PMRPReferencePlan and _PMRPProduct.Product = $projection.Product and _PMRPProduct.MRPArea = $projection.MRPArea and _PMRPProduct.Plant = $projection.Plant
[1..1] I_PMRPSourceOfSupply _SourceOfSupply _SourceOfSupply.PMRPReferencePlan = $projection.PMRPReferencePlan and _SourceOfSupply.PMRPSourceOfSupplyInternalID = $projection.PMRPSourceOfSupplyInternalID
[1..1] I_PMRPBucket _Bucket _Bucket.PMRPReferencePlan = $projection.PMRPReferencePlan and _Bucket.BucketInternalID = $projection.BucketInternalID
[1..1] I_PMRPSimlnTopLevelDemand _TopLevelDemand _TopLevelDemand.PMRPSimulation = $projection.PMRPSimulation and _TopLevelDemand.TopLevelDemandInternalID = $projection.TopLevelDemandInternalID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IPMRPOUTPTLD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
VDM.viewType #COMPOSITE view
EndUserText.label Output of a product per top level demand view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation PMRPSimulation Simulation ID
KEY TopLevelDemandInternalID TopLevelDemandInternalID Top-Level Demand ID
KEY Product Product Product Sold
KEY Plant Plant Valuation Area
KEY MRPArea MRPArea MRP Area
KEY PMRPSourceOfSupplyInternalID PMRPSourceOfSupplyInternalID Source of Supply ID
KEY PMRPSupplyGroup PMRPSupplyGroup Supply Group
KEY PMRPSupplyGroupCategory PMRPSupplyGroupCategory Supply Group Cat
KEY BucketInternalID BucketInternalID Bucket ID
UnitOfMeasure UnitOfMeasure Unit Protected Qty
PMRPReceiptBucketQuantity
PMRPReferencePlan PMRPReferencePlan
TopLevelProduct _TopLevelDemand TopLevelProduct
TopLevelPlant _TopLevelDemand TopLevelPlant
TopLevelMRPArea _TopLevelDemand TopLevelMRPArea
_Product _Product
_Plant _Plant
_MRPArea _MRPArea
_UnitOfMeasure _UnitOfMeasure
_ReferencePlan _ReferencePlan
_Bucket _Bucket
_Simulation _Simulation
_PMRPProduct _PMRPProduct
_SourceOfSupply _SourceOfSupply
_TopLevelDemand _TopLevelDemand

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_PMRPSimlnOutpQtyByTopLvlDmnd.
-- 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.
-- SQL view name: IPMRPOUTPTLD

CREATE VIEW I_PMRPSimlnOutpQtyByTopLvlDmnd AS
SELECT
  PMRPSimulation,
  TopLevelDemandInternalID,
  Product,
  Plant,
  MRPArea,
  PMRPSourceOfSupplyInternalID,
  PMRPSupplyGroup,
  PMRPSupplyGroupCategory,
  BucketInternalID,
  UnitOfMeasure,
  round(PMRPReceiptBucketQuantity,_TopLevelDemand._UnitOfMeasure.UnitOfMeasureNumberOfDecimals ) AS PMRPReceiptBucketQuantity,
  PMRPReferencePlan,
  _TopLevelDemand.TopLevelProduct AS TopLevelProduct,
  _TopLevelDemand.TopLevelPlant AS TopLevelPlant,
  _TopLevelDemand.TopLevelMRPArea AS TopLevelMRPArea
FROM P_PMRPSimlnOutpQtyByTopLvlDmn1
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON _UnitOfMeasure.UnitOfMeasure = UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON _Product.Product = Product  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON _Plant.Plant = Plant  -- association [1..1]
LEFT OUTER JOIN I_MRPArea AS _MRPArea ON _MRPArea.MRPArea = MRPArea  -- association [1..1]
LEFT OUTER JOIN I_PMRPSimulation AS _Simulation ON _Simulation.PMRPSimulation = PMRPSimulation  -- association [1..1]
LEFT OUTER JOIN I_PMRPReferencePlan AS _ReferencePlan ON _ReferencePlan.PMRPReferencePlan = PMRPReferencePlan  -- association [1..1]
LEFT OUTER JOIN I_PMRPProduct AS _PMRPProduct ON _PMRPProduct.PMRPReferencePlan = PMRPReferencePlan AND _PMRPProduct.Product = Product AND _PMRPProduct.MRPArea = MRPArea AND _PMRPProduct.Plant = Plant  -- association [1..1]
LEFT OUTER JOIN I_PMRPSourceOfSupply AS _SourceOfSupply ON _SourceOfSupply.PMRPReferencePlan = PMRPReferencePlan AND _SourceOfSupply.PMRPSourceOfSupplyInternalID = PMRPSourceOfSupplyInternalID  -- association [1..1]
LEFT OUTER JOIN I_PMRPBucket AS _Bucket ON _Bucket.PMRPReferencePlan = PMRPReferencePlan AND _Bucket.BucketInternalID = BucketInternalID  -- association [1..1]
LEFT OUTER JOIN I_PMRPSimlnTopLevelDemand AS _TopLevelDemand ON _TopLevelDemand.PMRPSimulation = PMRPSimulation AND _TopLevelDemand.TopLevelDemandInternalID = TopLevelDemandInternalID  -- association [1..1]
;