P_FinStmtHierarchy
P_FinStmtHierarchy is a Basic CDS View in SAP S/4HANA. It reads from 7 data sources and exposes 36 fields with key fields HierarchyUniqueNodeID, UniqueParentID, versn, ergsl, ktopl.
Data Sources (7)
| Source | Alias | Join Type |
|---|---|---|
| P_FSHierarchy_Calc_Item | calc_item | left_outer |
| P_FSHierarchy_Calc_Item | calc_item | left_outer |
| P_Distinct_Coa_Fagl_Zc | dis_zc | inner |
| I_FinancialStatementItem | I_FinancialStatementItem | from |
| P_FinStmtLeafItem | P_FinStmtLeafItem | union_all |
| t011 | t011 | inner |
| t011 | t011 | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | PFSITEMHIER | view | |
| AbapCatalog.compiler.compareFilter | true | view |
Fields (36)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | HierarchyUniqueNodeID | |||
| KEY | UniqueParentID | |||
| KEY | versn | I_FinancialStatementItem | FinancialStatementVariant | Version |
| KEY | ergsl | I_FinancialStatementItem | FinancialStatementItem | FS Item |
| KEY | ktopl | P_Distinct_Coa_Fagl_Zc | ktopl | G/L Chart of Accounts |
| KEY | saknr | G/L Account | ||
| KEY | fkber | Functional Area | ||
| type | I_FinancialStatementItem | NodeType | Worklist Type | |
| Description | Well Code Des. | |||
| MaintenanceLanguage | t011 | dspra | Maint. Language | |
| xsoll | Debit Balance | |||
| xhabn | Credit Balance | |||
| id | I_FinancialStatementItem | HierarchyNode | WorklistID | |
| parent | I_FinancialStatementItem | ParentNode | UUID | |
| child | I_FinancialStatementItem | ChildNode | ID | |
| nextn | I_FinancialStatementItem | SiblingNode | ID | |
| stufe | Level Number | |||
| ergs2 | I_FinancialStatementItem | OffsettingItem | Credit Item Key | |
| HierarchyUniqueNodeID | ||||
| KEY | UniqueParentID | P_FinStmtLeafItem | UniqueParentID | |
| KEY | versn | P_FinStmtLeafItem | versn | Version |
| ergsl | P_FinStmtLeafItem | ergsl | FS Item | |
| KEY | ktopl | P_FinStmtLeafItem | ktopl | G/L Chart of Accounts |
| KEY | saknr | P_FinStmtLeafItem | saknr | G/L Account |
| KEY | fkber | P_FinStmtLeafItem | fkber | Functional Area |
| type | P_FinStmtLeafItem | type | Worklist Type | |
| Description | P_FinStmtLeafItem | Description | Well Code Des. | |
| MaintenanceLanguage | t011 | dspra | Maint. Language | |
| xsoll | P_FinStmtLeafItem | xsoll | Debit Balance | |
| xhabn | P_FinStmtLeafItem | xhabn | Credit Balance | |
| id | P_FinStmtLeafItem | id | WorklistID | |
| parent | P_FinStmtLeafItem | parent | UUID | |
| child | P_FinStmtLeafItem | child | ID | |
| nextn | P_FinStmtLeafItem | nextn | ID | |
| stufe | P_FinStmtLeafItem | stufe | Level Number | |
| ergs2 | P_FinStmtLeafItem | ergs2 | Credit Item Key |
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_FinStmtHierarchy.
-- 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: PFSITEMHIER
CREATE VIEW P_FinStmtHierarchy AS
SELECT
cast(I_FinancialStatementItem.HierarchyNode as abap.char(50)) AS HierarchyUniqueNodeID,
cast (I_FinancialStatementItem.ParentNode as abap.char(50)) AS UniqueParentID,
I_FinancialStatementItem.FinancialStatementVariant AS versn,
I_FinancialStatementItem.FinancialStatementItem AS ergsl,
dis_zc.ktopl AS ktopl,
cast ('' as saknr) AS saknr,
cast ('' as fkber) AS fkber,
I_FinancialStatementItem.NodeType AS type,
cast ('' as abap.char(50)) AS Description,
t011.dspra AS MaintenanceLanguage,
cast ('' as xsoll_f02e) AS xsoll,
cast ('' as xhabn_f02e) AS xhabn,
I_FinancialStatementItem.HierarchyNode AS id,
I_FinancialStatementItem.ParentNode AS parent,
I_FinancialStatementItem.ChildNode AS child,
I_FinancialStatementItem.SiblingNode AS nextn,
cast(I_FinancialStatementItem.FinStatementHierarchyLevelVal as abap.int4) AS stufe,
I_FinancialStatementItem.OffsettingItem AS ergs2
FROM I_FinancialStatementItem
INNER JOIN t011 ON /* join condition not captured in parsed metadata */
INNER JOIN P_Distinct_Coa_Fagl_Zc AS dis_zc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_FSHierarchy_Calc_Item AS calc_item ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_FinStmtLeafItem
;
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