I_Capacity
Capacity Header
I_Capacity (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
WorkCenterCapacity · Manufacturing
I_Capacity is a Basic CDS View (Dimension) that provides data about "Capacity Header" in SAP S/4HANA. It reads from 1 data source (kako) and exposes 66 fields with key field CapacityInternalID. It has 14 associations to related views. It is exposed through 3 OData services (UI_HCMAPPROVETIMESHEET, UI_HCMMYTIMESHEET, UI_HCMMYTIMESHEET). It is used in 2 Fiori applications: Approve Timesheets (S/4HANA / Version 4), My Timesheet (S/4HANA / Version 4).
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 in SQL Select, Data Source for Defining CDS Entities, Data Source for Data Extraction |
| Package | Manufacturing for SAP S/4HANA Cloud Private Edition |
| Description | <p>With this CDS view you can retrieve the capacity master data (table KAKO) by internal key. </p> <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>Which capacities are maintained in plant?</p></li> <li><p>Which capacities are maintained for a capacity category?</p></li> <li><p>Which factory calendar is assigned to a capacity?</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 |
|---|---|---|
| kako | kako | from |
Associations (14)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..*] | I_CapacityText | _Text | $projection.CapacityInternalID = _Text.CapacityInternalID |
| [0..*] | I_CapacityText | _ReferencedCapacityText | $projection.ReferencedCapacityInternalID = _ReferencedCapacityText.CapacityInternalID |
| [1..1] | I_CapacityCategory | _CapacityCategory | $projection.CapacityCategoryCode = _CapacityCategory.CapacityCategoryCode |
| [0..1] | I_CapacityRespPlanner | _CapacityResponsiblePlanner | $projection.CapacityResponsiblePlanner = _CapacityResponsiblePlanner.CapacityResponsiblePlanner |
| [0..1] | I_FactoryCalendar | _FactoryCalendar | $projection.FactoryCalendar = _FactoryCalendar.FactoryCalendar |
| [0..1] | I_ShiftGrouping | _ShiftGrouping | $projection.ShiftGroup = _ShiftGrouping.ShiftGrouping |
| [0..1] | I_UnitOfMeasure | _CapacityQuantityUnit | $projection.CapacityQuantityUnit = _CapacityQuantityUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _CapacityBaseQtyUnit | $projection.CapacityBaseQtyUnit = _CapacityBaseQtyUnit.UnitOfMeasure |
| [0..1] | I_Capacity | _Capacity | $projection.ReferencedCapacityInternalID = _Capacity.CapacityInternalID |
| [0..1] | I_CapacityBySemanticKey | _CapacityBySemanticKey | $projection.Plant = _CapacityBySemanticKey.Plant and $projection.Capacity = _CapacityBySemanticKey.Capacity |
| [0..1] | I_UnitOfMeasure | _ResourceTimeBufferUnit | $projection.ResourceTimeBufferUnit = _ResourceTimeBufferUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _RsceMaxOverlapDurationUnit | $projection.ResourceMaxOverlapDurationUnit = _RsceMaxOverlapDurationUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _RsceStorageQuantityUnit | $projection.RsceStorageQuantityUnit = _RsceStorageQuantityUnit.UnitOfMeasure |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPPCAPACITY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.representativeKey | CapacityInternalID | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Capacity Header | view |
OData Services (3)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| UI_HCMAPPROVETIMESHEET | UI_HCMAPPROVETIMESHEET | V2 | C1 | NOT_RELEASED |
| UI_HCMMYTIMESHEET | API_HCMMYTIMESHEET | V2 | C2 | NOT_RELEASED |
| UI_HCMMYTIMESHEET | UI_HCMMYTIMESHEET | V2 | C1 | NOT_RELEASED |
Fiori Apps (2)
| App ID | App Name | Type | Description |
|---|---|---|---|
| F2585A | Approve Timesheets (S/4HANA / Version 4) | Analytical | With this app, you as a manager can quickly view all pending approvals of your direct reports and approve timesheets using desktop or mobile devices. |
| F3074A | My Timesheet (S/4HANA / Version 4) | Transactional | You, as an employee, can use this app to manage your time entries quickly and efficiently using a desktop or a mobile device. |
Approve Timesheets (S/4HANA / Version 4)
Business Role: Manager - HR Info
With this app, you as a manager can quickly view all pending approvals of your direct reports and approve timesheets using desktop, tablet or mobile devices. This app provides the following key features: Review timesheets for all your employees and view time entry compliance at a glance. View all time entries pending approval or that have already been approved. Filter time entries based on a date range, on specific attributes, or per employee. View designation and contact information of each employee. Approve or reject records by week.
My Timesheet (S/4HANA / Version 4)
Business Role: Employee - HR Info
You, as an employee, can use this app to manage your time entries quickly and efficiently using a desktop or a mobile device. You can use this app to do the following: enter time records for the chosen personnel assignment using form entry or assignments. create or import assignments and manage them. create and manage assignment groups. use horizontal or grid view for time entries. view the calendar for a chosen month on a desktop device, and for a given week on a mobile device. copy and paste time records. access the to-do list. switch between the allowed data entry profiles for a given time entry.
Fields (66)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CapacityInternalID | kako | kapid | Capacity ID |
| Plant | kako | werks | Receiving Plant | |
| Capacity | kako | name | Capacity name | |
| CapacityCategoryCode | Capacity Category | |||
| CapacityActiveVersion | kako | versa | Active Version of Available Capacity | |
| CapacityIsFinite | kako | kapter | Indicator: Capacity Relevant to Finite Scheduling | |
| CapacityIsPooled | kako | poolk | Pooled Capacity Indicator | |
| CapacityHasIndivCapacities | kako | mehr | Has Individual Capacities | |
| CapacityIsExcldFrmLongTermPlng | kako | kaplpl | Indicator: Capacity Excluded From Long-Term Planning | |
| CapacityNumberOfCapacities | kako | aznor | Number of Individual Capacities | |
| CapacityResponsiblePlanner | kako | planr | Capacity Responsible Planner Group | |
| CapacityPlanUtilizationPercent | kako | ngrad | Capacity Utilization Ratio in Percent | |
| CapacityBreakDuration | kako | pause | Cumulative Break Duration in Seconds (internal) | |
| CapIsUsedInMultiOperations | Indicator: Several Operations Can Use Capacity | |||
| ReferencedCapacityInternalID | Referenced Capacity ID | |||
| CapOverloadThresholdInPercent | kako | ueberlast | Overload (%) | |
| FactoryCalendar | kako | kalid | Factory Calendar ID | |
| brgruasAuthorizationGroup | ||||
| ShiftGroup | kako | mosid | Grouping for Shift Definitions and Shift Sequences | |
| CapacityStartTime | kako | begzt | Start time in seconds (internal) | |
| CapacityEndTime | kako | endzt | End Time in Seconds (internal) | |
| CapacityStartTimeID | Start Time in Seconds (Internal) | |||
| CapacityEndTimeID | End Time in Seconds (Internal) | |||
| CapacityQuantityUnit | kako | kapeh | Capacity Unit of Measure | |
| CapacityBaseQtyUnit | kako | meins | Capacity Base Unit of Measure | |
| ResourceType | kako | type | Worklist Type | |
| ResourceCategory | kako | restype | Resource Category | |
| RsceValidityStartOffsetInDays | kako | lc_days_minus | Validity of Available Capacity (In Past) | |
| RsceValidityEndOffsetInDays | kako | lc_days_plus | Validity of Available Resource Capacity (In the Future) | |
| ResourceSortText | kako | sort | Freely Selectable Character Sequence for Sorting Resources | |
| ResourceFinitenessLevel | kako | finity_level | Finiteness Level of Resource | |
| ResourceIsBottleNeck | kako | is_bottleneck | This Resource is a Bottleneck Resource | |
| RsceOverlappingActiesSync | kako | sync_start | Synchronization of Activities when Overlapping Occurs | |
| ResourceTimeBufferQuantity | kako | buffertime | Resource-Dependent Time Buffer | |
| ResourceTimeBufferUnit | kako | buffertime_unit | Unit of Measurement for Time Buffer | |
| ResourceMaxOverlapDuration | kako | min_overlap | Maximum Overlap of Activities | |
| ResourceMaxOverlapDurationUnit | kako | min_overlap_unit | Unit of Measurement for Maximum Overlap of Two Activities | |
| ResourceIsCampaignRelevant | kako | campaign_ppds | Resource is Campaign-Relevant | |
| RsceShiftsAndBreaksAreDerived | kako | tstream_external | Capacity Data for Time Stream Originates in External System | |
| PPDSPeriodSourceType | kako | pp_def_buckets | Definition of PP/DS Bucket Capacity | |
| PPDSPeriodDurationSchema | kako | pp_bucket_schema | PP/DS Bucket Schema | |
| PPDSPeriodTimeRatioInPercent | kako | pp_bucket_fact | Factor: Relation. of Avl. Bucket Cap. to Avl. Time-Cont Cap. | |
| PPDSCapacitySupplyTimeCategory | kako | mix_plan_type | Finite Capacity of a Mixed Resource | |
| RsceHasStorCharcs | kako | storage_capable | Resource Has Storage Characteristics | |
| RsceStorageQuantityDimension | kako | dim_storage | Dimension of Storage Characteristic of a Resource | |
| RsceStorageQuantityUnit | kako | storage_unit | Stock Unit | |
| RsceStorageMinProductionQty | kako | min_storage | Minimum Production Quantity | |
| RsceStorageMaxQuantity | kako | max_storage | Maximum Stock Level | |
| RsceStorIsZeroOnNoFillPurity | kako | storage_to_zero | Set Remaining Fill Level to Zero | |
| CapacityPlanningPeriodLotSize | kako | campaign_ppo | Period Lot Size | |
| RsceStorHasMltplProds | kako | multiple_product | Allow Multiple Products | |
| RsceStorZeroFillPurityThldQty | kako | zero_threshold | Threshold | |
| _CapacityCategory | _CapacityCategory | |||
| _FactoryCalendar | _FactoryCalendar | |||
| _Plant | _Plant | |||
| _Text | _Text | |||
| _ReferencedCapacityText | _ReferencedCapacityText | |||
| _CapacityResponsiblePlanner | _CapacityResponsiblePlanner | |||
| _ShiftGrouping | _ShiftGrouping | |||
| _CapacityQuantityUnit | _CapacityQuantityUnit | |||
| _CapacityBaseQtyUnit | _CapacityBaseQtyUnit | |||
| _CapacityBySemanticKey | _CapacityBySemanticKey | |||
| _Capacity | _Capacity | |||
| _ResourceTimeBufferUnit | _ResourceTimeBufferUnit | |||
| _RsceMaxOverlapDurationUnit | _RsceMaxOverlapDurationUnit | |||
| _RsceStorageQuantityUnit | _RsceStorageQuantityUnit |
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_Capacity.
-- 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: IPPCAPACITY
CREATE VIEW I_Capacity AS
SELECT
kako.kapid AS CapacityInternalID,
kako.werks AS Plant,
kako.name AS Capacity,
cast(kako.kapar as pph_kapart preserving type) AS CapacityCategoryCode,
kako.versa AS CapacityActiveVersion,
kako.kapter AS CapacityIsFinite,
kako.poolk AS CapacityIsPooled,
kako.mehr AS CapacityHasIndivCapacities,
kako.kaplpl AS CapacityIsExcldFrmLongTermPlng,
kako.aznor AS CapacityNumberOfCapacities,
kako.planr AS CapacityResponsiblePlanner,
kako.ngrad AS CapacityPlanUtilizationPercent,
kako.pause AS CapacityBreakDuration,
cast(kako.kapavo as pph_kzavo preserving type) AS CapIsUsedInMultiOperations,
cast(kako.refid as pph_refid preserving type) AS ReferencedCapacityInternalID,
kako.ueberlast AS CapOverloadThresholdInPercent,
kako.kalid AS FactoryCalendar,
kako.mosid AS ShiftGroup,
kako.begzt AS CapacityStartTime,
kako.endzt AS CapacityEndTime,
cast(kako.begzt as vdm_begzt preserving type) AS CapacityStartTimeID,
cast(kako.endzt as vdm_endzt preserving type) AS CapacityEndTimeID,
kako.kapeh AS CapacityQuantityUnit,
kako.meins AS CapacityBaseQtyUnit,
kako.type AS ResourceType,
kako.restype AS ResourceCategory,
kako.lc_days_minus AS RsceValidityStartOffsetInDays,
kako.lc_days_plus AS RsceValidityEndOffsetInDays,
kako.sort AS ResourceSortText,
kako.finity_level AS ResourceFinitenessLevel,
kako.is_bottleneck AS ResourceIsBottleNeck,
kako.sync_start AS RsceOverlappingActiesSync,
kako.buffertime AS ResourceTimeBufferQuantity,
kako.buffertime_unit AS ResourceTimeBufferUnit,
kako.min_overlap AS ResourceMaxOverlapDuration,
kako.min_overlap_unit AS ResourceMaxOverlapDurationUnit,
kako.campaign_ppds AS ResourceIsCampaignRelevant,
kako.tstream_external AS RsceShiftsAndBreaksAreDerived,
kako.pp_def_buckets AS PPDSPeriodSourceType,
kako.pp_bucket_schema AS PPDSPeriodDurationSchema,
kako.pp_bucket_fact AS PPDSPeriodTimeRatioInPercent,
kako.mix_plan_type AS PPDSCapacitySupplyTimeCategory,
kako.storage_capable AS RsceHasStorCharcs,
kako.dim_storage AS RsceStorageQuantityDimension,
kako.storage_unit AS RsceStorageQuantityUnit,
kako.min_storage AS RsceStorageMinProductionQty,
kako.max_storage AS RsceStorageMaxQuantity,
kako.storage_to_zero AS RsceStorIsZeroOnNoFillPurity,
kako.campaign_ppo AS CapacityPlanningPeriodLotSize,
kako.multiple_product AS RsceStorHasMltplProds,
kako.zero_threshold AS RsceStorZeroFillPurityThldQty
FROM kako
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN I_CapacityText AS _Text ON CapacityInternalID = _Text.CapacityInternalID -- association [0..*]
LEFT OUTER JOIN I_CapacityText AS _ReferencedCapacityText ON ReferencedCapacityInternalID = _ReferencedCapacityText.CapacityInternalID -- association [0..*]
LEFT OUTER JOIN I_CapacityCategory AS _CapacityCategory ON CapacityCategoryCode = _CapacityCategory.CapacityCategoryCode -- association [1..1]
LEFT OUTER JOIN I_CapacityRespPlanner AS _CapacityResponsiblePlanner ON CapacityResponsiblePlanner = _CapacityResponsiblePlanner.CapacityResponsiblePlanner -- association [0..1]
LEFT OUTER JOIN I_FactoryCalendar AS _FactoryCalendar ON FactoryCalendar = _FactoryCalendar.FactoryCalendar -- association [0..1]
LEFT OUTER JOIN I_ShiftGrouping AS _ShiftGrouping ON ShiftGroup = _ShiftGrouping.ShiftGrouping -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _CapacityQuantityUnit ON CapacityQuantityUnit = _CapacityQuantityUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _CapacityBaseQtyUnit ON CapacityBaseQtyUnit = _CapacityBaseQtyUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_Capacity AS _Capacity ON ReferencedCapacityInternalID = _Capacity.CapacityInternalID -- association [0..1]
LEFT OUTER JOIN I_CapacityBySemanticKey AS _CapacityBySemanticKey ON Plant = _CapacityBySemanticKey.Plant AND Capacity = _CapacityBySemanticKey.Capacity -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _ResourceTimeBufferUnit ON ResourceTimeBufferUnit = _ResourceTimeBufferUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _RsceMaxOverlapDurationUnit ON ResourceMaxOverlapDurationUnit = _RsceMaxOverlapDurationUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _RsceStorageQuantityUnit ON RsceStorageQuantityUnit = _RsceStorageQuantityUnit.UnitOfMeasure -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- SAP Fiori Apps Architecture — How Fiori Apps Connect to Data
- 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