P_RSHWCUtilization
P_RSHWCUtilization is a Consumption CDS View in SAP S/4HANA. It reads from 4 data sources (I_CalendarDate, I_CalendarDate, P_RSHWCCapacityPerWorkDay, P_RSHOperationWorkPerDay) and exposes 60 fields with key fields YearMonth, YearWeek, CalendarDate, MaintenanceOrder, MaintenancePlan.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_CalendarDate | CalendarDate | inner |
| I_CalendarDate | Calendardate | inner |
| P_RSHWCCapacityPerWorkDay | Capacity | from |
| P_RSHOperationWorkPerDay | P_RSHOperationWorkPerDay | union_all |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | datum | |
| P_EndDate | datum |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PRSHWCUTIL | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (60)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | YearMonth | I_CalendarDate | YearMonth | Year Month |
| KEY | YearWeek | I_CalendarDate | YearWeek | Year and Calendar Week |
| KEY | CalendarDate | P_RSHWCCapacityPerWorkDay | CalendarDate | Calendar Date |
| KEY | MaintenanceOrder | Order | ||
| KEY | MaintenancePlan | MaintenancePlan | ||
| KEY | MaintenanceOrderOperation | Suboperation | ||
| KEY | MaintenanceOrderSubOperation | Suboperation | ||
| KEY | CapacityStartTime | P_RSHWCCapacityPerWorkDay | CapacityStartTime | |
| KEY | AvailableCapacityShift | P_RSHWCCapacityPerWorkDay | AvailableCapacityShift | Capacity Shift |
| CapacityEndTime | P_RSHWCCapacityPerWorkDay | CapacityEndTime | ||
| CapacityInternalID | P_RSHWCCapacityPerWorkDay | CapacityInternalID | Capacity ID | |
| WorkCenterInternalID | P_RSHWCCapacityPerWorkDay | WorkCenterInternalID | Work Center | |
| WorkCenter | P_RSHWCCapacityPerWorkDay | WorkCenter | Work Center | |
| Plant | P_RSHWCCapacityPerWorkDay | Plant | Valuation Area | |
| WorkCenterTypeCode | P_RSHWCCapacityPerWorkDay | WorkCenterTypeCode | Object Type | |
| WorkCenterCategoryCode | P_RSHWCCapacityPerWorkDay | WorkCenterCategoryCode | ||
| OperationControlKey | Control Key | |||
| OrderType | Order Type | |||
| MaintenanceActivityType | MaintActivType | |||
| MaintPriority | Priority | |||
| MaintPriorityType | PriorityType | |||
| MaintPriorityColorCode | ||||
| ProcessingStatus | 0 | Worklist Status | ||
| OperationPersonResponsible | Personnel no. | |||
| CalendarWeek | I_CalendarDate | CalendarWeek | Calendar Week | |
| CalendarMonth | I_CalendarDate | CalendarMonth | Calendar Month | |
| TotalCapacity | P_RSHWCCapacityPerWorkDay | TotOperatingDurationInSeconds | ||
| OperatingDurationInSeconds | P_RSHWCCapacityPerWorkDay | OperatingDurationInSeconds | ||
| UsedCapacity | ||||
| P_StartDate | ||||
| YearMonthasYearMonth | ||||
| KEY | YearWeek | I_CalendarDate | YearWeek | Year and Calendar Week |
| KEY | CalendarDate | I_CalendarDate | CalendarDate | Calendar Date |
| KEY | MaintenanceOrder | Consumption | MaintenanceOrder | Order |
| KEY | MaintenancePlan | Consumption | MaintenancePlan | MaintenancePlan |
| KEY | MaintenanceOrderOperation | Consumption | MaintenanceOrderOperation | Suboperation |
| KEY | MaintenanceOrderSubOperation | Consumption | MaintenanceOrderSubOperation | Suboperation |
| KEY | CapacityStartTime | Consumption | CapacityStartTime | |
| KEY | AvailableCapacityShift | Consumption | AvailableCapacityShift | Capacity Shift |
| CapacityEndTime | Consumption | CapacityEndTime | ||
| CapacityInternalID | Consumption | CapacityInternalID | Capacity ID | |
| WorkCenterInternalID | Consumption | WorkCenterInternalID | Work Center | |
| WorkCenter | Consumption | WorkCenter | Work Center | |
| Plant | Consumption | Plant | Valuation Area | |
| WorkCenterTypeCode | Consumption | WorkCenterTypeCode | Object Type | |
| WorkCenterCategoryCode | Consumption | WorkCenterCategoryCode | ||
| OperationControlKey | Consumption | OperationControlKey | Control Key | |
| OrderType | Consumption | OrderType | Order Type | |
| MaintenanceActivityType | Consumption | MaintenanceActivityType | MaintActivType | |
| MaintPriority | Consumption | MaintPriority | Priority | |
| MaintPriorityType | Consumption | MaintPriorityType | PriorityType | |
| MaintPriorityColorCode | Consumption | MaintPriorityColorCode | ||
| ProcessingStatus | Consumption | ProcessingStatus | Worklist Status | |
| OperationPersonResponsible | Consumption | OperationPersonResponsible | Personnel no. | |
| CalendarWeek | I_CalendarDate | CalendarWeek | Calendar Week | |
| CalendarMonth | I_CalendarDate | CalendarMonth | Calendar Month | |
| TotalCapacity | 0 | |||
| OperatingDurationInSeconds | ||||
| UsedCapacity | Consumption | WorkPerDay | ||
| TotalWorkCenterCapacity |
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 P_RSHWCUtilization.
-- 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: PRSHWCUTIL
-- Parameters: P_StartDate : datum, P_EndDate : datum
CREATE VIEW P_RSHWCUtilization AS
SELECT
CalendarDate.YearMonth AS YearMonth,
CalendarDate.YearWeek AS YearWeek,
Capacity.CalendarDate AS CalendarDate,
cast(' ' as aufnr ) AS MaintenanceOrder,
cast (' ' as warpl ) AS MaintenancePlan,
cast(' ' as vornr ) AS MaintenanceOrderOperation,
cast(' ' as vornr ) AS MaintenanceOrderSubOperation,
Capacity.CapacityStartTime AS CapacityStartTime,
Capacity.AvailableCapacityShift AS AvailableCapacityShift,
Capacity.CapacityEndTime AS CapacityEndTime,
Capacity.CapacityInternalID AS CapacityInternalID,
Capacity.WorkCenterInternalID AS WorkCenterInternalID,
Capacity.WorkCenter AS WorkCenter,
Capacity.Plant AS Plant,
Capacity.WorkCenterTypeCode AS WorkCenterTypeCode,
Capacity.WorkCenterCategoryCode AS WorkCenterCategoryCode,
cast(' ' as steus ) AS OperationControlKey,
cast(' ' as aufart ) AS OrderType,
cast(' ' as ila ) AS MaintenanceActivityType,
cast(' ' as priok ) AS MaintPriority,
cast ( ' ' as artpr ) AS MaintPriorityType,
cast ( 0 as abap.int1) AS MaintPriorityColorCode,
0 AS ProcessingStatus,
'00000000' AS OperationPersonResponsible,
CalendarDate.CalendarWeek AS CalendarWeek,
CalendarDate.CalendarMonth AS CalendarMonth,
Capacity.TotOperatingDurationInSeconds AS TotalCapacity,
Capacity.OperatingDurationInSeconds AS OperatingDurationInSeconds,
cast( 0 as abap.fltp ) AS UsedCapacity,
cast( 0 as abap.fltp ) as TotalWorkCenterCapacity AS P_StartDate,
cast( 0 as abap.fltp ) AS TotalWorkCenterCapacity
FROM P_RSHWCCapacityPerWorkDay AS Capacity
INNER JOIN I_CalendarDate AS CalendarDate ON /* join condition not captured in parsed metadata */
INNER JOIN I_CalendarDate AS Calendardate ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_RSHOperationWorkPerDay
;
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