R_WorkCenterCapacityShiftTP
Capacity Shift
R_WorkCenterCapacityShiftTP is a Transactional CDS View that provides data about "Capacity Shift" in SAP S/4HANA. It reads from 1 data source (I_WorkCenterCapacityShift_3) and exposes 23 fields with key fields WorkCenterInternalID, WorkCenterTypeCode, CapacityCategoryAllocation, CapacityInternalID, CapacityActiveVersion.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_WorkCenterCapacityShift_3 | I_WorkCenterCapacityShift_3 | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Capacity Shift | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkCenterInternalID | WorkCenterInternalID | ||
| KEY | WorkCenterTypeCode | WorkCenterTypeCode | ||
| KEY | CapacityCategoryAllocation | CapacityCategoryAllocation | ||
| KEY | CapacityInternalID | CapacityInternalID | ||
| KEY | CapacityActiveVersion | CapacityActiveVersion | ||
| KEY | IntervalEndDate | IntervalEndDate | ||
| KEY | WeekDay | WeekDay | ||
| KEY | AvailableCapacityShift | |||
| IntervalStartDate | IntervalStartDate | |||
| WorkDayRule | WorkDayRule | |||
| ShiftDefinition | ShiftDefinition | |||
| ShiftStartTime | ShiftStartTime | |||
| ShiftEndTime | ShiftEndTime | |||
| ShiftDefValidityStartDate | ShiftDefValidityStartDate | |||
| ShiftDefValidityEndDate | ShiftDefValidityEndDate | |||
| CapacityNumberOfCapacities | CapacityNumberOfCapacities | |||
| CapacityPlanUtilizationPercent | CapacityPlanUtilizationPercent | |||
| CapacityBreakDuration | CapacityBreakDuration | |||
| OperatingDurationInSeconds | OperatingDurationInSeconds | |||
| TotOperatingDurationInSeconds | TotOperatingDurationInSeconds | |||
| CapacityLastChangeDateTime | CapacityLastChangeDateTime | |||
| _Interval | _Interval | |||
| _Header | _Header |
//@AbapCatalog.sqlViewName: 'RWKCCAPSHIFTTP'
//@AbapCatalog.compiler.compareFilter: true
//@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Capacity Shift'
//@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: { serviceQuality: #C, sizeCategory: #M, dataClass: #MASTER }
@VDM: { viewType: #TRANSACTIONAL, lifecycle.contract.type: #SAP_INTERNAL_API }
define view entity R_WorkCenterCapacityShiftTP
as select from I_WorkCenterCapacityShift_3
association to parent R_WorkCenterCapacityIntervalTP as _Interval on $projection.CapacityInternalID = _Interval.CapacityInternalID
and $projection.CapacityActiveVersion = _Interval.CapacityActiveVersion
and $projection.CapacityCategoryAllocation = _Interval.CapacityCategoryAllocation
and $projection.IntervalEndDate = _Interval.IntervalEndDate
and $projection.WorkCenterInternalID = _Interval.WorkCenterInternalID
and $projection.WorkCenterTypeCode = _Interval.WorkCenterTypeCode
/*Association To Header*/
association to R_WorkCenterTP as _Header on $projection.WorkCenterInternalID = _Header.WorkCenterInternalID
and $projection.WorkCenterTypeCode = _Header.WorkCenterTypeCode
{
//I_WorkCenterCapacityShift_3
key WorkCenterInternalID,
key WorkCenterTypeCode,
key CapacityCategoryAllocation,
key CapacityInternalID,
key CapacityActiveVersion,
key IntervalEndDate,
key WeekDay,
key cast(coalesce(AvailableCapacityShift,'0')as schichtnr preserving type ) as AvailableCapacityShift,
IntervalStartDate,
WorkDayRule,
ShiftDefinition,
ShiftStartTime,
ShiftEndTime,
ShiftDefValidityStartDate,
ShiftDefValidityEndDate,
CapacityNumberOfCapacities,
CapacityPlanUtilizationPercent,
CapacityBreakDuration,
OperatingDurationInSeconds,
TotOperatingDurationInSeconds,
CapacityLastChangeDateTime,
/* Associations */
@Consumption.hidden: true
_Interval,
_Header
}
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