fac_cds_fh_node
Flexible Hierarchy Node
fac_cds_fh_node is a CDS View that provides data about "Flexible Hierarchy Node" in SAP S/4HANA. It reads from 2 data sources (flexhier_dir, hrrp_node_n) and exposes 14 fields with key fields FlexibleHierarchy, HierarchyVersion, HierarchyNodeClass, HierarchyNode, ParentNode. It has 2 associations to related views. Part of development package FINS_FI_FH.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| flexhier_dir | flexhier_dir | inner |
| hrrp_node_n | hrrp_node_n | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | fac_cds_fh_nodet | _Text | hrrp_node_n.hryid_42 = _Text.FlexibleHierarchy and hrrp_node_n.nodecls = _Text.HierarchyNodeClass and hrrp_node_n.hrynode = _Text.HierarchyNode and hrrp_node_n.parnode = _Text.ParentNode and hrrp_node_n.hryvalto = _Text.ValidityEndDate |
| [1..*] | fac_cds_fh | _to_hier | $projection.FlexibleHierarchy = _to_hier.FlexibleHierarchy and $projection.ValidityEndDate = _to_hier.ValidityEndDate |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | FACV_FH_NODE | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Flexible Hierarchy Node | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | FlexibleHierarchy | hrrp_node_n | hryid_42 | |
| KEY | HierarchyVersion | |||
| KEY | HierarchyNodeClass | hrrp_node_n | nodecls | |
| KEY | HierarchyNode | hrrp_node_n | hrynode | |
| KEY | ParentNode | hrrp_node_n | parnode | |
| KEY | ValidityEndDate | hrrp_node_n | hryvalto | |
| ValidityStartDate | hrrp_node_n | hryvalfrom | ||
| HierarchyNodeType | hrrp_node_n | nodetype | ||
| HierarchyNodeValue | hrrp_node_n | nodevalue | ||
| HierarchySequenceNumber | hrrp_node_n | hryseqnbr | ||
| HierarchyLevel | hrrp_node_n | hrylevel | ||
| HierarchyType | hrrp_node_n | hrytyp | ||
| HierarchyNodeText | ||||
| _to_hier | _to_hier |
@AbapCatalog.sqlViewName: 'FACV_FH_NODE'
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Flexible Hierarchy Node'
@ObjectModel: {usageType: {
dataClass: #MASTER,
serviceQuality: #A,
sizeCategory: #XL}
}
define view fac_cds_fh_node
as select from hrrp_node_n
inner join flexhier_dir on hrrp_node_n.hryid_42 = flexhier_dir.hryid
and hrrp_node_n.hryvalto = flexhier_dir.hryvalto
association [0..*] to fac_cds_fh_nodet as _Text on hrrp_node_n.hryid_42 = _Text.FlexibleHierarchy
and hrrp_node_n.nodecls = _Text.HierarchyNodeClass
and hrrp_node_n.hrynode = _Text.HierarchyNode
and hrrp_node_n.parnode = _Text.ParentNode
and hrrp_node_n.hryvalto = _Text.ValidityEndDate
association [1..*] to fac_cds_fh as _to_hier on $projection.FlexibleHierarchy = _to_hier.FlexibleHierarchy
and $projection.ValidityEndDate = _to_hier.ValidityEndDate
{
key hrrp_node_n.hryid_42 as FlexibleHierarchy,
@VDM.lifecycle.status: #DEPRECATED
key cast( '000000000000001' as hryversn preserving type ) as HierarchyVersion,
key hrrp_node_n.nodecls as HierarchyNodeClass,
key hrrp_node_n.hrynode as HierarchyNode,
key hrrp_node_n.parnode as ParentNode,
key hrrp_node_n.hryvalto as ValidityEndDate,
hrrp_node_n.hryvalfrom as ValidityStartDate,
hrrp_node_n.nodetype as HierarchyNodeType,
hrrp_node_n.nodevalue as HierarchyNodeValue,
hrrp_node_n.hryseqnbr as HierarchySequenceNumber,
hrrp_node_n.hrylevel as HierarchyLevel,
hrrp_node_n.hrytyp as HierarchyType,
_Text[1:Language = $session.system_language].HierarchyNodeText as HierarchyNodeText,
case
when hrrp_node_n.nodetype = 'L' then 'leaf'
when hrrp_node_n.hrylevel = '000000' or hrrp_node_n.hrylevel = '000001' then 'expanded'
else 'collapsed'
end as DrillState,
_to_hier
}
where
hrrp_node_n.nodetype <> 'D';
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