C_GLAccountHierarchyNode

DDL: C_GLACCOUNTHIERARCHYNODE SQL: CFIGLACCOUNTHN Type: view CONSUMPTION Package: FINS_FIS_API

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)

SourceAliasJoin Type
I_GLAccountHierarchy _Hierarchy inner
I_GLAccountHierarchyNode _Node from

Associations (2)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;