I_CostCenterInCompanyCode

DDL: I_COSTCENTERINCOMPANYCODE Type: view_entity BASIC

Cost Center In Company Code

I_CostCenterInCompanyCode is a Basic CDS View (Dimension) that provides data about "Cost Center In Company Code" in SAP S/4HANA. It reads from 1 data source (I_CostCenter) and exposes 21 fields with key fields CompanyCode, CostCenter, ValidityEndDate.

Data Sources (1)

SourceAliasJoin Type
I_CostCenter I_CostCenter from

Annotations (16)

NameValueLevelField
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
Analytics.internalName #LOCAL view
ObjectModel.representativeKey CostCenter view
AccessControl.authorizationCheck #MANDATORY view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Cost Center In Company Code view
VDM.viewType #BASIC view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.usageType.dataClass #ORGANIZATIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
Search.searchable true view
Consumption.ranked true view
Consumption.filter.businessDate.at true view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_CostCenter CompanyCode
KEY CostCenter I_CostCenter CostCenter
KEY ValidityEndDate I_CostCenter ValidityEndDate
ValidityStartDate I_CostCenter ValidityStartDate
ControllingArea I_CostCenter ControllingArea
IsBlkdForPrimaryCostsPosting I_CostCenter IsBlkdForPrimaryCostsPosting
IsBlockedForPlanPrimaryCosts I_CostCenter IsBlockedForPlanPrimaryCosts
CostCenterCategory I_CostCenter CostCenterCategory
CostCtrResponsibleUser I_CostCenter CostCtrResponsibleUser
CostCenterCreationDate I_CostCenter CostCenterCreationDate
CostCenterCreatedByUser I_CostCenter CostCenterCreatedByUser
IsBlkdForSecondaryCostsPosting I_CostCenter IsBlkdForSecondaryCostsPosting
IsBlockedForRevenuePosting I_CostCenter IsBlockedForRevenuePosting
IsBlockedForCommitmentPosting I_CostCenter IsBlockedForCommitmentPosting
IsBlockedForPlanSecondaryCosts I_CostCenter IsBlockedForPlanSecondaryCosts
IsBlockedForPlanRevenues I_CostCenter IsBlockedForPlanRevenues
_CompanyCode I_CostCenter _CompanyCode
_ControllingArea I_CostCenter _ControllingArea
_CostCenterCategory I_CostCenter _CostCenterCategory
_UserCrtedContactCard I_CostCenter _UserCrtedContactCard
_UserRespContactCard I_CostCenter _UserRespContactCard
@Analytics:{
    dataCategory: #DIMENSION,
    dataExtraction: {
        enabled: true,
        alternativeKey: ['ControllingArea','CostCenter','ValidityEndDate'],
        delta.changeDataCapture: {
          mapping: [ {
                table: 'CSKS',
                role: #MAIN,
                tableElement: ['kokrs','kostl','datbi'],
                viewElement: ['ControllingArea','CostCenter','ValidityEndDate']
              }]
        }
    }
}
@Analytics.internalName:#LOCAL

@ObjectModel.representativeKey: 'CostCenter'

@AccessControl.authorizationCheck: #MANDATORY
//@AccessControl.personalData.blocking: #REQUIRED -> Not needed for user in ADRP because no XBLCK field like in BUT000 or KNA1/LFA1

@AccessControl.privilegedAssociations: [ '_UserRespContactCard', '_UserCrtedContactCard' ]

@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true

@EndUserText.label: 'Cost Center In Company Code'
@VDM.viewType: #BASIC

