P_FSVHierarchy

DDL: P_FSVHIERARCHY SQL: PFSVHIER Type: view BASIC

P_FSVHierarchy is a Basic CDS View in SAP S/4HANA. It reads from 3 data sources (I_FinancialStatementItem, P_FinStmtLeafItem, t011) and exposes 33 fields with key fields HierarchyUniqueNodeID, UniqueParentID, versn, ergsl, ktopl.

Data Sources (3)

SourceAliasJoin Type
I_FinancialStatementItem I_FinancialStatementItem from
P_FinStmtLeafItem P_FinStmtLeafItem union_all
t011 t011 inner

Annotations (6)

NameValueLevelField
VDM.private true view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName PFSVHIER view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
AbapCatalog.compiler.compareFilter true view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY HierarchyUniqueNodeID
KEY UniqueParentID
KEY versn I_FinancialStatementItem FinancialStatementVariant Version
KEY ergsl I_FinancialStatementItem FinancialStatementItem FS Item
KEY ktopl t011 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.
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
HierarchyUniqueNodeID
KEY UniqueParentID P_FinStmtLeafItem UniqueParentID
KEY versn P_FinStmtLeafItem versn Version
KEY 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.
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_FSVHierarchy.
-- 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: PFSVHIER

CREATE VIEW P_FSVHierarchy 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,
  t011.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,
  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,
  P_FinStmtLeafItem.ergs2 AS ergs2
FROM I_FinancialStatementItem
INNER JOIN t011 ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_FinStmtLeafItem
;