FAC_CostCenterHierNode
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)
| Source | Alias | Join Type |
|---|---|---|
| hrrp_node_n | hrrp_node_n | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CostCenterText | _CostCtrText | $projection.ControllingArea = _CostCtrText.ControllingArea and $projection.CostCenter = _CostCtrText.CostCenter |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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';
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA