I_PMRPSimlnTopLevelDemand

DDL: I_PMRPSIMLNTOPLEVELDEMAND Type: view_entity BASIC Package: PMRP_ENGINE

Top Level Demand in pMRP

I_PMRPSimlnTopLevelDemand is a Basic CDS View that provides data about "Top Level Demand in pMRP" in SAP S/4HANA. It reads from 2 data sources (I_PMRPRequirementBasic, pmrp_sim_tld) and exposes 23 fields with key fields PMRPSimulation, TopLevelDemandInternalID. It has 7 associations to related views. Part of development package PMRP_ENGINE.

Data Sources (2)

SourceAliasJoin Type
I_PMRPRequirementBasic pmrp_rqmt inner
pmrp_sim_tld pmrp_sim_tld from

Associations (7)

CardinalityTargetAliasCondition
[1..1] I_PMRPSimulation _Simulation _Simulation.PMRPSimulation = $projection.PMRPSimulation
[1..1] I_PMRPReferencePlan _ReferencePlan _ReferencePlan.PMRPReferencePlan = $projection.PMRPReferencePlan
[1..1] I_PMRPBucket _Bucket _Bucket.PMRPReferencePlan = $projection.PMRPReferencePlan and _Bucket.BucketInternalID = $projection.BucketInternalID
[1..1] I_UnitOfMeasure _UnitOfMeasure _UnitOfMeasure.UnitOfMeasure = $projection.UnitOfMeasure
[1..1] I_PMRPProduct _PMRPProduct _PMRPProduct.PMRPReferencePlan = $projection.PMRPReferencePlan and _PMRPProduct.Product = $projection.TopLevelProduct and _PMRPProduct.MRPArea = $projection.TopLevelMRPArea and _PMRPProduct.Plant = $projection.TopLevelPlant
[1..1] I_PMRPIssueCategory _UnderdeliveryIssue _UnderdeliveryIssue.PMRPIssueCategory = $projection.PMRPUnderdeliveryIssue -- all receipts fulfilling this TLD
[0..*] I_PMRPReceipt _Receipt _Receipt.PMRPSimulation = $projection.PMRPSimulation and _Receipt.PeggedRequirementInternalID = $projection.TopLevelDemandInternalID

Annotations (6)

NameValueLevelField
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
EndUserText.label Top Level Demand in pMRP view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation pmrp_sim_tld simulation_id Simulation ID
KEY TopLevelDemandInternalID pmrp_sim_tld sim_tld_id Top-Level Demand ID
BucketInternalID pmrp_sim_tld bucket_id Bucket ID
ProductasTopLevelProduct
TopLevelPlant I_PMRPRequirementBasic Plant Valuation Area
TopLevelMRPArea I_PMRPRequirementBasic MRPArea MRP Area
UnitOfMeasure I_PMRPRequirementBasic UnitOfMeasure Unit Protected Qty
SimulatedRequiredQuantity I_PMRPRequirementBasic RequiredQuantity Requirement qty
quantityasReferenceRequiredQuantity
available_quanasMRPAvailableQuantity
AvailableStockQuantity
CoveredByStockQuantity I_PMRPRequirementBasic CoveredByStockQuantity Quantity Covered
PMRPOpenQuantity I_PMRPRequirementBasic PMRPOpenQuantity Open Quantity
AcceptedRequestedRatioInPct pmrp_sim_tld delivery_perf Delivery Performance
RequirementStartDate I_PMRPRequirementBasic RequirementStartDate Start Date
PMRPReferencePlan _Simulation PMRPReferencePlan
_Simulation _Simulation
_Bucket _Bucket
_ReferencePlan _ReferencePlan
_PMRPProduct _PMRPProduct
_UnitOfMeasure _UnitOfMeasure
_UnderdeliveryIssue _UnderdeliveryIssue
_Receipt _Receipt

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_PMRPSimlnTopLevelDemand.
-- 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 I_PMRPSimlnTopLevelDemand AS
SELECT
  pmrp_sim_tld.simulation_id AS PMRPSimulation,
  pmrp_sim_tld.sim_tld_id AS TopLevelDemandInternalID,
  pmrp_sim_tld.bucket_id AS BucketInternalID,
  pmrp_rqmt.Plant AS TopLevelPlant,
  pmrp_rqmt.MRPArea AS TopLevelMRPArea,
  pmrp_rqmt.UnitOfMeasure AS UnitOfMeasure,
  pmrp_rqmt.RequiredQuantity AS SimulatedRequiredQuantity,
  pmrp_rqmt.CoveredByStockQuantity AS CoveredByStockQuantity,
  pmrp_rqmt.PMRPOpenQuantity AS PMRPOpenQuantity,
  pmrp_sim_tld.delivery_perf AS AcceptedRequestedRatioInPct,
  pmrp_rqmt.RequirementStartDate AS RequirementStartDate,
  _Simulation.PMRPReferencePlan AS PMRPReferencePlan
FROM pmrp_sim_tld
INNER JOIN I_PMRPRequirementBasic AS pmrp_rqmt ON /* join condition not captured in parsed metadata */
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_PMRPBucket AS _Bucket ON _Bucket.PMRPReferencePlan = PMRPReferencePlan AND _Bucket.BucketInternalID = BucketInternalID  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON _UnitOfMeasure.UnitOfMeasure = UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_PMRPProduct AS _PMRPProduct ON _PMRPProduct.PMRPReferencePlan = PMRPReferencePlan AND _PMRPProduct.Product = TopLevelProduct AND _PMRPProduct.MRPArea = TopLevelMRPArea AND _PMRPProduct.Plant = TopLevelPlant  -- association [1..1]
LEFT OUTER JOIN I_PMRPIssueCategory AS _UnderdeliveryIssue ON _UnderdeliveryIssue.PMRPIssueCategory = PMRPUnderdeliveryIssue  -- association [1..1]
LEFT OUTER JOIN I_PMRPReceipt AS _Receipt ON _Receipt.PMRPSimulation = PMRPSimulation AND _Receipt.PeggedRequirementInternalID = TopLevelDemandInternalID  -- association [0..*]
;