FAC_GLACCOUNTHIERNODE

DDL: FAC_GLACCOUNTHIERNODE SQL: FACGLHIERN Type: view

GL Account Hierarchy Node

FAC_GLACCOUNTHIERNODE is a CDS View that provides data about "GL Account Hierarchy Node" in SAP S/4HANA. It reads from 1 data source (hrrp_node_n) and exposes 9 fields with key fields UniversalHierHierarchyID, ChartOfAccounts, HierarchyNode, ParentNode, ValidityEndDate. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
hrrp_node_n hrrp_node_n from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_GLAccountText _GLAccountText $projection.ChartOfAccounts = _GLAccountText.ChartOfAccounts and $projection.GLAccount = _GLAccountText.GLAccount
[0..1] I_ChartOfAccounts _ChartOfAccounts $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName FACGLHIERN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label GL Account Hierarchy Node view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
Search.searchable true view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY UniversalHierHierarchyID hrrp_node_n hryid Hierarchy ID
KEY ChartOfAccounts hrrp_node_n ktopl G/L Chart of Accounts
KEY HierarchyNode hrrp_node_n hrynode Node
KEY ParentNode hrrp_node_n parnode Par. Node
KEY ValidityEndDate
ValidityStartDate
NodeType nodetype Object Type
_GLAccountText _GLAccountText
_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 FAC_GLACCOUNTHIERNODE.
-- 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: FACGLHIERN

CREATE VIEW FAC_GLACCOUNTHIERNODE AS
SELECT
  hrrp_node_n.hryid AS UniversalHierHierarchyID,
  hrrp_node_n.ktopl AS ChartOfAccounts,
  hrrp_node_n.hrynode AS HierarchyNode,
  hrrp_node_n.parnode AS ParentNode,
  cast(hrrp_node_n.hryvalto as fis_datbi preserving type ) AS ValidityEndDate,
  cast(hrrp_node_n.hryvalfrom as fis_datab preserving type) AS ValidityStartDate,
  NodeType
FROM hrrp_node_n
LEFT OUTER JOIN I_GLAccountText AS _GLAccountText ON ChartOfAccounts = _GLAccountText.ChartOfAccounts AND GLAccount = _GLAccountText.GLAccount  -- association [0..*]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts  -- association [0..1]
;