P_FinancialStatementHierNode
P_FinancialStatementHierNode is a Basic CDS View in SAP S/4HANA. It reads from 4 data sources (hrrp_node_n, hrrp_node_n, hrrp_node_n, hrrp_node_n) and exposes 65 fields with key fields FinancialStatementHierarchy, HierarchyNode, ValidityEndDate, HierarchyNode, ValidityEndDate.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| hrrp_node_n | hrrp_node_n | from |
| hrrp_node_n | hrrp_node_n | union_all |
| hrrp_node_n | hrrp_node_n | union_all |
| hrrp_node_n | hrrp_node_n | union_all |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFISTMTHIRND | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (65)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | FinancialStatementHierarchy | hrrp_node_n | hryid_42 | Hierarchy ID |
| KEY | HierarchyNode | hrrp_node_n | hrynode | Node |
| KEY | ValidityEndDate | hrrp_node_n | hryvalto | Valid To |
| ValidityStartDate | ||||
| ParentNode | hrrp_node_n | parnode | Par. Node | |
| HierarchyVersion | ||||
| ChartOfAccounts | hrrp_node_n | nodecls | Node Class | |
| NodeType | hrrp_node_n | nodetype | Object Type | |
| FinancialStatementLeafItem | ||||
| FinancialStatementNodeType | hrrp_node_n | fs_nodetype | Node Type | |
| FinStmntNodeFormattedID | hrrp_node_n | hrynodeext | Node for Extraction | |
| SequenceNumber | ||||
| SignIsInverted | Type of SIGN component in row type of a Ranges type | |||
| HierarchyNodeVal | hrrp_node_n | nodevalue | Value | |
| HierarchyNodeSequence | hrrp_node_n | hryseqnbr | Sequence Number | |
| HierarchyLevel | hrrp_node_n | hrylevel | Hierarchy Level | |
| hryid_42asFinancialStatementHierarchy | ||||
| KEY | HierarchyNode | Node | ||
| KEY | ValidityEndDate | hrrp_node_n | hryvalto | Valid To |
| ValidityStartDate | ||||
| ParentNode | Par. Node | |||
| HierarchyVersion | ||||
| ChartOfAccounts | hrrp_node_n | nodecls | Node Class | |
| NodeType | Object Type | |||
| FinancialStatementLeafItem | ||||
| FinancialStatementNodeType | Node Type | |||
| FinStmntNodeFormattedID | Node for Extraction | |||
| SequenceNumber | ||||
| SignIsInverted | hrrp_node_n | sign | Type of SIGN component in row type of a Ranges type | |
| HierarchyNodeVal | hrrp_node_n | nodevalue | Value | |
| HierarchyNodeSequence | hrrp_node_n | hryseqnbr | Sequence Number | |
| HierarchyLevel | hrrp_node_n | hrylevel | Hierarchy Level | |
| hryid_42asFinancialStatementHierarchy | ||||
| KEY | HierarchyNode | Node | ||
| KEY | ValidityEndDate | hrrp_node_n | hryvalto | Valid To |
| ValidityStartDate | ||||
| ParentNode | Par. Node | |||
| HierarchyVersion | ||||
| ChartOfAccounts | hrrp_node_n | nodecls | Node Class | |
| NodeType | Object Type | |||
| FinancialStatementLeafItem | ||||
| FinancialStatementNodeType | Node Type | |||
| FinStmntNodeFormattedID | Node for Extraction | |||
| SequenceNumber | ||||
| SignIsInverted | hrrp_node_n | sign | Type of SIGN component in row type of a Ranges type | |
| HierarchyNodeVal | hrrp_node_n | nodevalue | Value | |
| HierarchyNodeSequence | hrrp_node_n | hryseqnbr | Sequence Number | |
| HierarchyLevel | hrrp_node_n | hrylevel | Hierarchy Level | |
| hryid_42asFinancialStatementHierarchy | ||||
| KEY | HierarchyNode | Node | ||
| KEY | ValidityEndDate | hrrp_node_n | hryvalto | Valid To |
| ValidityStartDate | ||||
| ParentNode | Par. Node | |||
| HierarchyVersion | ||||
| ChartOfAccounts | hrrp_node_n | nodecls | Node Class | |
| NodeType | Object Type | |||
| FinancialStatementLeafItem | ||||
| FinancialStatementNodeType | Node Type | |||
| FinStmntNodeFormattedID | Node for Extraction | |||
| SequenceNumber | ||||
| SignIsInverted | hrrp_node_n | sign | Type of SIGN component in row type of a Ranges type | |
| HierarchyNodeVal | hrrp_node_n | nodevalue | Value | |
| HierarchyNodeSequence | hrrp_node_n | hryseqnbr | Sequence Number | |
| HierarchyLevel | hrrp_node_n | hrylevel | Hierarchy Level | |
| DebitCreditCode | hrrp_node_n | balind | Balance |
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 P_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: PFISTMTHIRND
CREATE VIEW P_FinancialStatementHierNode AS
SELECT
hrrp_node_n.hryid_42 AS FinancialStatementHierarchy,
hrrp_node_n.hrynode AS HierarchyNode,
hrrp_node_n.hryvalto AS ValidityEndDate,
cast(hrrp_node_n.hryvalfrom as fis_datab preserving type ) AS ValidityStartDate,
hrrp_node_n.parnode AS ParentNode,
cast('000000000000001' as hryversn ) AS HierarchyVersion,
hrrp_node_n.nodecls AS ChartOfAccounts,
hrrp_node_n.nodetype AS NodeType,
cast( hrrp_node_n.fs_leafitem as hrynode preserving type ) AS FinancialStatementLeafItem,
hrrp_node_n.fs_nodetype AS FinancialStatementNodeType,
hrrp_node_n.hrynodeext AS FinStmntNodeFormattedID,
concat(hrrp_node_n.hryseqnbr, hrrp_node_n.hrynode) AS SequenceNumber,
cast(hrrp_node_n.sign as hryattrvalue ) AS SignIsInverted,
hrrp_node_n.nodevalue AS HierarchyNodeVal,
hrrp_node_n.hryseqnbr AS HierarchyNodeSequence,
hrrp_node_n.hrylevel AS HierarchyLevel,
hrrp_node_n.balind as DebitCreditCode AS hryid_42asFinancialStatementHierarchy,
hrrp_node_n.balind AS DebitCreditCode
FROM hrrp_node_n
-- UNION ALL with additional select branch(es): hrrp_node_n
;
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