P_RSHSmltdOpCapacity
Simulated Operation Capacity
P_RSHSmltdOpCapacity is a Consumption CDS View that provides data about "Simulated Operation Capacity" in SAP S/4HANA. It reads from 4 data sources (P_RSHSmltdOpInSeconds, P_RSHWCCapPerWorkDayForPeriod, P_RSHSmltdOpInSeconds, I_RSHAssignedWorkCenters) and exposes 53 fields with key fields MaintSchedSimlnUUID, MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation, CalendarDate. Part of development package RSH_CDS_MAINT_SCHED_SIM.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| P_RSHSmltdOpInSeconds | OperationDetails | union_all |
| P_RSHWCCapPerWorkDayForPeriod | P_RSHWCCapPerWorkDayForPeriod | inner |
| P_RSHSmltdOpInSeconds | SimulatedOperations | from |
| I_RSHAssignedWorkCenters | WorkCenterDetails | inner |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | datum | |
| P_EndDate | datum |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PRSHSMLTDOPCAP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (53)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintSchedSimlnUUID | P_RSHSmltdOpInSeconds | MaintSchedSimlnUUID | UUID |
| KEY | MaintenanceOrder | P_RSHSmltdOpInSeconds | MaintenanceOrder | Order |
| KEY | MaintenanceOrderOperation | P_RSHSmltdOpInSeconds | MaintenanceOrderOperation | Suboperation |
| KEY | MaintenanceOrderSubOperation | P_RSHSmltdOpInSeconds | MaintenanceOrderSubOperation | Suboperation |
| KEY | CalendarDate | WorkCenterCapacity | CalendarDate | |
| KEY | CapacityStartTime | WorkCenterCapacity | CapacityStartTime | |
| WorkCenterInternalId | P_RSHSmltdOpInSeconds | WorkCenterInternalID | Work Center | |
| CapacityInternalID | WorkCenterCapacity | CapacityInternalID | Capacity ID | |
| WorkCenter | WorkCenterCapacity | WorkCenter | Work Center | |
| WorkCenterCategoryCode | WorkCenterCapacity | WorkCenterCategoryCode | ||
| WorkCenterTypeCode | WorkCenterCapacity | WorkCenterTypeCode | Object Type | |
| Plant | WorkCenterCapacity | Plant | Valuation Area | |
| OperationPlannedWork | OperationPlannedWork | |||
| OperationDuration | OperationDuration | |||
| MaintOrdOpSimulatedStartDate | MaintOrdOpSimulatedStartDate | Simulated Start Date | ||
| MaintOrdOpSimulatedEndDate | MaintOrdOpSimulatedEndDate | Simulated End Date | ||
| ProcessingStatus | ProcessingStatus | Worklist Status | ||
| MaintPriority | MaintPriority | Priority | ||
| MaintPriorityType | MaintPriorityType | PriorityType | ||
| MaintPriorityColorCode | MaintPriorityColorCode | |||
| OrderType | OrderType | Order Type | ||
| ActivityType | ActivityType | Activity Type | ||
| OperationControlKey | P_RSHSmltdOpInSeconds | OperationControlKey | Control Key | |
| MaintOrdOpSimulationStatus | MaintOrdOpSimulationStatus | Technical Status | ||
| NumberOfCapacities | P_RSHSmltdOpInSeconds | NumberOfCapacities | Number | |
| TotOperatingDurationInSeconds | WorkCenterCapacity | TotOperatingDurationInSeconds | ||
| MaintSchedSimlnUUID | UUID | |||
| KEY | MaintenanceOrder | P_RSHSmltdOpInSeconds | MaintenanceOrder | Order |
| KEY | MaintenanceOrderOperation | P_RSHSmltdOpInSeconds | MaintenanceOrderOperation | Suboperation |
| KEY | MaintenanceOrderSubOperation | P_RSHSmltdOpInSeconds | MaintenanceOrderSubOperation | Suboperation |
| KEY | CalendarDate | P_RSHSmltdOpInSeconds | ConsumingStartDate | |
| KEY | CapacityStartTime | 0 | ||
| WorkCenterInternalId | P_RSHSmltdOpInSeconds | WorkCenterInternalID | Work Center | |
| CapacityInternalID | I_RSHAssignedWorkCenters | CapacityInternalID | Capacity ID | |
| WorkCenter | I_RSHAssignedWorkCenters | WorkCenter | Work Center | |
| WorkCenterCategoryCode | I_RSHAssignedWorkCenters | WorkCenterCategoryCode | ||
| WorkCenterTypeCode | I_RSHAssignedWorkCenters | WorkCenterTypeCode | Object Type | |
| Plant | I_RSHAssignedWorkCenters | Plant | Valuation Area | |
| OperationPlannedWork | OperationPlannedWork | |||
| OperationDuration | OperationDuration | |||
| MaintOrdOpSimulatedStartDate | MaintOrdOpSimulatedStartDate | Simulated Start Date | ||
| MaintOrdOpSimulatedEndDate | MaintOrdOpSimulatedEndDate | Simulated End Date | ||
| ProcessingStatus | ProcessingStatus | Worklist Status | ||
| MaintPriority | MaintPriority | Priority | ||
| MaintPriorityType | MaintPriorityType | PriorityType | ||
| MaintPriorityColorCode | MaintPriorityColorCode | |||
| OrderType | OrderType | Order Type | ||
| ActivityType | ActivityType | Activity Type | ||
| OperationControlKey | OperationControlKey | Control Key | ||
| MaintOrdOpSimulationStatus | MaintOrdOpSimulationStatus | Technical Status | ||
| NumberOfCapacities | P_RSHSmltdOpInSeconds | NumberOfCapacities | Number | |
| TotOperatingDurationInSeconds | 0 | |||
| CalCapacityInParallel |
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_RSHSmltdOpCapacity.
-- 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: PRSHSMLTDOPCAP
-- Parameters: P_StartDate : datum, P_EndDate : datum
CREATE VIEW P_RSHSmltdOpCapacity AS
SELECT
SimulatedOperations.MaintSchedSimlnUUID AS MaintSchedSimlnUUID,
SimulatedOperations.MaintenanceOrder AS MaintenanceOrder,
SimulatedOperations.MaintenanceOrderOperation AS MaintenanceOrderOperation,
SimulatedOperations.MaintenanceOrderSubOperation AS MaintenanceOrderSubOperation,
WorkCenterCapacity.CalendarDate AS CalendarDate,
WorkCenterCapacity.CapacityStartTime AS CapacityStartTime,
SimulatedOperations.WorkCenterInternalID AS WorkCenterInternalId,
WorkCenterCapacity.CapacityInternalID AS CapacityInternalID,
WorkCenterCapacity.WorkCenter AS WorkCenter,
WorkCenterCapacity.WorkCenterCategoryCode AS WorkCenterCategoryCode,
WorkCenterCapacity.WorkCenterTypeCode AS WorkCenterTypeCode,
WorkCenterCapacity.Plant AS Plant,
OperationPlannedWork,
OperationDuration,
MaintOrdOpSimulatedStartDate,
MaintOrdOpSimulatedEndDate,
ProcessingStatus,
MaintPriority,
MaintPriorityType,
MaintPriorityColorCode,
OrderType,
ActivityType,
SimulatedOperations.OperationControlKey AS OperationControlKey,
MaintOrdOpSimulationStatus,
SimulatedOperations.NumberOfCapacities AS NumberOfCapacities,
WorkCenterCapacity.TotOperatingDurationInSeconds AS TotOperatingDurationInSeconds,
cast ( OperationPlannedWork as abap.fltp ) AS CalCapacityInParallel
FROM P_RSHSmltdOpInSeconds AS SimulatedOperations
INNER JOIN P_RSHWCCapPerWorkDayForPeriod ON /* join condition not captured in parsed metadata */
INNER JOIN I_RSHAssignedWorkCenters AS WorkCenterDetails ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_RSHSmltdOpInSeconds
;
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