I_GR_GLAccountHierarchyNode
Greece G/L Account Hierachy Node
I_GR_GLAccountHierarchyNode is a Basic CDS View that provides data about "Greece G/L Account Hierachy Node" in SAP S/4HANA. It reads from 1 data source (hrrp_node_n) and exposes 21 fields with key fields RuntimeHierarchy, HierarchyNodeClass, GLAccountHierarchy, HierarchyNode, ValidityEndDate. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| hrrp_node_n | hrrp_node_n | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_GR_GLAccountHierarchyNodeT | _GR_GLAccountHierarchyNodeT | $projection.GLAccountHierarchy = _GR_GLAccountHierarchyNodeT.GLAccountHierarchy and $projection.HierarchyNode = _GR_GLAccountHierarchyNodeT.HierarchyNode and $projection.GLAccount = '' |
| [0..1] | I_GR_GLAcctChartOfAccount | _GR_GLAccountInChartOfAccounts | $projection.ChartOfAccounts = _GR_GLAccountInChartOfAccounts.ChartOfAccounts and $projection.GLAccount = _GR_GLAccountInChartOfAccounts.GLAccount |
| [0..1] | I_GR_GLAccountHierarchy | _GR_Hierarchy | $projection.GLAccountHierarchy = _GR_Hierarchy.GLAccountHierarchy and $projection.ValidityEndDate = _GR_Hierarchy.ValidityEndDate |
| [0..1] | I_ChartOfAccounts | _ChartOfAccounts | $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| ObjectModel.dataCategory | #HIERARCHY | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Consumption.filter.businessDate.at | true | view | |
| EndUserText.label | Greece G/L Account Hierachy Node | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RuntimeHierarchy | hryid | Hierarchy ID | |
| KEY | HierarchyNodeClass | nodecls | Node Class | |
| KEY | GLAccountHierarchy | |||
| KEY | HierarchyNode | hrrp_node_n | hrynode | Node |
| KEY | ValidityEndDate | |||
| KEY | ParentNode | hrrp_node_n | parnode | Par. Node |
| KEY | HierarchyType | hrrp_node_n | hrytyp | Hierarchy Type |
| HierarchyVersion | ||||
| ValidityStartDate | ||||
| ChartOfAccounts | hrrp_node_n | ktopl | G/L Chart of Accounts | |
| GLAccount | ||||
| SequenceNumber | ||||
| HierarchyNodeSequence | hrrp_node_n | hryseqnbr | Sequence Number | |
| HierarchyNodeLevel | hrrp_node_n | hrylevel | Hierarchy Level | |
| NodeType | hrrp_node_n | nodetype | Object Type | |
| SignIsInverted | ||||
| HierarchyNodeVal | hrrp_node_n | nodevalue | Value | |
| _GR_GLAccountHierarchyNodeT | _GR_GLAccountHierarchyNodeT | |||
| _GR_GLAccountInChartOfAccounts | _GR_GLAccountInChartOfAccounts | |||
| _GR_Hierarchy | _GR_Hierarchy | |||
| _ChartOfAccounts | _ChartOfAccounts |
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 I_GR_GLAccountHierarchyNode.
-- 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.
CREATE VIEW I_GR_GLAccountHierarchyNode AS
SELECT
hryid AS RuntimeHierarchy,
nodecls AS HierarchyNodeClass,
cast ( hrrp_node_n.hryid_42 as fis_glaccthier preserving type ) AS GLAccountHierarchy,
hrrp_node_n.hrynode AS HierarchyNode,
cast(hrrp_node_n.hryvalto as fis_datbi preserving type ) AS ValidityEndDate,
hrrp_node_n.parnode AS ParentNode,
hrrp_node_n.hrytyp AS HierarchyType,
cast( '000000000000001' as hryversn ) AS HierarchyVersion,
cast(hrrp_node_n.hryvalfrom as fis_datab preserving type ) AS ValidityStartDate,
hrrp_node_n.ktopl AS ChartOfAccounts,
cast(hrrp_node_n.saknr as fis_saknr preserving type ) AS GLAccount,
concat(hrrp_node_n.hryseqnbr, hrrp_node_n.hrynode) AS SequenceNumber,
hrrp_node_n.hryseqnbr AS HierarchyNodeSequence,
hrrp_node_n.hrylevel AS HierarchyNodeLevel,
hrrp_node_n.nodetype AS NodeType,
cast( hrrp_node_n.sign as rr_rsign ) AS SignIsInverted,
hrrp_node_n.nodevalue AS HierarchyNodeVal
FROM hrrp_node_n
LEFT OUTER JOIN I_GR_GLAccountHierarchyNodeT AS _GR_GLAccountHierarchyNodeT ON GLAccountHierarchy = _GR_GLAccountHierarchyNodeT.GLAccountHierarchy AND HierarchyNode = _GR_GLAccountHierarchyNodeT.HierarchyNode AND GLAccount = '' -- association [0..*]
LEFT OUTER JOIN I_GR_GLAcctChartOfAccount AS _GR_GLAccountInChartOfAccounts ON ChartOfAccounts = _GR_GLAccountInChartOfAccounts.ChartOfAccounts AND GLAccount = _GR_GLAccountInChartOfAccounts.GLAccount -- association [0..1]
LEFT OUTER JOIN I_GR_GLAccountHierarchy AS _GR_Hierarchy ON GLAccountHierarchy = _GR_Hierarchy.GLAccountHierarchy AND ValidityEndDate = _GR_Hierarchy.ValidityEndDate -- association [0..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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