I_WorkCenterCapacityInterval_2
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)
| Source | Alias | Join Type |
|---|---|---|
| I_Capacity | _CapHeader | from |
| I_AvailableCapacityType | _Version | cross |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA