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.
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 | Hierarchy ID |
| KEY | ControllingArea | hrrp_node_n | kokrs | Org. Value |
| KEY | HierarchyNode | hrrp_node_n | hrynode | Node |
| KEY | ParentNode | hrrp_node_n | parnode | Par. Node |
| KEY | ValidityEndDate | |||
| ValidityStartDate | ||||
| NodeType | nodetype | Object Type | ||
| CostCenter | ||||
| _CostCtrText | _CostCtrText | |||
| _ControllingArea | _ControllingArea |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view FAC_CostCenterHierNode.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: FACCCHIERN
CREATE VIEW FAC_CostCenterHierNode AS
SELECT
hrrp_node_n.hryid AS UniversalHierHierarchyID,
hrrp_node_n.kokrs AS ControllingArea,
hrrp_node_n.hrynode AS HierarchyNode,
hrrp_node_n.parnode AS ParentNode,
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,
cast ( hrrp_node_n.kostl as fis_kostl preserving type ) AS CostCenter
FROM hrrp_node_n
LEFT OUTER JOIN I_CostCenterText AS _CostCtrText ON ControllingArea = _CostCtrText.ControllingArea AND CostCenter = _CostCtrText.CostCenter -- association [0..*]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [0..1]
;
Learn More
- CDS View Annotations — A Complete Guide
- 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 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA