I_RSHMaintSchedWrkCtrCap
Work Center Capacity of Frozen Schedules
I_RSHMaintSchedWrkCtrCap is a Basic CDS View that provides data about "Work Center Capacity of Frozen Schedules" in SAP S/4HANA. It reads from 2 data sources (I_WorkCenter, rsh_d_mntschdwc) and exposes 11 fields with key fields MaintSchedSimlnUUID, WorkCenterInternalID. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_WorkCenter | I_WorkCenter | inner |
| rsh_d_mntschdwc | rsh_d_mntschdwc | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_RSHMaintSchedSimulation | _MaintSchedSimulation | _MaintSchedSimulation.MaintSchedSimlnUUID = $projection.MaintSchedSimlnUUID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IRSHMNTSCHWCCAP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Work Center Capacity of Frozen Schedules | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintSchedSimlnUUID | maintschedsimlnuuid | ||
| KEY | WorkCenterInternalID | rsh_d_mntschdwc | workcenterinternalid | |
| WorkCenterTypeCode | rsh_d_mntschdwc | workcentertypecode | ||
| WorkCenter | I_WorkCenter | WorkCenter | ||
| TotalPlannedCapacity | totalplannedcapacity | |||
| TotalPlannedCapacityUnit | ||||
| TotalAvailableCapacity | totalavailablecapacity | |||
| TotalAvailableCapacityUnit | ||||
| Plant | Plant | |||
| WorkCenterCategoryCode | WorkCenterCategoryCode | |||
| _MaintSchedSimulation | _MaintSchedSimulation |
@AbapCatalog.sqlViewName: 'IRSHMNTSCHWCCAP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@Metadata.ignorePropagatedAnnotations:true
@VDM.lifecycle.contract.type:#SAP_INTERNAL_API
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.sizeCategory: #XL
@VDM.viewType: #BASIC
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Work Center Capacity of Frozen Schedules'
/*
CONTRACT**********************************************************************************************************************
Name: Work Center capacity of frozen schedules
Specification: This view retrieves the snapshot of the work center capacity at the time of schedule freeze
Requires: Only the schedules that are frozen have an entry in the table
Owners: PSP
Contributors:
Unit Test required Y/N: No
Additional comments NA
END OF CONTRACT***************************************************************************************************************
*/
define view I_RSHMaintSchedWrkCtrCap
as select from rsh_d_mntschdwc
inner join I_WorkCenter on I_WorkCenter.WorkCenterInternalID = rsh_d_mntschdwc.workcenterinternalid
and I_WorkCenter.WorkCenterTypeCode = rsh_d_mntschdwc.workcentertypecode
association [1..1] to I_RSHMaintSchedSimulation as _MaintSchedSimulation on _MaintSchedSimulation.MaintSchedSimlnUUID = $projection.MaintSchedSimlnUUID
{
//rsh_d_mntschdwc
key maintschedsimlnuuid as MaintSchedSimlnUUID,
key rsh_d_mntschdwc.workcenterinternalid as WorkCenterInternalID,
rsh_d_mntschdwc.workcentertypecode as WorkCenterTypeCode,
I_WorkCenter.WorkCenter as WorkCenter,
@Semantics.quantity.unitOfMeasure: 'TotalPlannedCapacityUnit'
totalplannedcapacity as TotalPlannedCapacity,
//Mandatory since planned capacity is a declared as a field of type 'quantity' in GFC
cast('s' as unit) as TotalPlannedCapacityUnit,
@Semantics.quantity.unitOfMeasure: 'TotalAvailableCapacityUnit'
totalavailablecapacity as TotalAvailableCapacity,
//Mandatory since available capacity is a declared as a field of type 'quantity' in GFC
cast('s' as unit) as TotalAvailableCapacityUnit,
Plant,
WorkCenterCategoryCode,
@ObjectModel.association.type: [ #TO_COMPOSITION_ROOT, #TO_COMPOSITION_PARENT ]
_MaintSchedSimulation
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_WORKCENTER",
"RSH_D_MNTSCHDWC"
],
"ASSOCIATED":
[
"I_RSHMAINTSCHEDSIMULATION"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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