I_WrkCtrCapShiftIntervalTP
Work Center Shift Interval
I_WrkCtrCapShiftIntervalTP is a Transactional CDS View that provides data about "Work Center Shift Interval" in SAP S/4HANA. It reads from 1 data source (I_WorkCenterCapacityInterval) and exposes 18 fields with key fields WorkCenterInternalID, WorkCenterTypeCode, CapacityCategoryAllocation, CapacityInternalID, ValidityEndDate. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_WorkCenterCapacityInterval | _shiftInterval | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_WorkCenterCapOverviewTP | _workCenterResponsible | $projection.WorkCenterInternalID = _workCenterResponsible.WorkCenterInternalID and $projection.WorkCenterTypeCode = _workCenterResponsible.WorkCenterTypeCode and $projection.CapacityCategoryAllocation = _workCenterResponsible.CapacityCategoryAllocation and $projection.CapacityInternalID = _workCenterResponsible.CapacityInternalID |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IWCCAPINTERVALTP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| ObjectModel.modelCategory | #BUSINESS_OBJECT | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.writeDraftPersistence | CFSWCINTERVAL_D | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| EndUserText.label | Work Center Shift Interval | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkCenterInternalID | I_WorkCenterCapacityInterval | WorkCenterInternalID | |
| KEY | WorkCenterTypeCode | I_WorkCenterCapacityInterval | WorkCenterTypeCode | |
| KEY | CapacityCategoryAllocation | I_WorkCenterCapacityInterval | CapacityCategoryAllocation | |
| KEY | CapacityInternalID | I_WorkCenterCapacityInterval | CapacityInternalID | |
| KEY | ValidityEndDate | |||
| KEY | CapacityActiveVersion | |||
| ValidityEndDateForEdit | ||||
| ValidityBeginDate | ||||
| WorkDayRule | ||||
| CapacityNumberOfCapacities | ||||
| AvailableCapacityIntervalDurn | ||||
| CapacityPlanUtilizationPercent | ||||
| StdAvailableCapacityIsValid | ||||
| ShiftSequence | ||||
| IntervalStatusText | ||||
| IntervalStatusCode | ||||
| _workCenterResponsible | _workCenterResponsible | |||
| _Capacity | _Capacity |
@AbapCatalog.sqlViewName: 'IWCCAPINTERVALTP'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #TRANSACTIONAL
@ObjectModel: {
modelCategory: #BUSINESS_OBJECT,
draftEnabled: true,
writeDraftPersistence: 'CFSWCINTERVAL_D',
createEnabled: true,
updateEnabled: true,
deleteEnabled: true,
semanticKey: ['WorkCenterInternalID', 'WorkCenterTypeCode', 'CapacityCategoryAllocation' ,
'CapacityInternalID'],
representativeKey: ['CapacityActiveVersion','ValidityEndDate']
}
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #L, dataClass: #TRANSACTIONAL}
@EndUserText.label: 'Work Center Shift Interval'
@ClientHandling.algorithm: #SESSION_VARIABLE
define view I_WrkCtrCapShiftIntervalTP
as select from I_WorkCenterCapacityInterval as _shiftInterval
association [1..1] to I_WorkCenterCapOverviewTP as _workCenterResponsible
on $projection.WorkCenterInternalID = _workCenterResponsible.WorkCenterInternalID
and $projection.WorkCenterTypeCode = _workCenterResponsible.WorkCenterTypeCode
and $projection.CapacityCategoryAllocation = _workCenterResponsible.CapacityCategoryAllocation
and $projection.CapacityInternalID = _workCenterResponsible.CapacityInternalID
{
key _shiftInterval.WorkCenterInternalID,
key _shiftInterval.WorkCenterTypeCode,
key _shiftInterval.CapacityCategoryAllocation,
key _shiftInterval.CapacityInternalID,
key cast (_shiftInterval.ValidityEndDate as datub) as ValidityEndDate,
key cast(_shiftInterval.AvailableCapacityType as kapversakt) as CapacityActiveVersion,
cast (_shiftInterval.ValidityEndDate as datub) as ValidityEndDateForEdit,
cast (_shiftInterval.ValidityBeginDate as datub) as ValidityBeginDate,
cast (_shiftInterval.WorkDayRule as kapfabtag) as WorkDayRule,
cast (_shiftInterval.CapacityNumberOfCapacities as kapanzahl) as CapacityNumberOfCapacities,
cast (_shiftInterval.AvailableCapacityIntervalDurn as numc2) as AvailableCapacityIntervalDurn,
cast (_shiftInterval.CapacityPlanUtilizationPercent as nutzgrad) as CapacityPlanUtilizationPercent,
cast (_shiftInterval.StdAvailableCapacityIsValid as kap_kopf) as StdAvailableCapacityIsValid,
cast (_shiftInterval.ShiftSequence as schprog) as ShiftSequence,
cast ('' as char20 ) as IntervalStatusText,
cast ('' as cfs_interval_change_status ) as IntervalStatusCode,
@ObjectModel: {
association: {
type: [ #TO_COMPOSITION_PARENT, #TO_COMPOSITION_ROOT ]
}
}
_workCenterResponsible ,
_Capacity
}
where _shiftInterval.ValidityEndDate >= $session.system_date
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_WORKCENTERCAPACITYINTERVAL"
],
"ASSOCIATED":
[
"I_CAPACITY",
"I_WORKCENTERCAPOVERVIEWTP"
],
"BASE":
[
"I_WORKCENTERCAPACITYINTERVAL"
],
"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