@ObjectModel.supportedCapabilities: [ #ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #EXTRACTION_DATA_SOURCE ]
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION

@ObjectModel.usageType: {
  dataClass: #ORGANIZATIONAL,
  serviceQuality: #A,
  sizeCategory: #L
}

@Search.searchable: true
@Consumption.ranked: true
@Consumption.filter.businessDate.at: true
define view entity I_CostCenterInCompanyCode
  as select from           I_CostCenter
    left outer to one join I_SAPClient on I_SAPClient.LogicalSystem != ''
{
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking: #LOW
      @ObjectModel.foreignKey.association: '_CompanyCode'
  key I_CostCenter.CompanyCode,
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking: #HIGH
      //      @ObjectModel.text.association: '_Text'

      //      @ObjectModel.hierarchy.association: '_CostCenterHierarchyNode'

  key I_CostCenter.CostCenter,
      @Semantics.businessDate.to: true
  key I_CostCenter.ValidityEndDate,
      @Semantics.businessDate.from: true
      I_CostCenter.ValidityStartDate,

@ObjectModel.filter.enabled: false
@ObjectModel.sort.enabled: false
      //      cast(concat(concat( concat(concat(I_SAPClient.LogicalSystem, ':' ), CompanyCode ), ':' ), CostCenter ) as char_132 ) as CostCenterOID, //Cost Center Global ID  =  CostCenterOID

      cast(
      case length( I_CostCenter.CompanyCode )
      when 1 then   concat( I_SAPClient.LogicalSystem ,
              concat(':',
                     concat( concat_with_space(I_CostCenter.CompanyCode, ':', 3 ) ,  I_CostCenter.CostCenter ) ) )
      when 2 then   concat( I_SAPClient.LogicalSystem ,
              concat(':',
                     concat( concat_with_space(I_CostCenter.CompanyCode, ':', 2 ) ,  I_CostCenter.CostCenter ) ) )
      when 3 then   concat( I_SAPClient.LogicalSystem ,
              concat(':',
                     concat( concat_with_space(I_CostCenter.CompanyCode, ':', 1 ) ,  I_CostCenter.CostCenter ) ) )
      when 4 then   concat( I_SAPClient.LogicalSystem ,
              concat(':',
                     concat( concat(I_CostCenter.CompanyCode, ':' ) ,  I_CostCenter.CostCenter ) ) )
      end as fis_costcenter_oid ) as CostCenterOID,
      @ObjectModel.foreignKey.association: '_ControllingArea'
      I_CostCenter.ControllingArea,
      //      csks_map.dispname   as Dispname,

      //      csks_map.deleted    as Deleted,

      //      csks_map.version_id as VersionId,

      @Semantics.booleanIndicator: true
      I_CostCenter.IsBlkdForPrimaryCostsPosting,
      @Semantics.booleanIndicator: true
      I_CostCenter.IsBlockedForPlanPrimaryCosts,
      @ObjectModel.foreignKey.association: '_CostCenterCategory'
      I_CostCenter.CostCenterCategory,
      @ObjectModel.foreignKey.association: '_UserRespContactCard'
      I_CostCenter.CostCtrResponsibleUser,
      I_CostCenter.CostCenterCreationDate,
      @ObjectModel.foreignKey.association: '_UserCrtedContactCard'
      I_CostCenter.CostCenterCreatedByUser,
      @Semantics.booleanIndicator: true
      I_CostCenter.IsBlkdForSecondaryCostsPosting,
      @Semantics.booleanIndicator: true
      I_CostCenter.IsBlockedForRevenuePosting,
      @Semantics.booleanIndicator: true
      I_CostCenter.IsBlockedForCommitmentPosting,
      @Semantics.booleanIndicator: true
      I_CostCenter.IsBlockedForPlanSecondaryCosts,
      @Semantics.booleanIndicator: true
      I_CostCenter.IsBlockedForPlanRevenues,

      /* Associations */
      I_CostCenter._CompanyCode,
      I_CostCenter._ControllingArea,
      I_CostCenter._CostCenterCategory,
      //      I_CostCenter._CostCenterHierarchyNode,

      //      I_CostCenter._Text,

      I_CostCenter._UserCrtedContactCard,
      I_CostCenter._UserRespContactCard
}