I_Capacity

DDL: I_CAPACITY SQL: IPPCAPACITY Type: view BASIC

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

StateC1
Line of BusinessManufacturing
Application ComponentPP-VDM-MD
CapabilitiesAssociation Target for Defining CDS Entities, Analytical Dimension, Data Source in SQL Select, Data Source for Defining CDS Entities, Data Source for Data Extraction
PackageManufacturing 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

Data Sources (1)

SourceAliasJoin Type
kako kako from

Associations (14)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

ServiceBindingVersionContractRelease
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 IDApp NameTypeDescription
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)

KeyFieldSource TableSource FieldDescription
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]
;