C_PMRPChangeInCapacity
Change In Capacity
C_PMRPChangeInCapacity is a Consumption CDS View that provides data about "Change In Capacity" in SAP S/4HANA. It reads from 1 data source (C_PMRPCapacity) and exposes 17 fields with key fields PMRPSimulation, PMRPResourceInternalID, BucketInternalID. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| C_PMRPCapacity | C_PMRPCapacity | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_PMRPSimulation | _PMRPSimulation | $projection.PMRPSimulation = _PMRPSimulation.PMRPSimulation |
| [1..1] | I_CapacityRespPlannerText | _PMRPCpTxt | $projection.CapacityResponsiblePlanner = _PMRPCpTxt.CapacityResponsiblePlanner and Language = $session.system_language |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPMRPCHGINCAP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Change In Capacity | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PMRPSimulation | PMRPSimulation | Simulation ID | |
| KEY | PMRPResourceInternalID | PMRPResourceInternalID | ||
| KEY | BucketInternalID | BucketInternalID | Bucket ID | |
| PMRPReferencePlan | PMRPReferencePlan | |||
| WorkCenter | WorkCenter | Work Center | ||
| CapacityResponsiblePlanner | CapacityResponsiblePlanner | |||
| Plant | Plant | Plant | ||
| CapacityCategory | CapacityCategory | Capacity Category | ||
| CapacityCategoryName | CapacityCategoryName | |||
| PMRPWorkCenterText | PMRPWorkCenterText | |||
| CapacityResponsiblePlannerName | _PMRPCpTxt | CapacityResponsiblePlannerName | ||
| PlantName | PlantName | Plant Name | ||
| char41endasPMRPBucketName | Calendar Period | |||
| AdaptedCapacityRateInPercent | Proposed Capacity Change | |||
| CapacityQuantityUnit | CapacityQuantityUnit | UoM | ||
| PMRPProposedAvailableCapacity | PMRPAvailableCapacity | Proposed Available Capacity | ||
| _PMRPSimulation | _PMRPSimulation |
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_PMRPChangeInCapacity.
-- 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: CPMRPCHGINCAP
CREATE VIEW C_PMRPChangeInCapacity AS
SELECT
PMRPSimulation,
PMRPResourceInternalID,
BucketInternalID,
PMRPReferencePlan,
WorkCenter,
CapacityResponsiblePlanner,
Plant,
CapacityCategory,
CapacityCategoryName,
PMRPWorkCenterText,
_PMRPCpTxt.CapacityResponsiblePlannerName AS CapacityResponsiblePlannerName,
PlantName,
case when PMRPBucketCategory = 'W' then concat_with_space( _Bucket._PMRPBucketCategory._Text[Language = $session.system_language].PMRPBucketCategoryText , concat_with_space( CONCAT ( cast ( _Bucket.PMRPBucketPeriod as abap.char(2) ) ,','), cast ( _Bucket.PMRPBucketYear as abap.char(4) ), 1 ), 1) else concat_with_space( _Bucket._CalendarMonth._Text[Language = $session.system_language].CalendarMonthName, cast ( _Bucket.PMRPBucketYear as abap.char(4) ) ,1) end as PMRPBucketName AS char41endasPMRPBucketName,
concat_with_space(cast (AdaptedCapacityRateInPercent as abap.char(11)), '%', 1) AS AdaptedCapacityRateInPercent,
CapacityQuantityUnit,
PMRPAvailableCapacity AS PMRPProposedAvailableCapacity
FROM C_PMRPCapacity
LEFT OUTER JOIN C_PMRPSimulation AS _PMRPSimulation ON PMRPSimulation = _PMRPSimulation.PMRPSimulation -- association [1..1]
LEFT OUTER JOIN I_CapacityRespPlannerText AS _PMRPCpTxt ON CapacityResponsiblePlanner = _PMRPCpTxt.CapacityResponsiblePlanner AND Language = $session.system_language -- 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