I_CapacityShift
Ent Resource Capacity Interval Shift
I_CapacityShift (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
EntRsceCapacityIntervalShift · Manufacturing
I_CapacityShift is a Composite CDS View (Dimension) that provides data about "Ent Resource Capacity Interval Shift" in SAP S/4HANA. It reads from 2 data sources (I_CapacityBasic, I_WorkCenterCapacityShift_2) and exposes 23 fields with key fields CapacityInternalID, CapacityActiveVersion, IntervalEndDate, WeekDay, AvailableCapacityShift. It has 1 association to related views.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Manufacturing |
| Application Component | PP-VDM-MD |
| Capabilities | Analytical Dimension, Association Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Defining CDS Entities, Data Source for Data Extraction |
| Package | Manufacturing for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CapacityBasic | PooledCapHeader | inner |
| I_WorkCenterCapacityShift_2 | Shift | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CapacityBasic | _EntRsceCapacity | $projection.CapacityInternalID = _EntRsceCapacity.CapacityInternalID |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Ent Resource Capacity Interval Shift | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.internalName | #LOCAL | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.representativeKey | AvailableCapacityShift | view | |
| ObjectModel.sapObjectNodeType.name | EntRsceCapacityIntervalShift | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CapacityInternalID | I_WorkCenterCapacityShift_2 | CapacityInternalID | Capacity ID |
| KEY | CapacityActiveVersion | I_WorkCenterCapacityShift_2 | CapacityActiveVersion | Available capacity version |
| KEY | IntervalEndDate | I_WorkCenterCapacityShift_2 | IntervalEndDate | Valid-to date |
| KEY | WeekDay | I_WorkCenterCapacityShift_2 | WeekDay | Weekdays |
| KEY | AvailableCapacityShift | Shift Number of an Available Capacity | ||
| IntervalStartDate | I_WorkCenterCapacityShift_2 | IntervalStartDate | Valid-From Date | |
| WorkDayRule | I_WorkCenterCapacityShift_2 | WorkDayRule | Recurrence Weekdays | |
| ShiftDefinition | I_WorkCenterCapacityShift_2 | ShiftDefinition | Shift Definition | |
| ShiftStartTime | I_WorkCenterCapacityShift_2 | ShiftStartTime | Start Time | |
| ShiftEndTime | I_WorkCenterCapacityShift_2 | ShiftEndTime | End Time | |
| ShiftDefValidityStartDate | I_WorkCenterCapacityShift_2 | ShiftDefValidityStartDate | Start Date | |
| ShiftDefValidityEndDate | I_WorkCenterCapacityShift_2 | ShiftDefValidityEndDate | End Date | |
| CapacityNumberOfCapacities | I_WorkCenterCapacityShift_2 | CapacityNumberOfCapacities | Number of Individual Capacities | |
| CapacityPlanUtilizationPercent | I_WorkCenterCapacityShift_2 | CapacityPlanUtilizationPercent | Capacity Utilization Ratio in Percent | |
| CapacityBreakDuration | I_WorkCenterCapacityShift_2 | CapacityBreakDuration | Cumulative Break Duration in Seconds (internal) | |
| OperatingDurationInSeconds | I_WorkCenterCapacityShift_2 | OperatingDurationInSeconds | Operating Duration in Seconds | |
| TotOperatingDurationInSeconds | I_WorkCenterCapacityShift_2 | TotOperatingDurationInSeconds | Total Operating Duration In Seconds | |
| CapacityLastChangeDateTime | I_WorkCenterCapacityShift_2 | CapacityLastChangeDateTime | Capacity Last Change Date Time | |
| _Capacity | I_WorkCenterCapacityShift_2 | _Capacity | ||
| _EntRsceCapacity | _EntRsceCapacity | |||
| _AvailableCapacityType | I_WorkCenterCapacityShift_2 | _AvailableCapacityType | ||
| _EndDate | I_WorkCenterCapacityShift_2 | _EndDate | ||
| _WeekDay | I_WorkCenterCapacityShift_2 | _WeekDay |
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_CapacityShift.
-- 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_CapacityShift AS
SELECT
Shift.CapacityInternalID AS CapacityInternalID,
Shift.CapacityActiveVersion AS CapacityActiveVersion,
Shift.IntervalEndDate AS IntervalEndDate,
Shift.WeekDay AS WeekDay,
cast(coalesce(Shift.AvailableCapacityShift,'0')as schichtnr preserving type ) AS AvailableCapacityShift,
Shift.IntervalStartDate AS IntervalStartDate,
Shift.WorkDayRule AS WorkDayRule,
Shift.ShiftDefinition AS ShiftDefinition,
Shift.ShiftStartTime AS ShiftStartTime,
Shift.ShiftEndTime AS ShiftEndTime,
Shift.ShiftDefValidityStartDate AS ShiftDefValidityStartDate,
Shift.ShiftDefValidityEndDate AS ShiftDefValidityEndDate,
Shift.CapacityNumberOfCapacities AS CapacityNumberOfCapacities,
Shift.CapacityPlanUtilizationPercent AS CapacityPlanUtilizationPercent,
Shift.CapacityBreakDuration AS CapacityBreakDuration,
Shift.OperatingDurationInSeconds AS OperatingDurationInSeconds,
Shift.TotOperatingDurationInSeconds AS TotOperatingDurationInSeconds,
Shift.CapacityLastChangeDateTime AS CapacityLastChangeDateTime,
Shift._Capacity AS _Capacity,
Shift._AvailableCapacityType AS _AvailableCapacityType,
Shift._EndDate AS _EndDate,
Shift._WeekDay AS _WeekDay
FROM I_WorkCenterCapacityShift_2 AS Shift
INNER JOIN I_CapacityBasic AS PooledCapHeader ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CapacityBasic AS _EntRsceCapacity ON CapacityInternalID = _EntRsceCapacity.CapacityInternalID -- association [1..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