I_PMRPSimlnTopLevelDemand
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.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_PMRPRequirementBasic | pmrp_rqmt | inner |
| pmrp_sim_tld | pmrp_sim_tld | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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 (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPMRPSIMTLD | 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 | #TRANSACTIONAL | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Top Level Demand in pMRP | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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.
-- SQL view name: IPMRPSIMTLD
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..*]
;
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