I_AvailableCapacityShift
Available Capacity Shift
I_AvailableCapacityShift (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Manufacturing
I_AvailableCapacityShift is a Basic CDS View (Dimension) that provides data about "Available Capacity Shift" in SAP S/4HANA. It reads from 1 data source (kapa) and exposes 20 fields with key fields CapacityInternalID, AvailableCapacityType, ValidityEndDate, WeekDay. It has 6 associations to related views.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Manufacturing |
| Application Component | PP-VDM-MD |
| Capabilities | Association Target for Defining CDS Entities, Analytical Dimension, Data Source for Defining CDS Entities, Data Source in SQL Select |
| Package | Manufacturing for SAP S/4HANA Cloud Private Edition |
| Description | <p>With this CDS view you can retrieve the available capacity shift data (table KAPA) . </p> <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>Which available capacity shifts exist?</p></li> <li><p>What is validity end date of an available capacity shift?</p></li> <li><p>What are the operating and break times (durations) of an available capacity shift?</p></li> <li><p>To which weekday belongs an available capacity shift?</p></li> <li><p>Which shift definition is assigned to an available capacity shift?</p></li> </ul> |
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 (1)
| Source | Alias | Join Type |
|---|---|---|
| kapa | kapa | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Capacity | _Capacity | $projection.CapacityInternalID = _Capacity.CapacityInternalID |
| [1..1] | I_AvailableCapacityType | _AvailableCapacityType | $projection.AvailableCapacityType = _AvailableCapacityType.AvailableCapacityType |
| [1..1] | I_CalendarDate | _EndDate | $projection.ValidityEndDate = _EndDate.CalendarDate |
| [1..1] | I_WeekDay | _WeekDay | $projection.WeekDay = _WeekDay.WeekDay |
| [0..1] | I_WorkDayRule | _WorkDayRule | $projection.WorkDayRule = _WorkDayRule.WorkDayRule |
| [0..*] | I_ShiftDefinition | _ShiftDefinition | $projection.ShiftDefinition = _ShiftDefinition.ShiftDefinition |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPPAVAILCAPSHIFT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.representativeKey | AvailableCapacityShift | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Available Capacity Shift | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CapacityInternalID | kapa | kapid | Capacity ID |
| KEY | AvailableCapacityType | kapa | versn | Available capacity version |
| KEY | ValidityEndDate | kapa | datub | Valid to |
| KEY | WeekDay | Week Day | ||
| schnrasAvailableCapacityShift | ||||
| CapacityNumberOfCapacities | kapa | anzhl | Number of Individual Capacities | |
| WorkDayRule | Workday Rule Code | |||
| ShiftDefinition | kapa | tprog | Shift Definition | |
| CapacityPlanUtilizationPercent | kapa | ngrad | Capacity Utilization Ratio in Percent | |
| CapacityStartTimeID | kapa | begzt | Start time in seconds (internal) | |
| CapacityEndTimeID | kapa | endzt | End Time in Seconds (internal) | |
| OperatingDurationInSeconds | kapa | einzt | Operating Duration in Seconds | |
| BreakDurationInSeconds | kapa | pause | Cumulative Break Duration in Seconds (internal) | |
| TotOperatingDurationInSeconds | kapa | kapaz | Max. capacity | |
| _Capacity | _Capacity | |||
| _AvailableCapacityType | _AvailableCapacityType | |||
| _EndDate | _EndDate | |||
| _WeekDay | _WeekDay | |||
| _WorkDayRule | _WorkDayRule | |||
| _ShiftDefinition | _ShiftDefinition |
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_AvailableCapacityShift.
-- 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: IPPAVAILCAPSHIFT
CREATE VIEW I_AvailableCapacityShift AS
SELECT
kapa.kapid AS CapacityInternalID,
kapa.versn AS AvailableCapacityType,
kapa.datub AS ValidityEndDate,
cast(substring (kapa.tagnr, 3, 1) as vdm_weekday) AS WeekDay,
kapa.anzhl AS CapacityNumberOfCapacities,
cast(kapa.fabtg as workdayrule preserving type) AS WorkDayRule,
kapa.tprog AS ShiftDefinition,
kapa.ngrad AS CapacityPlanUtilizationPercent,
kapa.begzt AS CapacityStartTimeID,
kapa.endzt AS CapacityEndTimeID,
kapa.einzt AS OperatingDurationInSeconds,
kapa.pause AS BreakDurationInSeconds,
kapa.kapaz AS TotOperatingDurationInSeconds
FROM kapa
LEFT OUTER JOIN I_Capacity AS _Capacity ON CapacityInternalID = _Capacity.CapacityInternalID -- association [1..1]
LEFT OUTER JOIN I_AvailableCapacityType AS _AvailableCapacityType ON AvailableCapacityType = _AvailableCapacityType.AvailableCapacityType -- association [1..1]
LEFT OUTER JOIN I_CalendarDate AS _EndDate ON ValidityEndDate = _EndDate.CalendarDate -- association [1..1]
LEFT OUTER JOIN I_WeekDay AS _WeekDay ON WeekDay = _WeekDay.WeekDay -- association [1..1]
LEFT OUTER JOIN I_WorkDayRule AS _WorkDayRule ON WorkDayRule = _WorkDayRule.WorkDayRule -- association [0..1]
LEFT OUTER JOIN I_ShiftDefinition AS _ShiftDefinition ON ShiftDefinition = _ShiftDefinition.ShiftDefinition -- association [0..*]
;
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