I_WrkCtrCapShiftIntervalTP

DDL: I_WRKCTRCAPSHIFTINTERVALTP SQL: IWCCAPINTERVALTP Type: view TRANSACTIONAL

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)

SourceAliasJoin Type
I_WorkCenterCapacityInterval _shiftInterval from

Associations (1)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
KEY WorkCenterInternalID I_WorkCenterCapacityInterval WorkCenterInternalID Work Center
KEY WorkCenterTypeCode I_WorkCenterCapacityInterval WorkCenterTypeCode Object Type
KEY CapacityCategoryAllocation I_WorkCenterCapacityInterval CapacityCategoryAllocation
KEY CapacityInternalID I_WorkCenterCapacityInterval CapacityInternalID Capacity ID
KEY ValidityEndDate
KEY CapacityActiveVersion
ValidityEndDateForEdit
ValidityBeginDate
WorkDayRule
CapacityNumberOfCapacities
AvailableCapacityIntervalDurn
CapacityPlanUtilizationPercent
StdAvailableCapacityIsValid
ShiftSequence
IntervalStatusText
IntervalStatusCode
_workCenterResponsible _workCenterResponsible
_Capacity _Capacity

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 I_WrkCtrCapShiftIntervalTP.
-- 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: IWCCAPINTERVALTP

CREATE VIEW I_WrkCtrCapShiftIntervalTP AS
SELECT
  _shiftInterval.WorkCenterInternalID AS WorkCenterInternalID,
  _shiftInterval.WorkCenterTypeCode AS WorkCenterTypeCode,
  _shiftInterval.CapacityCategoryAllocation AS CapacityCategoryAllocation,
  _shiftInterval.CapacityInternalID AS CapacityInternalID,
  cast (_shiftInterval.ValidityEndDate as datub) AS ValidityEndDate,
  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
FROM I_WorkCenterCapacityInterval AS _shiftInterval
LEFT OUTER JOIN I_WorkCenterCapOverviewTP AS _workCenterResponsible ON WorkCenterInternalID = _workCenterResponsible.WorkCenterInternalID AND WorkCenterTypeCode = _workCenterResponsible.WorkCenterTypeCode AND CapacityCategoryAllocation = _workCenterResponsible.CapacityCategoryAllocation AND CapacityInternalID = _workCenterResponsible.CapacityInternalID  -- association [1..1]
;