C_GLAccountHierarchyNode
API GL Acccount Hierarchy Node
C_GLAccountHierarchyNode is a Consumption CDS View that provides data about "API GL Acccount Hierarchy Node" in SAP S/4HANA. It reads from 2 data sources (I_GLAccountHierarchy, I_GLAccountHierarchyNode) and exposes 15 fields with key fields GLAccountHierarchy, HierarchyNode, ValidityEndDate. It has 2 associations to related views. Part of development package FINS_FIS_API.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountHierarchy | _Hierarchy | inner |
| I_GLAccountHierarchyNode | _Node | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_GLAcctHierNodeSemanticTag | _SemanticTag | _SemanticTag.GLAccountHierarchy = _Node.GLAccountHierarchy and _SemanticTag.HierarchyNode = _Node.HierarchyNode and _SemanticTag.ValidityEndDate = _Node.ValidityEndDate and ( _SemanticTag.SemanticTag = 'ASSET' or _SemanticTag.SemanticTag = 'LIAB_EQUIT' ) |
| [0..*] | C_GLAccountHierarchyNodeT | _Text | $projection.GLAccountHierarchy = _Text.GLAccountHierarchy and $projection.HierarchyNode = _Text.HierarchyNode and $projection.ValidityEndDate = _Text.ValidityEndDate and $projection.GLAccount = '' |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CFIGLACCOUNTHN | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | API GL Acccount Hierarchy Node | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | GLAccountHierarchy | I_GLAccountHierarchyNode | GLAccountHierarchy | |
| KEY | HierarchyNode | I_GLAccountHierarchyNode | HierarchyNode | Node |
| KEY | ValidityEndDate | I_GLAccountHierarchyNode | ValidityEndDate | ValidTo |
| ParentNode | ParentNode | Parent Node | ||
| HierarchyVersion | HierarchyVersion | Version | ||
| ValidityStartDate | I_GLAccountHierarchyNode | ValidityStartDate | Validity Start Date | |
| ChartOfAccounts | I_GLAccountHierarchyNode | ChartOfAccounts | Node Class | |
| GLAccount | GLAccount | General Ledger | ||
| SequenceNumber | SequenceNumber | Sort sequence | ||
| HierarchyNodeSequence | HierarchyNodeSequence | Sequence Number | ||
| HierarchyNodeLevel | HierarchyNodeLevel | Hierarchy Node Level | ||
| NodeType | I_GLAccountHierarchyNode | NodeType | Object Type | |
| SemanticTag | _SemanticTag | SemanticTag | Semantic Tag | |
| _Text | _Text | |||
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts |
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 C_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.
-- SQL view name: CFIGLACCOUNTHN
CREATE VIEW C_GLAccountHierarchyNode AS
SELECT
_Node.GLAccountHierarchy AS GLAccountHierarchy,
_Node.HierarchyNode AS HierarchyNode,
_Node.ValidityEndDate AS ValidityEndDate,
ParentNode,
HierarchyVersion,
_Node.ValidityStartDate AS ValidityStartDate,
_Node.ChartOfAccounts AS ChartOfAccounts,
GLAccount,
SequenceNumber,
HierarchyNodeSequence,
HierarchyNodeLevel,
_Node.NodeType AS NodeType,
_SemanticTag.SemanticTag AS SemanticTag
FROM I_GLAccountHierarchyNode AS _Node
INNER JOIN I_GLAccountHierarchy AS _Hierarchy ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_GLAcctHierNodeSemanticTag AS _SemanticTag ON _SemanticTag.GLAccountHierarchy = _Node.GLAccountHierarchy AND _SemanticTag.HierarchyNode = _Node.HierarchyNode AND _SemanticTag.ValidityEndDate = _Node.ValidityEndDate AND ( _SemanticTag.SemanticTag = 'ASSET' OR _SemanticTag.SemanticTag = 'LIAB_EQUIT' ) -- association [0..1]
LEFT OUTER JOIN C_GLAccountHierarchyNodeT AS _Text ON GLAccountHierarchy = _Text.GLAccountHierarchy AND HierarchyNode = _Text.HierarchyNode AND ValidityEndDate = _Text.ValidityEndDate AND GLAccount = '' -- association [0..*]
;
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