C_PMRPSimulationProduct
Simulation Product view
C_PMRPSimulationProduct is a Consumption CDS View that provides data about "Simulation Product view" in SAP S/4HANA. It reads from 1 data source (R_PMRPSimlnOutpByProdHierNode) and exposes 38 fields with key fields PMRPSimulation, Product, Plant, MRPArea, PMRPSourceOfSupplyInternalID. It has 1 association to related views. It is exposed through 2 OData services (ASQL_F4450, PMRP_SIMU_COMPONENT_SERVICEDEF). Part of development package PMRP_UI_SERVICES.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_PMRPSimlnOutpByProdHierNode | R_PMRPSimlnOutpByProdHierNode | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_PMRPSimulation | pmrp_simulation_id |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PMRPBucketCount | _RefBucketCount | $projection.PMRPReferencePlan = _RefBucketCount.PMRPReferencePlan |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Simulation Product view | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
OData Services (2)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F4450 | ASQL_F4450 | C2 | NOT_RELEASED | |
| PMRP_SIMU_COMPONENT_SERVICEDEF | PMRP_SIM_COMPONENT_SERVICE | V2 | C1 | NOT_TO_BE_RELEASED_STABLE |
Fields (38)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PMRPSimulation | PMRPSimulation | Simulation ID | |
| KEY | Product | Product | Product Sold | |
| KEY | Plant | Plant | Valuation Area | |
| KEY | MRPArea | MRPArea | MRP Area | |
| KEY | PMRPSourceOfSupplyInternalID | PMRPSourceOfSupplyInternalID | Source of Supply ID | |
| KEY | BucketInternalID | BucketInternalID | Bucket ID | |
| PMRPBucketCategory | _RefBucketCount | PMRPBucketCategory | ||
| PMRPNumberOfBuckets | _RefBucketCount | PMRPNumberOfBuckets | ||
| MaterialName | ||||
| PlantName | ||||
| MRPAreaText | ||||
| MRPController | ||||
| MRPControllerName | ||||
| PMRPSourceOfSupplyName | ||||
| MRPProcedureCthenXelseendasMRPProcedure | ||||
| UnitOfMeasure | UnitOfMeasure | Unit Protected Qty | ||
| ProcurementType | ||||
| ProcurementTypeDescription | ||||
| PMRPReceiptQuantity | PMRPReceiptQuantity | |||
| PMRPConstraintQtyInBaseUnit | PMRPConstraintQtyInBaseUnit | |||
| PMRPReferencePlan | PMRPReferencePlan | |||
| ParentPMRPSourceOfSupply | ParentPMRPSourceOfSupply | |||
| LowLevelCode | ||||
| HierarchyNode | HierarchyNode | Node | ||
| HierarchyParentNode | HierarchyParentNode | Hier.node | ||
| HierarchyNodeOrdinalNumber | HierarchyNodeOrdinalNumber | Node Number | ||
| HierarchyParentNodeOrdinalNmbr | HierarchyParentNodeOrdinalNmbr | |||
| HierarchyLevel | HierarchyLevel | Hierarchy Level | ||
| HierarchyNodeSubTreeSize | HierarchyNodeSubTreeSize | Descendant Count | ||
| _PMRPSimlnOutpQtyByTopLvlDmnd | _PMRPSimlnOutpQtyByTopLvlDmnd | |||
| _Product | _Product | |||
| _Plant | _Plant | |||
| _MRPArea | _MRPArea | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _ReferencePlan | _ReferencePlan | |||
| _Simulation | _Simulation | |||
| _PMRPProduct | _PMRPProduct | |||
| _SourceOfSupply | _SourceOfSupply |
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 C_PMRPSimulationProduct.
-- 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_PMRPSimulation : pmrp_simulation_id
CREATE VIEW C_PMRPSimulationProduct AS
SELECT
PMRPSimulation,
Product,
Plant,
MRPArea,
PMRPSourceOfSupplyInternalID,
BucketInternalID,
_RefBucketCount.PMRPBucketCategory AS PMRPBucketCategory,
_RefBucketCount.PMRPNumberOfBuckets AS PMRPNumberOfBuckets,
_Product._Text[Language = $session.system_language].ProductName AS MaterialName,
R_PMRPSimlnOutpByProdHierNode._Plant.PlantName AS PlantName,
R_PMRPSimlnOutpByProdHierNode._MRPArea.MRPAreaText AS MRPAreaText,
R_PMRPSimlnOutpByProdHierNode._PMRPProduct.MRPController AS MRPController,
R_PMRPSimlnOutpByProdHierNode._PMRPProduct._PMRPController.MRPControllerName AS MRPControllerName,
R_PMRPSimlnOutpByProdHierNode._SourceOfSupply.PMRPSourceOfSupplyName AS PMRPSourceOfSupplyName,
case when R_PMRPSimlnOutpByProdHierNode._PMRPProduct.MRPProcedure = 'C' then 'X' else ' ' end as MRPProcedure AS MRPProcedureCthenXelseendasMRPProcedure,
UnitOfMeasure,
R_PMRPSimlnOutpByProdHierNode._PMRPProduct._PMRPProcurementType.ProcurementType AS ProcurementType,
R_PMRPSimlnOutpByProdHierNode._PMRPProduct._PMRPProcurementType.ProcurementTypeDescription AS ProcurementTypeDescription,
PMRPReceiptQuantity,
PMRPConstraintQtyInBaseUnit,
PMRPReferencePlan,
ParentPMRPSourceOfSupply,
R_PMRPSimlnOutpByProdHierNode._Product.LowLevelCode AS LowLevelCode,
HierarchyNode,
HierarchyParentNode,
HierarchyNodeOrdinalNumber,
HierarchyParentNodeOrdinalNmbr,
HierarchyLevel,
HierarchyNodeSubTreeSize
FROM R_PMRPSimlnOutpByProdHierNode
LEFT OUTER JOIN I_PMRPBucketCount AS _RefBucketCount ON PMRPReferencePlan = _RefBucketCount.PMRPReferencePlan -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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