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.
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 | Hierarchy ID |
| KEY | HierarchyVersion | |||
| KEY | HierarchyNodeClass | hrrp_node_n | nodecls | Node Class |
| KEY | HierarchyNode | hrrp_node_n | hrynode | Node |
| KEY | ParentNode | hrrp_node_n | parnode | Par. Node |
| KEY | ValidityEndDate | hrrp_node_n | hryvalto | Valid To |
| ValidityStartDate | hrrp_node_n | hryvalfrom | Valid From | |
| HierarchyNodeType | hrrp_node_n | nodetype | Object Type | |
| HierarchyNodeValue | hrrp_node_n | nodevalue | Value | |
| HierarchySequenceNumber | hrrp_node_n | hryseqnbr | Sequence Number | |
| HierarchyLevel | hrrp_node_n | hrylevel | Hierarchy Level | |
| HierarchyType | hrrp_node_n | hrytyp | Hierarchy Type | |
| HierarchyNodeText | ||||
| _to_hier | _to_hier |
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_cds_fh_node.
-- 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: FACV_FH_NODE
CREATE VIEW fac_cds_fh_node AS
SELECT
hrrp_node_n.hryid_42 AS FlexibleHierarchy,
cast( '000000000000001' as hryversn preserving type ) AS HierarchyVersion,
hrrp_node_n.nodecls AS HierarchyNodeClass,
hrrp_node_n.hrynode AS HierarchyNode,
hrrp_node_n.parnode AS ParentNode,
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
FROM hrrp_node_n
INNER JOIN flexhier_dir ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN 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 [0..*]
LEFT OUTER JOIN fac_cds_fh AS _to_hier ON FlexibleHierarchy = _to_hier.FlexibleHierarchy AND ValidityEndDate = _to_hier.ValidityEndDate -- association [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