R_WorkCenterPooledCapShiftTP

DDL: R_WORKCENTERPOOLEDCAPSHIFTTP SQL: RWRKCTRCAPSHFTTP Type: view_entity TRANSACTIONAL

Work Center Pooled Capacity Shift

R_WorkCenterPooledCapShiftTP is a Transactional CDS View that provides data about "Work Center Pooled Capacity Shift" in SAP S/4HANA. It reads from 2 data sources (I_WorkCenterPooledCapacity, I_WorkCenterCapacityShift_2) and exposes 20 fields with key fields CapacityInternalID, CapacityActiveVersion, IntervalEndDate, WeekDay, AvailableCapacityShift.

Data Sources (2)

SourceAliasJoin Type
I_WorkCenterPooledCapacity _PooledCapHeader inner
I_WorkCenterCapacityShift_2 _Shift from

Annotations (7)

NameValueLevelField
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
AccessControl.authorizationCheck #CHECK view
EndUserText.label Work Center Pooled Capacity Shift view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY CapacityInternalID I_WorkCenterCapacityShift_2 CapacityInternalID
KEY CapacityActiveVersion I_WorkCenterCapacityShift_2 CapacityActiveVersion
KEY IntervalEndDate I_WorkCenterCapacityShift_2 IntervalEndDate
KEY WeekDay I_WorkCenterCapacityShift_2 WeekDay
KEY AvailableCapacityShift
IntervalStartDate I_WorkCenterCapacityShift_2 IntervalStartDate
WorkDayRule I_WorkCenterCapacityShift_2 WorkDayRule
ShiftDefinition I_WorkCenterCapacityShift_2 ShiftDefinition
ShiftStartTime I_WorkCenterCapacityShift_2 ShiftStartTime
ShiftEndTime I_WorkCenterCapacityShift_2 ShiftEndTime
ShiftDefValidityStartDate I_WorkCenterCapacityShift_2 ShiftDefValidityStartDate
ShiftDefValidityEndDate I_WorkCenterCapacityShift_2 ShiftDefValidityEndDate
CapacityNumberOfCapacities I_WorkCenterCapacityShift_2 CapacityNumberOfCapacities
CapacityPlanUtilizationPercent I_WorkCenterCapacityShift_2 CapacityPlanUtilizationPercent
CapacityBreakDuration I_WorkCenterCapacityShift_2 CapacityBreakDuration
OperatingDurationInSeconds I_WorkCenterCapacityShift_2 OperatingDurationInSeconds
TotOperatingDurationInSeconds I_WorkCenterCapacityShift_2 TotOperatingDurationInSeconds
CapacityLastChangeDateTime I_WorkCenterCapacityShift_2 CapacityLastChangeDateTime
_Interval _Interval
_Header _Header
//@AbapCatalog.sqlViewName: 'RWRKCTRCAPSHFTTP'

//@AbapCatalog.compiler.compareFilter: true

//@AbapCatalog.preserveKey: true

//@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel.usageType: { serviceQuality: #C, sizeCategory: #M, dataClass: #MASTER }
@VDM: { viewType: #TRANSACTIONAL, lifecycle.contract.type: #SAP_INTERNAL_API }
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Work Center Pooled Capacity Shift'
define view entity R_WorkCenterPooledCapShiftTP
  as select from I_WorkCenterCapacityShift_2 as _Shift
    inner join   I_WorkCenterPooledCapacity  as _PooledCapHeader on _Shift.CapacityInternalID = _PooledCapHeader.CapacityInternalID
  association to R_WorkCenterPooledCapacityTP       as _Header   on  $projection.CapacityInternalID = _Header.CapacityInternalID
  association to parent R_WrkCtrPooledCapIntervalTP as _Interval on  $projection.CapacityInternalID    = _Interval.CapacityInternalID
                                                                 and $projection.CapacityActiveVersion = _Interval.CapacityActiveVersion
                                                                 and $projection.IntervalEndDate       = _Interval.IntervalEndDate
{
  key _Shift.CapacityInternalID,
  key _Shift.CapacityActiveVersion,
  key _Shift.IntervalEndDate,
  key _Shift.WeekDay,
  key cast(coalesce(_Shift.AvailableCapacityShift,'0')as schichtnr preserving type ) as AvailableCapacityShift,
      _Shift.IntervalStartDate,
      _Shift.WorkDayRule,
      _Shift.ShiftDefinition,
      _Shift.ShiftStartTime,
      _Shift.ShiftEndTime,
      _Shift.ShiftDefValidityStartDate,
      _Shift.ShiftDefValidityEndDate,
      _Shift.CapacityNumberOfCapacities,
      _Shift.CapacityPlanUtilizationPercent,
      _Shift.CapacityBreakDuration,
      _Shift.OperatingDurationInSeconds,
      _Shift.TotOperatingDurationInSeconds,
      _Shift.CapacityLastChangeDateTime,
      /* Associations */
      _Interval,
      _Header
}