I_Capacity
Capacity Header
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).
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 | |
| Plant | kako | werks | ||
| Capacity | kako | name | ||
| CapacityCategoryCode | ||||
| CapacityActiveVersion | kako | versa | ||
| CapacityIsFinite | kako | kapter | ||
| CapacityIsPooled | kako | poolk | ||
| CapacityHasIndivCapacities | kako | mehr | ||
| CapacityIsExcldFrmLongTermPlng | kako | kaplpl | ||
| CapacityNumberOfCapacities | kako | aznor | ||
| CapacityResponsiblePlanner | kako | planr | ||
| CapacityPlanUtilizationPercent | kako | ngrad | ||
| CapacityBreakDuration | kako | pause | ||
| CapIsUsedInMultiOperations | ||||
| ReferencedCapacityInternalID | ||||
| CapOverloadThresholdInPercent | kako | ueberlast | ||
| FactoryCalendar | kako | kalid | ||
| brgruasAuthorizationGroup | ||||
| ShiftGroup | kako | mosid | ||
| CapacityStartTime | kako | begzt | ||
| CapacityEndTime | kako | endzt | ||
| CapacityStartTimeID | ||||
| CapacityEndTimeID | ||||
| CapacityQuantityUnit | kako | kapeh | ||
| CapacityBaseQtyUnit | kako | meins | ||
| ResourceType | kako | type | ||
| ResourceCategory | kako | restype | ||
| RsceValidityStartOffsetInDays | kako | lc_days_minus | ||
| RsceValidityEndOffsetInDays | kako | lc_days_plus | ||
| ResourceSortText | kako | sort | ||
| ResourceFinitenessLevel | kako | finity_level | ||
| ResourceIsBottleNeck | kako | is_bottleneck | ||
| RsceOverlappingActiesSync | kako | sync_start | ||
| ResourceTimeBufferQuantity | kako | buffertime | ||
| ResourceTimeBufferUnit | kako | buffertime_unit | ||
| ResourceMaxOverlapDuration | kako | min_overlap | ||
| ResourceMaxOverlapDurationUnit | kako | min_overlap_unit | ||
| ResourceIsCampaignRelevant | kako | campaign_ppds | ||
| RsceShiftsAndBreaksAreDerived | kako | tstream_external | ||
| PPDSPeriodSourceType | kako | pp_def_buckets | ||
| PPDSPeriodDurationSchema | kako | pp_bucket_schema | ||
| PPDSPeriodTimeRatioInPercent | kako | pp_bucket_fact | ||
| PPDSCapacitySupplyTimeCategory | kako | mix_plan_type | ||
| RsceHasStorCharcs | kako | storage_capable | ||
| RsceStorageQuantityDimension | kako | dim_storage | ||
| RsceStorageQuantityUnit | kako | storage_unit | ||
| RsceStorageMinProductionQty | kako | min_storage | ||
| RsceStorageMaxQuantity | kako | max_storage | ||
| RsceStorIsZeroOnNoFillPurity | kako | storage_to_zero | ||
| CapacityPlanningPeriodLotSize | kako | campaign_ppo | ||
| RsceStorHasMltplProds | kako | multiple_product | ||
| RsceStorZeroFillPurityThldQty | kako | zero_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 |
@AbapCatalog.sqlViewName: 'IPPCAPACITY'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@Analytics.dataCategory: #DIMENSION
@Analytics.dataExtraction.enabled: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #EXTRACTION_DATA_SOURCE]
@ObjectModel.representativeKey: 'CapacityInternalID'
@ObjectModel.semanticKey: ['Capacity']
@ObjectModel.usageType: {serviceQuality: #A, sizeCategory: #S, dataClass: #MASTER}
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Capacity Header'
define view I_Capacity
as select from kako as kako
association [1..1] to I_Plant as _Plant on $projection.Plant = _Plant.Plant
association [0..*] to I_CapacityText as _Text on $projection.CapacityInternalID = _Text.CapacityInternalID
association [0..*] to I_CapacityText as _ReferencedCapacityText on $projection.ReferencedCapacityInternalID = _ReferencedCapacityText.CapacityInternalID
association [1..1] to I_CapacityCategory as _CapacityCategory on $projection.CapacityCategoryCode = _CapacityCategory.CapacityCategoryCode
association [0..1] to I_CapacityRespPlanner as _CapacityResponsiblePlanner on $projection.CapacityResponsiblePlanner = _CapacityResponsiblePlanner.CapacityResponsiblePlanner
association [0..1] to I_FactoryCalendar as _FactoryCalendar on $projection.FactoryCalendar = _FactoryCalendar.FactoryCalendar
association [0..1] to I_ShiftGrouping as _ShiftGrouping on $projection.ShiftGroup = _ShiftGrouping.ShiftGrouping
association [0..1] to I_UnitOfMeasure as _CapacityQuantityUnit on $projection.CapacityQuantityUnit = _CapacityQuantityUnit.UnitOfMeasure
association [0..1] to I_UnitOfMeasure as _CapacityBaseQtyUnit on $projection.CapacityBaseQtyUnit = _CapacityBaseQtyUnit.UnitOfMeasure
association [0..1] to I_Capacity as _Capacity on $projection.ReferencedCapacityInternalID = _Capacity.CapacityInternalID
association [0..1] to I_CapacityBySemanticKey as _CapacityBySemanticKey on $projection.Plant = _CapacityBySemanticKey.Plant
and $projection.Capacity = _CapacityBySemanticKey.Capacity
association [0..1] to I_UnitOfMeasure as _ResourceTimeBufferUnit on $projection.ResourceTimeBufferUnit = _ResourceTimeBufferUnit.UnitOfMeasure
association [0..1] to I_UnitOfMeasure as _RsceMaxOverlapDurationUnit on $projection.ResourceMaxOverlapDurationUnit = _RsceMaxOverlapDurationUnit.UnitOfMeasure
association [0..1] to I_UnitOfMeasure as _RsceStorageQuantityUnit on $projection.RsceStorageQuantityUnit = _RsceStorageQuantityUnit.UnitOfMeasure
{
// Key
@ObjectModel.text.association: '_Text'
key kako.kapid as CapacityInternalID,
// Semantic Key
@ObjectModel.foreignKey.association: '_Plant'
kako.werks as Plant,
@ObjectModel.foreignKey.association: '_CapacityBySemanticKey'
kako.name as Capacity,
// Attributes
@ObjectModel.foreignKey.association: '_CapacityCategory'
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,
@ObjectModel.foreignKey.association: '_CapacityResponsiblePlanner'
kako.planr as CapacityResponsiblePlanner,
kako.ngrad as CapacityPlanUtilizationPercent,
kako.pause as CapacityBreakDuration,
cast(kako.kapavo as pph_kzavo preserving type) as CapIsUsedInMultiOperations,
@ObjectModel.text.association: '_ReferencedCapacityText'
@ObjectModel.foreignKey.association: '_Capacity'
cast(kako.refid as pph_refid preserving type) as ReferencedCapacityInternalID,
kako.ueberlast as CapOverloadThresholdInPercent,
// Assignments
@ObjectModel.foreignKey.association: '_FactoryCalendar'
kako.kalid as FactoryCalendar,
-- @ObjectModel.foreignKey.association: '_AuthorizationGroup'
kako.brgru as AuthorizationGroup,
@ObjectModel.foreignKey.association: '_ShiftGrouping'
kako.mosid as ShiftGroup,
// Times (internal in seconds)
@API.element.releaseState: #DEPRECATED
@API.element.successor: 'CapacityStartTimeID'
kako.begzt as CapacityStartTime,
@API.element.releaseState: #DEPRECATED
@API.element.successor: 'CapacityEndTimeID'
kako.endzt as CapacityEndTime,
cast(kako.begzt as vdm_begzt preserving type) as CapacityStartTimeID,
cast(kako.endzt as vdm_endzt preserving type) as CapacityEndTimeID,
// Unit of Measures
@Semantics.unitOfMeasure: true
kako.kapeh as CapacityQuantityUnit,
@Semantics.unitOfMeasure: true
kako.meins as CapacityBaseQtyUnit,
@Semantics.systemDateTime.lastChangedAt: true
case when kako.lastchange_datetime = 0 or kako.lastchange_datetime is null then
cast('20190101120000' as kap_lastchange_datetime)
else kako.lastchange_datetime end as CapacityLastChangeDateTime,
// Advanced Planning / APO Resource Attributes
//=============================================
kako.type as ResourceType,
kako.restype as ResourceCategory,
// - Planning Params / General
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,
// - Planning Params / Time-Oriented
kako.sync_start as RsceOverlappingActiesSync,
@Semantics.quantity.unitOfMeasure : 'ResourceTimeBufferUnit'
kako.buffertime as ResourceTimeBufferQuantity,
kako.buffertime_unit as ResourceTimeBufferUnit,
@Semantics.quantity.unitOfMeasure : 'ResourceMaxOverlapDurationUnit'
kako.min_overlap as ResourceMaxOverlapDuration,
kako.min_overlap_unit as ResourceMaxOverlapDurationUnit,
kako.campaign_ppds as ResourceIsCampaignRelevant,
// - Standard Capacity
kako.tstream_external as RsceShiftsAndBreaksAreDerived,
// - Standard Capacity / PPDS-Period Capacity
kako.pp_def_buckets as PPDSPeriodSourceType,
kako.pp_bucket_schema as PPDSPeriodDurationSchema,
kako.pp_bucket_fact as PPDSPeriodTimeRatioInPercent,
kako.mix_plan_type as PPDSCapacitySupplyTimeCategory,
// - Storage Chars
kako.storage_capable as RsceHasStorCharcs,
// @AbapCatalog.foreignKey.screenCheck : true
kako.dim_storage as RsceStorageQuantityDimension,
kako.storage_unit as RsceStorageQuantityUnit,
@Semantics.quantity.unitOfMeasure : 'RsceStorageQuantityUnit'
kako.min_storage as RsceStorageMinProductionQty,
@Semantics.quantity.unitOfMeasure : 'RsceStorageQuantityUnit'
kako.max_storage as RsceStorageMaxQuantity,
kako.storage_to_zero as RsceStorIsZeroOnNoFillPurity,
kako.campaign_ppo as CapacityPlanningPeriodLotSize,
kako.multiple_product as RsceStorHasMltplProds,
@Semantics.quantity.unitOfMeasure : 'RsceStorageQuantityUnit'
kako.zero_threshold as RsceStorZeroFillPurityThldQty,
//Associations
_CapacityCategory,
_FactoryCalendar,
_Plant,
_Text,
_ReferencedCapacityText,
_CapacityResponsiblePlanner,
_ShiftGrouping,
_CapacityQuantityUnit,
_CapacityBaseQtyUnit,
_CapacityBySemanticKey,
_Capacity,
_ResourceTimeBufferUnit,
_RsceMaxOverlapDurationUnit,
_RsceStorageQuantityUnit
};
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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