C_WorkCenterCostCenter

DDL: C_WORKCENTERCOSTCENTER Type: view_entity CONSUMPTION

WorkCenter to Costcenter assignment

C_WorkCenterCostCenter is a Consumption CDS View that provides data about "WorkCenter to Costcenter assignment" in SAP S/4HANA. It reads from 1 data source (I_WorkCenterCostCenter) and exposes 10 fields with key fields WorkCenterInternalID, WorkCenterTypeCode, CostCenterAllocation, ValidityEndDate. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_WorkCenterCostCenter _costcenter from

Associations (1)

CardinalityTargetAliasCondition
[0..*] C_HierRuntimeRprstnDplLeafNode _CostCenterHierarchyLeafNode _costcenter.CostCenter = _CostCenterHierarchyLeafNode.UnivHierarchyBusinessEntity and _costcenter.ControllingArea = _CostCenterHierarchyLeafNode.HierarchyNodeClass and _CostCenterHierarchyLeafNode.ValidityStartDate <= $session.system_date and _CostCenterHierarchyLeafNode.ValidityEndDate >= $session.system_date and _CostCenterHierarchyLeafNode.HierarchyType = '0101'

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label WorkCenter to Costcenter assignment view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY WorkCenterInternalID I_WorkCenterCostCenter WorkCenterInternalID
KEY WorkCenterTypeCode I_WorkCenterCostCenter WorkCenterTypeCode
KEY CostCenterAllocation I_WorkCenterCostCenter CostCenterAllocation
KEY ValidityEndDate I_WorkCenterCostCenter ValidityEndDate Validity Start Date
WorkCenterCategoryCode I_WorkCenterCostCenter WorkCenterCategoryCode
Plant I_WorkCenterCostCenter Plant
ValidityStartDate I_WorkCenterCostCenter ValidityStartDate Validity Start Date
CostCenter I_WorkCenterCostCenter CostCenter Cost Center
ControllingArea I_WorkCenterCostCenter ControllingArea
_CostCenterHierarchyLeafNode _CostCenterHierarchyLeafNode
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'WorkCenter to Costcenter assignment'
@Metadata.ignorePropagatedAnnotations: true
@VDM.viewType: #CONSUMPTION
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #S,
  dataClass: #MIXED
}
define view entity C_WorkCenterCostCenter
  as select from I_WorkCenterCostCenter as _costcenter
  association [0..*] to C_HierRuntimeRprstnDplLeafNode as _CostCenterHierarchyLeafNode on  _costcenter.CostCenter                         = _CostCenterHierarchyLeafNode.UnivHierarchyBusinessEntity
                                                                                       and _costcenter.ControllingArea                    = _CostCenterHierarchyLeafNode.HierarchyNodeClass
                                                                                       and _CostCenterHierarchyLeafNode.ValidityStartDate <= $session.system_date
                                                                                       and _CostCenterHierarchyLeafNode.ValidityEndDate   >= $session.system_date
                                                                                       and _CostCenterHierarchyLeafNode.HierarchyType     = '0101'

{
      @UI.hidden: true
  key _costcenter.WorkCenterInternalID,

      @UI.hidden: true
  key _costcenter.WorkCenterTypeCode,

      @UI.hidden: true
  key _costcenter.CostCenterAllocation,

      @UI.lineItem:[{position: 30}]
      @EndUserText.label: 'Validity Start Date'
      //      @Semantics.businessDate.from: true

  key _costcenter.ValidityEndDate,

      @UI.hidden: true
      _costcenter.WorkCenterCategoryCode,

      @UI.hidden: true
      _costcenter.Plant,

      @UI.lineItem:[{position: 20}]
      @EndUserText.label: 'Validity Start Date'
      _costcenter.ValidityStartDate,

      @UI.lineItem:[{position: 10}]
      @EndUserText.label: 'Cost Center'
      _costcenter.CostCenter,

      @UI.hidden: true
      _costcenter.ControllingArea,

      _CostCenterHierarchyLeafNode
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_WORKCENTERCOSTCENTER"
],
"ASSOCIATED":
[
"C_HIERRUNTIMERPRSTNDPLLEAFNODE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/