P_FinStmtHierarchy

DDL: P_FINSTMTHIERARCHY SQL: PFSITEMHIER Type: view BASIC

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)

SourceAliasJoin 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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;