C_PMRPSimulation
Simulation in predictive MRP
C_PMRPSimulation is a Consumption CDS View that provides data about "Simulation in predictive MRP" in SAP S/4HANA. It reads from 1 data source (I_PMRPSimulationTP) and exposes 39 fields with key field PMRPSimulation. It has 15 associations to related views. It is exposed through 7 OData services (ASQL_F3934, ASQL_F3952, ASQL_F4157, ...). Part of development package PMRP_UI_SERVICES.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PMRPSimulationTP | I_PMRPSimulationTP | from |
Associations (15)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_User | _CreatedBy | $projection.CreatedByUser = _CreatedBy.UserID |
| [1..1] | I_User | _ChangedBy | $projection.LastChangedByUser = _ChangedBy.UserID |
| [1..1] | I_PMRPSimulationStatusText | _SimulationStatusText | $projection.PMRPSimulationStatus = _SimulationStatusText.PMRPSimulationStatus and _SimulationStatusText.Language = $session.system_language |
| [1..1] | C_PMRPSimulationCreatedByVH | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID and $projection.CreatedByUserName = _CreatedByUser.UserDescription |
| [1..1] | C_PMRPReferencePlanVH | _ReferenceVH | $projection.PMRPReferencePlan = _ReferenceVH.PMRPReferencePlan and $projection.pmrpreferenceplandescription = _ReferenceVH.PMRPReferencePlanDescription |
| [1..1] | C_PMRPSimulationVH | _SimulationVH | $projection.PMRPSimulation = _SimulationVH.PMRPSimulation and $projection.PMRPSimulationDescription = _SimulationVH.PMRPSimulationDescription |
| [1..*] | C_PMRPChangeInDemand | _ChangeInDemand | $projection.PMRPSimulation = _ChangeInDemand.PMRPSimulation |
| [1..*] | C_PMRPChangeInCapacity | _ChangeInCapacity | $projection.PMRPSimulation = _ChangeInCapacity.PMRPSimulation |
| [1..*] | C_PMRPUnresolvedIssue | _UnresolvedIssue | $projection.PMRPSimulation = _UnresolvedIssue.PMRPSimulation |
| [1..*] | C_PMRPRsceDisregardedIssues | _DisregardedIssues | $projection.PMRPSimulation = _DisregardedIssues.PMRPSimulation |
| [1..*] | C_PMRPChangeInSOS | _PMRPChangeInSOS | $projection.PMRPSimulation = _PMRPChangeInSOS.PMRPSimulation |
| [1..*] | C_PMRPReallocation | _Reallocation | $projection.PMRPSimulation = _Reallocation.PMRPSimulation |
| [1..1] | I_PMRPBucketCount | _RefBucketCount | $projection.PMRPReferencePlan = _RefBucketCount.PMRPReferencePlan |
| [1..*] | C_PMRPIssueByCause | _IssueByCause | $projection.PMRPSimulation = _IssueByCause.PMRPSimulation |
| [1..*] | C_PMRPChangeInDemandKey | _ChangeInDemandKey | |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Simulation in predictive MRP | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.allowExtensions | true | view | |
| Search.searchable | true | view |
OData Services (7)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F3934 | ASQL_F3934 | C2 | NOT_RELEASED | |
| ASQL_F3952 | ASQL_F3952 | C2 | NOT_RELEASED | |
| ASQL_F4157 | ASQL_F4157 | C2 | NOT_RELEASED | |
| ASQL_F4450 | ASQL_F4450 | C2 | NOT_RELEASED | |
| ASQL_F4593 | ASQL_F4593 | C2 | NOT_RELEASED | |
| PMRP_SIMU_SERVICEDEF | PMRP_SIMUL_SERVICE | V2 | C1 | NOT_TO_BE_RELEASED_STABLE |
| PMRP_SUPPLYCHAIN_SERVICEDEF | PMRP_SUPPLYCHAIN_SERVICE | V2 | C1 | NOT_RELEASED |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PMRPSimulation | PMRPSimulation | Simulation ID | |
| PMRPSimulationDescription | ||||
| PMRPReferencePlan | PMRPReferencePlan | |||
| PMRPReferencePlanDescription | ||||
| PMRPCostCtrPlanIsToBePubd | ||||
| PMRPSimulationStatus | PMRPSimulationStatus | |||
| PMRPSimulationStatusName | _SimulationStatusText | PMRPSimulationStatusName | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CreatedByUserName | _CreatedBy | UserDescription | Full Name | |
| clientNULLasCreationDateTime | ||||
| LastChangedByUser | LastChangedByUser | User Name | ||
| ChangedByUserName | _ChangedBy | UserDescription | Full Name | |
| clientNULLasLastChangeDateTime | ||||
| NumberOfCapacityIssues | NumberOfCapacityIssues | |||
| PreviousNumberOfCapacityIssues | PreviousNumberOfCapacityIssues | |||
| TopLvlDmndUndrdelivRatioInPct | ||||
| PreviousUndrdelivRatioInPct | PreviousUndrdelivRatioInPct | |||
| DeliveryPerformanceUnit | ||||
| PMRPNumberOfBuckets | _RefBucketCount | PMRPNumberOfBuckets | ||
| PMRPBucketCategory | _RefBucketCount | PMRPBucketCategory | ||
| PMRPRsceOverloadTolerancePct | PMRPRsceOverloadTolerancePct | |||
| PMRPSimulationVersionCode | PMRPSimulationVersionCode | |||
| PMRPSimulationIsObsolete | PMRPSimulationIsObsolete | |||
| NumberOfProductsWithMissingSOS | NumberOfProductsWithMissingSOS | |||
| PrevNmbrOfProdsWithMissingSOS | PrevNmbrOfProdsWithMissingSOS | |||
| PMRPNumberOfConstraintIssues | PMRPNumberOfConstraintIssues | |||
| PMRPPrevNmbrOfConstraintIssues | PMRPPrevNmbrOfConstraintIssues | |||
| PMRPStockDeterminationRule | ||||
| _CreatedByUser | _CreatedByUser | |||
| _ReferenceVH | _ReferenceVH | |||
| _SimulationVH | _SimulationVH | |||
| _ChangeInDemandKey | _ChangeInDemandKey | |||
| _ChangeInDemand | _ChangeInDemand | |||
| _ChangeInCapacity | _ChangeInCapacity | |||
| _UnresolvedIssue | _UnresolvedIssue | |||
| _DisregardedIssues | _DisregardedIssues | |||
| _PMRPChangeInSOS | _PMRPChangeInSOS | |||
| _Reallocation | _Reallocation | |||
| _IssueByCause | _IssueByCause |
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_PMRPSimulation.
-- 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 C_PMRPSimulation AS
SELECT
PMRPSimulation,
_SimulationText[Language=$session.system_language].PMRPSimulationDescription AS PMRPSimulationDescription,
PMRPReferencePlan,
_ReferencePlan._PMRPReferencePlanText[Language=$session.system_language].PMRPReferencePlanDescription AS PMRPReferencePlanDescription,
I_PMRPSimulationTP._ReferencePlan.PMRPCostCtrPlanIsToBePubd AS PMRPCostCtrPlanIsToBePubd,
PMRPSimulationStatus,
_SimulationStatusText.PMRPSimulationStatusName AS PMRPSimulationStatusName,
CreatedByUser,
_CreatedBy.UserDescription AS CreatedByUserName,
tstmp_to_dats( CreationDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as CreationDateTime AS clientNULLasCreationDateTime,
LastChangedByUser,
_ChangedBy.UserDescription AS ChangedByUserName,
tstmp_to_dats( LastChangeDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as LastChangeDateTime AS clientNULLasLastChangeDateTime,
NumberOfCapacityIssues,
PreviousNumberOfCapacityIssues,
concat_with_space(cast (TopLvlDmndUndrdelivRatioInPct as abap.char(6)), '%', 1) AS TopLvlDmndUndrdelivRatioInPct,
PreviousUndrdelivRatioInPct,
cast ('%' as meins) AS DeliveryPerformanceUnit,
_RefBucketCount.PMRPNumberOfBuckets AS PMRPNumberOfBuckets,
_RefBucketCount.PMRPBucketCategory AS PMRPBucketCategory,
PMRPRsceOverloadTolerancePct,
PMRPSimulationVersionCode,
PMRPSimulationIsObsolete,
NumberOfProductsWithMissingSOS,
PrevNmbrOfProdsWithMissingSOS,
PMRPNumberOfConstraintIssues,
PMRPPrevNmbrOfConstraintIssues,
I_PMRPSimulationTP._ReferencePlan.PMRPStockDeterminationRule AS PMRPStockDeterminationRule
FROM I_PMRPSimulationTP
LEFT OUTER JOIN I_User AS _CreatedBy ON CreatedByUser = _CreatedBy.UserID -- association [1..1]
LEFT OUTER JOIN I_User AS _ChangedBy ON LastChangedByUser = _ChangedBy.UserID -- association [1..1]
LEFT OUTER JOIN I_PMRPSimulationStatusText AS _SimulationStatusText ON PMRPSimulationStatus = _SimulationStatusText.PMRPSimulationStatus AND _SimulationStatusText.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN C_PMRPSimulationCreatedByVH AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID AND CreatedByUserName = _CreatedByUser.UserDescription -- association [1..1]
LEFT OUTER JOIN C_PMRPReferencePlanVH AS _ReferenceVH ON PMRPReferencePlan = _ReferenceVH.PMRPReferencePlan AND pmrpreferenceplandescription = _ReferenceVH.PMRPReferencePlanDescription -- association [1..1]
LEFT OUTER JOIN C_PMRPSimulationVH AS _SimulationVH ON PMRPSimulation = _SimulationVH.PMRPSimulation AND PMRPSimulationDescription = _SimulationVH.PMRPSimulationDescription -- association [1..1]
LEFT OUTER JOIN C_PMRPChangeInDemand AS _ChangeInDemand ON PMRPSimulation = _ChangeInDemand.PMRPSimulation -- association [1..*]
LEFT OUTER JOIN C_PMRPChangeInCapacity AS _ChangeInCapacity ON PMRPSimulation = _ChangeInCapacity.PMRPSimulation -- association [1..*]
LEFT OUTER JOIN C_PMRPUnresolvedIssue AS _UnresolvedIssue ON PMRPSimulation = _UnresolvedIssue.PMRPSimulation -- association [1..*]
LEFT OUTER JOIN C_PMRPRsceDisregardedIssues AS _DisregardedIssues ON PMRPSimulation = _DisregardedIssues.PMRPSimulation -- association [1..*]
LEFT OUTER JOIN C_PMRPChangeInSOS AS _PMRPChangeInSOS ON PMRPSimulation = _PMRPChangeInSOS.PMRPSimulation -- association [1..*]
LEFT OUTER JOIN C_PMRPReallocation AS _Reallocation ON PMRPSimulation = _Reallocation.PMRPSimulation -- association [1..*]
LEFT OUTER JOIN I_PMRPBucketCount AS _RefBucketCount ON PMRPReferencePlan = _RefBucketCount.PMRPReferencePlan -- association [1..1]
LEFT OUTER JOIN C_PMRPIssueByCause AS _IssueByCause ON PMRPSimulation = _IssueByCause.PMRPSimulation -- association [1..*]
LEFT OUTER JOIN C_PMRPChangeInDemandKey AS _ChangeInDemandKey ON /* condition not available in parsed metadata */ -- association [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