FAC_CostCenterHierNode

DDL: FAC_COSTCENTERHIERNODE SQL: FACCCHIERN Type: view Package: FINS_FI_ACC_VALIDATION

Cost Center Hierarchy Node

FAC_CostCenterHierNode is a CDS View that provides data about "Cost Center Hierarchy Node" in SAP S/4HANA. It reads from 1 data source (hrrp_node_n) and exposes 10 fields with key fields UniversalHierHierarchyID, ControllingArea, HierarchyNode, ParentNode, ValidityEndDate. It has 2 associations to related views. Part of development package FINS_FI_ACC_VALIDATION.

Data Sources (1)

SourceAliasJoin Type
hrrp_node_n hrrp_node_n from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_CostCenterText _CostCtrText $projection.ControllingArea = _CostCtrText.ControllingArea and $projection.CostCenter = _CostCtrText.CostCenter
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName FACCCHIERN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Cost Center Hierarchy Node view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
Search.searchable true view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY UniversalHierHierarchyID hrrp_node_n hryid
KEY ControllingArea hrrp_node_n kokrs
KEY HierarchyNode hrrp_node_n hrynode
KEY ParentNode hrrp_node_n parnode
KEY ValidityEndDate
ValidityStartDate
NodeType nodetype
CostCenter
_CostCtrText _CostCtrText
_ControllingArea _ControllingArea
@AbapCatalog.sqlViewName: 'FACCCHIERN'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Cost Center Hierarchy Node'
@ObjectModel: {usageType: {
  dataClass: #MASTER,
  serviceQuality: #A,
  sizeCategory: #XL}
}
@Search.searchable: true

define view FAC_CostCenterHierNode
  as select from hrrp_node_n

  association [0..*] to I_CostCenterText  as _CostCtrText     on  $projection.ControllingArea = _CostCtrText.ControllingArea
                                                              and $projection.CostCenter      = _CostCtrText.CostCenter

  association [0..1] to I_ControllingArea as _ControllingArea on  $projection.ControllingArea = _ControllingArea.ControllingArea

{
         @Search.defaultSearchElement:true
  key    hrrp_node_n.hryid                                         as UniversalHierHierarchyID,

         @ObjectModel.foreignKey.association: '_ControllingArea'
  key    hrrp_node_n.kokrs                                         as ControllingArea,

  key    hrrp_node_n.hrynode                                       as HierarchyNode,

  key    hrrp_node_n.parnode                                       as ParentNode,

  key    cast(hrrp_node_n.hryvalto as fis_datbi preserving type )  as ValidityEndDate,

         cast(hrrp_node_n.hryvalfrom as fis_datab preserving type) as ValidityStartDate,
         nodetype                                                  as NodeType,

         @ObjectModel.text.association: '_CostCtrText'
         cast ( hrrp_node_n.kostl as fis_kostl preserving type  )  as CostCenter,

         _CostCtrText,
         _ControllingArea
}
where
  (
       nodetype = 'D'
    or nodetype = 'L'
  )
  //add

  and  hrytyp   = '0101';