I_Capacity

DDL: I_CAPACITY SQL: IPPCAPACITY Type: view BASIC Package: VDM_PP_MD_WKC

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. Part of development package VDM_PP_MD_WKC.

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 (18)

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
ObjectModel.sapObjectNodeType.name WorkCenterCapacity view

Fields (66)

KeyFieldSource TableSource FieldDescription
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'
@ObjectModel.sapObjectNodeType.name: 'WorkCenterCapacity'
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
};