I_FinancialStatementHierNode

DDL: I_FINANCIALSTATEMENTHIERNODE SQL: IFISTMTHERNODE Type: view BASIC Package: FINS_FIS_FICO

Financial Statement Hierarchy Node

I_FinancialStatementHierNode (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Public Edition with built-in and side-by-side extension capabilities.

FinancialStatementHierNode · Accounting and Financial Close

I_FinancialStatementHierNode is a Basic CDS View that provides data about "Financial Statement Hierarchy Node" in SAP S/4HANA. It reads from 1 data source (P_FinancialStatementHierNode) and exposes 20 fields with key fields FinancialStatementHierarchy, HierarchyNode, ValidityEndDate. It has 4 associations to related views. Part of development package FINS_FIS_FICO.

SAP Help Documentation

CategoryCDS Views for Master Data
Purpose
This CDS view retrieves hierarchy nodes and G/L accounts (and functional areas) included in financial statement versions (FSVs). This CDS view provides the data to answer the following business questions: What's the validity timeframe of the financial statement hierarchy? Which nodes are included in the hierarchy? What is the node type, inner node or leaf node? Which G/L accounts and functional areas are included under a node? When displaying in analytical reports, such as in Balance Sheet/Income Statement - Multidimensional , is the +/- sign for totals on node level reversed? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations The following business catalog needs to be assigned to a user to be able to use this CDS view: SAP_FIN_BC_GL_REPORTING_PC (General Ledger - Reporting)

Structure
Fields used for filtering The main filters are as follows: FinancialStatementHierarchy ( Hierarchy ID ) used to select the relevant financial statement version. ValidityEndDate ( Validity End Date ) used to select the relevant hierarchy version represented by validity timeframe. Further important fields Important fields in this view include the following: Field Name Description ChartOfAccounts Chart of accounts FinancialStatementNodeType Type of node: I : Inner node or normal node G : G/L account as leaf node F : Functional area as leaf node HierarchyNodeVal Value of node: Node ID, if the node type is I G/L account number, if the node type is G Functional area ID, if the node type is F SignIsInverted +/- sign change DebitCreditCode Debit/credit balance indicator: S : The G/L account or node is set with Debit Balance , which means only when with a debit balance can they be displayed under the corresponding node in analytical reports. H : The G/L account or node is set with Credit Balance , which means only when with a credit balance can they be displayed under the corresponding node in analytical reports. Empty: The G/L account or node can always display under the corresponding node.

SAP Business Warehouse (SAP BW) Extraction
Data extraction type Full (physical deletions are possible in source tables) Corresponding DataSource (Extractor) IFISTMTHERNODE

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessAccounting and Financial Close
Application ComponentFI-GL-GL-N
CapabilitiesData Source for Data Extraction,Data Source for Defining CDS Entities,Association Target for Defining CDS Entities,Data Source for Hierarchies in Analytics
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageAccounting and Financial Close for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view retrieves hierarchy nodes and G/L accounts (and functional areas) included in financial statement versions (FSVs).</p> This CDS view provides the data to answer the following business questions:<ul> <li> <p>What's the validity timeframe of the financial statement hierarchy?</p> </li> <li>Which nodes are included in the hierarchy?</li> <li> <p>What is the node type, inner node or leaf node?</p> </li> <li> <p>Which G/L accounts and functional areas are included under a node?</p> </li> <li>When displaying in analytical reports, such as in Balance Sheet/Income Statement - Multidimensional, is the +/- sign for totals on node level reversed?</li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
P_FinancialStatementHierNode P_FinancialStatementHierNode from

Associations (4)

CardinalityTargetAliasCondition
[0..*] I_FinancialStatementHierNodeT _Text $projection.FinancialStatementHierarchy = _Text.FinancialStatementHierarchy and $projection.HierarchyNode = _Text.HierarchyNode and $projection.FinancialStatementLeafItem = ''
[0..1] I_FinancialStatementLeafItem _FinancialStatementLeafItem $projection.FinancialStatementLeafItem = _FinancialStatementLeafItem.FinancialStatementLeafItem
[0..1] I_FinancialStatementHier _Hierarchy $projection.FinancialStatementHierarchy = _Hierarchy.FinancialStatementHierarchy and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate
[0..1] I_FinancialStatementHierNode _ParentNode $projection.FinancialStatementHierarchy = _ParentNode.FinancialStatementHierarchy and $projection.ValidityEndDate = _ParentNode.ValidityEndDate and $projection.ParentNode = _ParentNode.HierarchyNode

Annotations (22)

NameValueLevelField
AbapCatalog.sqlViewName IFISTMTHERNODE view
EndUserText.label Financial Statement Hierarchy Node view
VDM.viewType #BASIC view
ObjectModel.dataCategory #HIERARCHY view
ObjectModel.representativeKey HierarchyNode view
Hierarchy.parentChild.recurse.parent ParentNode view
Hierarchy.parentChild.recurse.child HierarchyNode view
Hierarchy.parentChild.siblingsOrder.by HierarchyNodeSequence view
Hierarchy.parentChild.siblingsOrder.direction ASC view
Hierarchy.parentChild.directory _Hierarchy view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.buffering.status #NOT_ALLOWED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_PARENT_CHILD_HIERARCHY_NODE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
Analytics.dataExtraction.enabled true view
ObjectModel.sapObjectNodeType.name FinancialStatementHierNode view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY FinancialStatementHierarchy FinancialStatementHierarchy Hierarchy ID
KEY HierarchyNode HierarchyNode Hierarchy node
KEY ValidityEndDate ValidityEndDate Valid To Date
ValidityStartDate ValidityStartDate Validity Start Date
ParentNode ParentNode Hierarchy parent node
HierarchyVersion HierarchyVersion Hierarchy version
FinancialStatementLeafItem FinancialStatementLeafItem Hierarchy node
SequenceNumber SequenceNumber Sort sequence
SignIsInverted SignIsInverted Type of SIGN component in row type of a Ranges type
ChartOfAccounts ChartOfAccounts Node Class
FinancialStatementNodeType FinancialStatementNodeType Financial Statement Node Type
FinStmntNodeFormattedID FinStmntNodeFormattedID Hierarchy Node for Extraction
HierarchyNodeVal HierarchyNodeVal Node value
HierarchyNodeSequence HierarchyNodeSequence Hierarchy Sequence Number
HierarchyLevel HierarchyLevel Hierarchy Level
DebitCreditCode DebitCreditCode Single-Character Flag
_Text _Text
_FinancialStatementLeafItem _FinancialStatementLeafItem
_Hierarchy _Hierarchy
_ParentNode _ParentNode

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_FinancialStatementHierNode.
-- 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: IFISTMTHERNODE

CREATE VIEW I_FinancialStatementHierNode AS
SELECT
  FinancialStatementHierarchy,
  HierarchyNode,
  ValidityEndDate,
  ValidityStartDate,
  ParentNode,
  HierarchyVersion,
  FinancialStatementLeafItem,
  SequenceNumber,
  SignIsInverted,
  ChartOfAccounts,
  FinancialStatementNodeType,
  FinStmntNodeFormattedID,
  HierarchyNodeVal,
  HierarchyNodeSequence,
  HierarchyLevel,
  DebitCreditCode
FROM P_FinancialStatementHierNode
LEFT OUTER JOIN I_FinancialStatementHierNodeT AS _Text ON FinancialStatementHierarchy = _Text.FinancialStatementHierarchy AND HierarchyNode = _Text.HierarchyNode AND FinancialStatementLeafItem = ''  -- association [0..*]
LEFT OUTER JOIN I_FinancialStatementLeafItem AS _FinancialStatementLeafItem ON FinancialStatementLeafItem = _FinancialStatementLeafItem.FinancialStatementLeafItem  -- association [0..1]
LEFT OUTER JOIN I_FinancialStatementHier AS _Hierarchy ON FinancialStatementHierarchy = _Hierarchy.FinancialStatementHierarchy AND ValidityEndDate = _Hierarchy.ValidityEndDate  -- association [0..1]
LEFT OUTER JOIN I_FinancialStatementHierNode AS _ParentNode ON FinancialStatementHierarchy = _ParentNode.FinancialStatementHierarchy AND ValidityEndDate = _ParentNode.ValidityEndDate AND ParentNode = _ParentNode.HierarchyNode  -- association [0..1]
;