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 40 fields with key fields PMRPSimulation, Product, Plant, MRPArea, PMRPSourceOfSupplyInternalID. It has 1 association to related views.
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 (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPMRPPROD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Simulation Product view | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | 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 |
Fields (40)
| 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 | _Plant | PlantName | Plant Name | |
| MRPAreaText | _MRPArea | MRPAreaText | ||
| MRPController | _PMRPProduct | MRPController | MRP Controller | |
| MRPControllerName | ||||
| PMRPSourceOfSupplyName | _SourceOfSupply | PMRPSourceOfSupplyName | ||
| Supplier | _SourceOfSupply | Supplier | Supplier | |
| MRPProcedureCthenXelseendasMRPProcedure | ||||
| UnitOfMeasure | UnitOfMeasure | Unit Protected Qty | ||
| ProcurementType | ||||
| ProcurementTypeDescription | ||||
| PMRPReceiptQuantity | PMRPReceiptQuantity | |||
| PMRPSupplierSumQuantity | ||||
| PMRPConstraintQtyInBaseUnit | PMRPConstraintQtyInBaseUnit | |||
| PMRPReferencePlan | PMRPReferencePlan | |||
| ParentPMRPSourceOfSupply | ParentPMRPSourceOfSupply | |||
| LowLevelCode | _Product | LowLevelCode | Low-Level Code | |
| 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.
-- SQL view name: CPMRPPROD
-- 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,
_Plant.PlantName AS PlantName,
_MRPArea.MRPAreaText AS MRPAreaText,
_PMRPProduct.MRPController AS MRPController,
_PMRPProduct._PMRPController.MRPControllerName AS MRPControllerName,
_SourceOfSupply.PMRPSourceOfSupplyName AS PMRPSourceOfSupplyName,
_SourceOfSupply.Supplier AS Supplier,
case when _PMRPProduct.MRPProcedure = 'C' then 'X' else ' ' end as MRPProcedure AS MRPProcedureCthenXelseendasMRPProcedure,
UnitOfMeasure,
_PMRPProduct._PMRPProcurementType.ProcurementType AS ProcurementType,
_PMRPProduct._PMRPProcurementType.ProcurementTypeDescription AS ProcurementTypeDescription,
PMRPReceiptQuantity,
cast( 0 as pmrp_receipt_quantity ) AS PMRPSupplierSumQuantity,
PMRPConstraintQtyInBaseUnit,
PMRPReferencePlan,
ParentPMRPSourceOfSupply,
_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
- 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