I_WorkCenterCostCenter

DDL: I_WORKCENTERCOSTCENTER SQL: IPPWRKCNTRCOSTC Type: view BASIC

Work Center Cost Center

I_WorkCenterCostCenter is a Basic CDS View (Dimension) that provides data about "Work Center Cost Center" in SAP S/4HANA. It reads from 1 data source (crco) and exposes 36 fields with key fields WorkCenterInternalID, WorkCenterTypeCode, CostCenterAllocation, ValidityEndDate. It has 16 associations to related views.

Data Sources (1)

SourceAliasJoin Type
crco crco from

Associations (16)

CardinalityTargetAliasCondition
[1..1] I_WorkCenter _WorkCenter $projection.WorkCenterTypeCode = _WorkCenter.WorkCenterTypeCode and $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID
[1..1] I_WorkCenterType _WorkCenterTypeCode $projection.WorkCenterTypeCode = _WorkCenterTypeCode.WorkCenterTypeCode
[1..1] I_WorkCenterCategory _WorkCenterCategory $projection.workcentercategorycode = _WorkCenterCategory.WorkCenterCategoryCode
[1..1] I_Plant _Plant $projection.plant = _Plant.Plant
[0..1] I_CalendarDate _StartDate $projection.ValidityStartDate = _StartDate.CalendarDate
[1..1] I_CalendarDate _EndDate $projection.ValidityEndDate = _EndDate.CalendarDate
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID
[1..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[1..1] I_CostCenter _CostCenter $projection.ControllingArea = _CostCenter.ControllingArea and $projection.CostCenter = _CostCenter.CostCenter and $projection.ValidityEndDate = _CostCenter.ValidityEndDate
[0..1] I_CostCenterActivityType _ActivityType $projection.ControllingArea = _ActivityType.ControllingArea and $projection.CostCtrActivityType = _ActivityType.CostCtrActivityType and $projection.ValidityEndDate = _ActivityType.ValidityEndDate
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.CostCtrActivityTypeQtyUnit = _UnitOfMeasure.UnitOfMeasure
[0..1] I_BusinessProcess _BusinessProcess $projection.ControllingArea = _BusinessProcess.ControllingArea and $projection.BusinessProcess = _BusinessProcess.BusinessProcess
[0..1] I_ActivityDescOriginType _ActivityDescOriginType $projection.ActivityDescOriginType = _ActivityDescOriginType.ActivityDescOriginType
[0..*] I_ActivityAlternativeText _ActivityAlternativeText $projection.CostCenterActivityAltvDescID = _ActivityAlternativeText.CostCenterActivityAltvDescID
[0..*] I_CostCenterText _CostCenterText $projection.CostCenter = _CostCenterText.CostCenter and $projection.ControllingArea = _CostCenterText.ControllingArea and $projection.ValidityEndDate = _CostCenterText.ValidityEndDate
[0..1] I_ProdnRsceToolQtyCalcFormula _CostCtrActivityTypeFormula $projection.CostCenterActivityTypeFormula = _CostCtrActivityTypeFormula.ProdnRsceToolQtyCalcFormula

Annotations (18)

NameValueLevelField
AbapCatalog.sqlViewName IPPWRKCNTRCOSTC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED 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 CostCenterAllocation view
ObjectModel.usageType.serviceQuality #B 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 Work Center Cost Center view

Fields (36)

KeyFieldSource TableSource FieldDescription
KEY WorkCenterInternalID crco objid
KEY WorkCenterTypeCode crco objty
KEY CostCenterAllocation
KEY ValidityEndDate crco endda
ValidityStartDate crco begda
LastChangeDate crco aedat_kost
LastChangedByUser crco aenam_kost
Plant _WorkCenter Plant
WorkCenterCategoryCode _WorkCenter WorkCenterCategoryCode
ControllingArea
CostCenter crco kostl
CostCtrActivityType crco lstar
CostCtrActivityTypeQtyUnit crco leinh
BusinessProcess crco prz
ActivityDescOriginType
CostCenterActivityAltvDescID
CostCenterActivityTypeFormula
CostCtrActyTypeIsReferenced crco lstar_ref
CostCtrActyTypeIncntvWageCode crco bde
CostCtrActyTypeRecdTypeGrpCode crco sakl
_WorkCenter _WorkCenter
_WorkCenterTypeCode _WorkCenterTypeCode
_WorkCenterCategory _WorkCenterCategory
_Plant _Plant
_EndDate _EndDate
_StartDate _StartDate
_LastChangedByUser _LastChangedByUser
_ControllingArea _ControllingArea
_CostCenter _CostCenter
_CostCenterText _CostCenterText
_ActivityType _ActivityType
_UnitOfMeasure _UnitOfMeasure
_BusinessProcess _BusinessProcess
_ActivityDescOriginType _ActivityDescOriginType
_ActivityAlternativeText _ActivityAlternativeText
_CostCtrActivityTypeFormula _CostCtrActivityTypeFormula
@AbapCatalog.sqlViewName: 'IPPWRKCNTRCOSTC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED
@AccessControl.privilegedAssociations: ['_LastChangedByUser'] 
@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: 'CostCenterAllocation'
@ObjectModel.usageType: {serviceQuality: #B, sizeCategory: #S, dataClass: #MASTER}
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Work Center Cost Center'

/*+[hideWarning] { "IDS" : [ "CALCULATED_FIELD_CHECK" ]  } */
define view I_WorkCenterCostCenter
  as select from crco as crco

  association [1..1] to I_WorkCenter                  as _WorkCenter                 on  $projection.WorkCenterTypeCode   = _WorkCenter.WorkCenterTypeCode
                                                                                     and $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID
  association [1..1] to I_WorkCenterType              as _WorkCenterTypeCode         on  $projection.WorkCenterTypeCode = _WorkCenterTypeCode.WorkCenterTypeCode
  association [1..1] to I_WorkCenterCategory          as _WorkCenterCategory         on  $projection.workcentercategorycode = _WorkCenterCategory.WorkCenterCategoryCode
  association [1..1] to I_Plant                       as _Plant                      on  $projection.plant = _Plant.Plant
  association [0..1] to I_CalendarDate                as _StartDate                  on  $projection.ValidityStartDate = _StartDate.CalendarDate
  association [1..1] to I_CalendarDate                as _EndDate                    on  $projection.ValidityEndDate = _EndDate.CalendarDate
  association [0..1] to I_User                        as _LastChangedByUser          on  $projection.LastChangedByUser = _LastChangedByUser.UserID
  association [1..1] to I_ControllingArea             as _ControllingArea            on  $projection.ControllingArea = _ControllingArea.ControllingArea
  association [1..1] to I_CostCenter                  as _CostCenter                 on  $projection.ControllingArea = _CostCenter.ControllingArea
                                                                                     and $projection.CostCenter      = _CostCenter.CostCenter
                                                                                     and $projection.ValidityEndDate = _CostCenter.ValidityEndDate
  association [0..1] to I_CostCenterActivityType      as _ActivityType               on  $projection.ControllingArea     = _ActivityType.ControllingArea
                                                                                     and $projection.CostCtrActivityType = _ActivityType.CostCtrActivityType
                                                                                     and $projection.ValidityEndDate     = _ActivityType.ValidityEndDate
  association [0..1] to I_UnitOfMeasure               as _UnitOfMeasure              on  $projection.CostCtrActivityTypeQtyUnit = _UnitOfMeasure.UnitOfMeasure
  association [0..1] to I_BusinessProcess             as _BusinessProcess            on  $projection.ControllingArea = _BusinessProcess.ControllingArea
                                                                                     and $projection.BusinessProcess = _BusinessProcess.BusinessProcess
  association [0..1] to I_ActivityDescOriginType      as _ActivityDescOriginType     on  $projection.ActivityDescOriginType = _ActivityDescOriginType.ActivityDescOriginType
  association [0..*] to I_ActivityAlternativeText     as _ActivityAlternativeText    on  $projection.CostCenterActivityAltvDescID = _ActivityAlternativeText.CostCenterActivityAltvDescID
  association [0..*] to I_CostCenterText              as _CostCenterText             on  $projection.CostCenter      = _CostCenterText.CostCenter
                                                                                     and $projection.ControllingArea = _CostCenterText.ControllingArea
                                                                                     and $projection.ValidityEndDate = _CostCenterText.ValidityEndDate
  association [0..1] to I_ProdnRsceToolQtyCalcFormula as _CostCtrActivityTypeFormula on  $projection.CostCenterActivityTypeFormula = _CostCtrActivityTypeFormula.ProdnRsceToolQtyCalcFormula
{
      // Key

      @ObjectModel.foreignKey.association: '_WorkCenter'
  key crco.objid                                     as  WorkCenterInternalID,
      @ObjectModel.foreignKey.association: '_WorkCenterTypeCode'
  key crco.objty                                     as  WorkCenterTypeCode,
  key cast(crco.lanum as pph_lanum preserving type)  as  CostCenterAllocation,
      @ObjectModel.foreignKey.association: '_EndDate'
  key crco.endda                                     as  ValidityEndDate,
      @ObjectModel.foreignKey.association: '_StartDate'
      crco.begda                                     as  ValidityStartDate,

      // Admin

      @Semantics.systemDate.lastChangedAt: true
      crco.aedat_kost                                as  LastChangeDate,
      @Semantics.user.lastChangedBy: true
      crco.aenam_kost                                as  LastChangedByUser,

      // Plant and Category for DCLS

      @ObjectModel.foreignKey.association: '_Plant'
      _WorkCenter.Plant,
      @ObjectModel.foreignKey.association: '_WorkCenterCategory'
      _WorkCenter.WorkCenterCategoryCode,

      //CO Data

      @ObjectModel.foreignKey.association: '_ControllingArea'
      cast(crco.kokrs as fis_kokrs preserving type)  as  ControllingArea,
      @ObjectModel.foreignKey.association: '_CostCenter'
      crco.kostl                                     as  CostCenter,
      @ObjectModel.foreignKey.association: '_ActivityType'
      crco.lstar                                     as  CostCtrActivityType,
      @Semantics.unitOfMeasure: true
      crco.leinh                                     as  CostCtrActivityTypeQtyUnit,
      @ObjectModel.foreignKey.association: '_BusinessProcess'
      crco.prz                                       as  BusinessProcess,

      // Alternative description

      @ObjectModel.foreignKey.association: '_ActivityDescOriginType'
      cast(crco.actxy as pph_actxy preserving type)  as  ActivityDescOriginType,
      cast(crco.actxk as pph_actxk preserving type)  as  CostCenterActivityAltvDescID,

      @ObjectModel.foreignKey.association: '_CostCtrActivityTypeFormula'
      cast(crco.forml as ap_form_c1 preserving type) as  CostCenterActivityTypeFormula,

      crco.lstar_ref                                 as  CostCtrActyTypeIsReferenced,
      crco.bde                                       as  CostCtrActyTypeIncntvWageCode,
      crco.sakl                                      as  CostCtrActyTypeRecdTypeGrpCode,

      // Associations

      _WorkCenter,
      _WorkCenterTypeCode,
      _WorkCenterCategory,
      _Plant,
      _EndDate,
      _StartDate,
      _LastChangedByUser,
      _ControllingArea,
      _CostCenter,
      _CostCenterText,
      _ActivityType,
      _UnitOfMeasure,
      _BusinessProcess,
      _ActivityDescOriginType,
      _ActivityAlternativeText,
      _CostCtrActivityTypeFormula
}
where
  (     crco.objty = 'A'
    and crco.laset = '    1'
  );
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_WORKCENTER",
"CRCO"
],
"ASSOCIATED":
[
"I_ACTIVITYALTERNATIVETEXT",
"I_ACTIVITYDESCORIGINTYPE",
"I_BUSINESSPROCESS",
"I_CALENDARDATE",
"I_CONTROLLINGAREA",
"I_COSTCENTER",
"I_COSTCENTERACTIVITYTYPE",
"I_COSTCENTERTEXT",
"I_PLANT",
"I_PRODNRSCETOOLQTYCALCFORMULA",
"I_UNITOFMEASURE",
"I_USER",
"I_WORKCENTER",
"I_WORKCENTERCATEGORY",
"I_WORKCENTERTYPE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/