C_PMRPCapacity
Capacity Plan Simulation
C_PMRPCapacity is a Consumption CDS View that provides data about "Capacity Plan Simulation" in SAP S/4HANA. It reads from 1 data source (I_PMRPSimlnRsceCapBucket) and exposes 32 fields with key fields PMRPSimulation, PMRPResourceInternalID, BucketInternalID. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PMRPSimlnRsceCapBucket | CapaRqmt | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PMRPSimlnResourceBucketIssue | _ResourceBucketIssue | _ResourceBucketIssue.PMRPSimulation = $projection.PMRPSimulation and _ResourceBucketIssue.PMRPResourceInternalID = $projection.PMRPResourceInternalID and _ResourceBucketIssue.BucketInternalID = $projection.BucketInternalID |
| [1..1] | I_PMRPBucketCount | _RefBucketCount | $projection.PMRPReferencePlan = _RefBucketCount.PMRPReferencePlan |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPMRPC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | 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 | |
| EndUserText.label | Capacity Plan Simulation | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PMRPSimulation | I_PMRPSimlnRsceCapBucket | PMRPSimulation | Simulation ID |
| KEY | PMRPResourceInternalID | I_PMRPSimlnRsceCapBucket | PMRPResourceInternalID | |
| KEY | BucketInternalID | I_PMRPSimlnRsceCapBucket | BucketInternalID | Bucket ID |
| Plant | I_PMRPSimlnRsceCapBucket | Plant | Valuation Area | |
| PMRPReferencePlan | I_PMRPSimlnRsceCapBucket | PMRPReferencePlan | ||
| PMRPAvailableCapacity | I_PMRPSimlnRsceCapBucket | PMRPAvailableCapacity | ||
| PMRPCapacityDemandQuantity | I_PMRPSimlnRsceCapBucket | PMRPCapacityDemandQuantity | ||
| PMRPCapacityDeltaQty | ||||
| CapacityQuantityUnit | I_PMRPSimlnRsceCapBucket | CapacityQuantityUnit | ||
| TotOperatingDurationInHours | ||||
| AdaptedCapacityRateInPercent | I_PMRPSimlnRsceCapBucket | AdaptedCapacityRateInPercent | ||
| char1126endasPMRPBucketName | Bucket ID | |||
| PMRPBucketCategory | ||||
| PMRPResourceName | ||||
| WorkCenter | ||||
| WorkCenterInternalID | ||||
| CapacityResponsiblePlanner | ||||
| CapacityCategory | ||||
| CapacityCategoryName | ||||
| CapacityText | ||||
| PMRPWorkCenterText | ||||
| PMRPResourceLoadPercent | _ResourceBucketIssue | PMRPResourceLoadPercent | ||
| PMRPRsceOverloadTolerancePct | ||||
| PMRPResourceDisregardIssStatus | PMRPResourceDisregardIssStatus | |||
| Denominator | ||||
| Numerator | ||||
| PlantName | ||||
| PMRPBucketPeriod | ||||
| PMRPSimulationStatus | _Simulation | PMRPSimulationStatus | ||
| PMRPNumberOfBuckets | _RefBucketCount | PMRPNumberOfBuckets | ||
| _ResourceBucketIssue | _ResourceBucketIssue | |||
| _Bucket | _Bucket |
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_PMRPCapacity.
-- 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: CPMRPC
CREATE VIEW C_PMRPCapacity AS
SELECT
CapaRqmt.PMRPSimulation AS PMRPSimulation,
CapaRqmt.PMRPResourceInternalID AS PMRPResourceInternalID,
CapaRqmt.BucketInternalID AS BucketInternalID,
CapaRqmt.Plant AS Plant,
CapaRqmt.PMRPReferencePlan AS PMRPReferencePlan,
CapaRqmt.PMRPAvailableCapacity AS PMRPAvailableCapacity,
CapaRqmt.PMRPCapacityDemandQuantity AS PMRPCapacityDemandQuantity,
CapaRqmt.PMRPAvailableCapacity - CapaRqmt.PMRPCapacityDemandQuantity AS PMRPCapacityDeltaQty,
CapaRqmt.CapacityQuantityUnit AS CapacityQuantityUnit,
cast( CapaRqmt.PMRPAvailableCapacity as pmrp_available_capacity ) AS TotOperatingDurationInHours,
CapaRqmt.AdaptedCapacityRateInPercent AS AdaptedCapacityRateInPercent,
case when CapaRqmt._Bucket.PMRPBucketCategory = 'W' then substring ( cast ( BucketInternalID as abap.char(11) ), 1 , 6) else substring ( cast ( BucketInternalID as abap.char(11) ), 2 , 6) end as PMRPBucketName AS char1126endasPMRPBucketName,
CapaRqmt._Bucket.PMRPBucketCategory AS PMRPBucketCategory,
CapaRqmt._Resource.PMRPResourceName AS PMRPResourceName,
CapaRqmt._Resource.WorkCenter AS WorkCenter,
CapaRqmt._Resource.WorkCenterInternalID AS WorkCenterInternalID,
CapaRqmt._Resource.CapacityResponsiblePlanner AS CapacityResponsiblePlanner,
CapaRqmt._Resource.CapacityCategory AS CapacityCategory,
_Resource._WorkCenterText.CapacityCategoryName AS CapacityCategoryName,
_Resource._WorkCenterText.CapacityText AS CapacityText,
_Resource._WorkCenterText.PMRPWorkCenterText AS PMRPWorkCenterText,
_ResourceBucketIssue.PMRPResourceLoadPercent AS PMRPResourceLoadPercent,
CapaRqmt._Simulation.PMRPRsceOverloadTolerancePct AS PMRPRsceOverloadTolerancePct,
PMRPResourceDisregardIssStatus,
CapaRqmt._Resource.Denominator AS Denominator,
CapaRqmt._Resource.Numerator AS Numerator,
coalesce( _Resource._WorkCenterText._PlantVH.PlantName, CapaRqmt.Plant ) AS PlantName,
CapaRqmt._Bucket.PMRPBucketPeriod AS PMRPBucketPeriod,
_Simulation.PMRPSimulationStatus AS PMRPSimulationStatus,
_RefBucketCount.PMRPNumberOfBuckets AS PMRPNumberOfBuckets
FROM I_PMRPSimlnRsceCapBucket AS CapaRqmt
LEFT OUTER JOIN I_PMRPSimlnResourceBucketIssue AS _ResourceBucketIssue ON _ResourceBucketIssue.PMRPSimulation = PMRPSimulation AND _ResourceBucketIssue.PMRPResourceInternalID = PMRPResourceInternalID AND _ResourceBucketIssue.BucketInternalID = BucketInternalID -- association [1..1]
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