Import Query 3: Hierarchy Nodes
In the G/L Account example used in this lesson, the hierarchy nodes and parent nodes are imported using the C_GLAccountHierarchyNode CDS view.
The G/L account, Hierarchy ID, will be inserted as a prefix for nodes and parent nodes to create unique nodes by hierarchy. The Hierarchy ID is the same as the Financial Statement Version ID.
In the example used in this lesson, the SACAccountType is used to populate account type property. It includes the following selections:
- G/L Account Hierarchy
- Node
- Parent Node
- SACAccountType
Financial Statement Version Items: Validity Start and End Dates
There can be several versions of an FSV present, so it would be best to use the Validity End Date and Validity Start Date fields to narrow down to one version of the FSV.
The FAGL_011TC table shows the last changed date for the FSV items. You can run the query in SAP Analytics Cloud and include the Hierarchy ID in the filter and put the Validity Start Date and Validity End Date in the Selected Data. With the results, you can determine how you would like to set the validity filters.
A financial statement version is assigned to one specific chart of accounts, so you should not specify the chart of accounts during the loading of nodes or node texts.
Financial Statement Version Items: Changes to Account Hierarchy in SAP S/4HANA
Whenever a change to an account hierarchy (financial statement version) has been made in SAP S/4HANA, the hierarchy may need to be replicated to the HRRP tables so that SAP Analytics Cloud can access it.
The SAP S/4HANA transaction code for this is HRRP_REP (as an alternative transaction, SA38 or SE38, may be used with program, FINS_REPLICATION_HIER_N).