I_WorkCenterCapacityInterval_2

DDL: I_WORKCENTERCAPACITYINTERVAL_2 Type: view_entity COMPOSITE Package: ODATA_PP_WORKCENTER_API

Work Center Capacity Intervals 2

I_WorkCenterCapacityInterval_2 is a Composite CDS View that provides data about "Work Center Capacity Intervals 2" in SAP S/4HANA. It reads from 2 data sources (I_Capacity, I_AvailableCapacityType) and exposes 9 fields with key fields CapacityInternalID, CapacityActiveVersion, IntervalEndDate. It has 3 associations to related views. Part of development package ODATA_PP_WORKCENTER_API.

Data Sources (2)

SourceAliasJoin Type
I_Capacity _CapHeader from
I_AvailableCapacityType _Version cross

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_Capacity _Capacity $projection.CapacityInternalID = _Capacity.CapacityInternalID
[1..1] I_AvailableCapacityType _AvailableCapacityType $projection.CapacityActiveVersion = _AvailableCapacityType.AvailableCapacityType
[0..1] I_WorkDayRule _WorkDayRule $projection.WorkDayRule = _WorkDayRule.WorkDayRule

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Work Center Capacity Intervals 2 view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY CapacityInternalID I_Capacity CapacityInternalID Capacity ID
KEY CapacityActiveVersion
KEY IntervalEndDate
ShiftSequence
WorkDayRule
CapacityNumberOfShifts
_Capacity _Capacity
_AvailableCapacityType _AvailableCapacityType
_WorkDayRule _WorkDayRule

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_WorkCenterCapacityInterval_2.
-- 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.

CREATE VIEW I_WorkCenterCapacityInterval_2 AS
SELECT
  _CapHeader.CapacityInternalID AS CapacityInternalID,
  cast(coalesce(_Interval.AvailableCapacityType, _Version.AvailableCapacityType ) as kapversion preserving type ) AS CapacityActiveVersion,
  cast(coalesce(_Interval.ValidityEndDate, '99991231' ) as datub preserving type ) AS IntervalEndDate,
  cast(coalesce(_Interval.ShiftSequence, ' ' ) as schprog preserving type ) AS ShiftSequence,
  cast(coalesce(_Interval.WorkDayRule, ' ') as workdayrule) AS WorkDayRule,
  cast(coalesce(_Interval.CapacityNumberOfShifts, '1' ) as anzschicht preserving type ) AS CapacityNumberOfShifts
FROM I_Capacity AS _CapHeader
CROSS JOIN I_AvailableCapacityType AS _Version
LEFT OUTER JOIN I_Capacity AS _Capacity ON CapacityInternalID = _Capacity.CapacityInternalID  -- association [1..1]
LEFT OUTER JOIN I_AvailableCapacityType AS _AvailableCapacityType ON CapacityActiveVersion = _AvailableCapacityType.AvailableCapacityType  -- association [1..1]
LEFT OUTER JOIN I_WorkDayRule AS _WorkDayRule ON WorkDayRule = _WorkDayRule.WorkDayRule  -- association [0..1]
;