I_FinancialStatementStructure

DDL: I_FINANCIALSTATEMENTSTRUCTURE SQL: IFSVSTR Type: view COMPOSITE

Financial Statement Version Structure

I_FinancialStatementStructure is a Composite CDS View that provides data about "Financial Statement Version Structure" in SAP S/4HANA. It reads from 2 data sources (I_FinancialStatementHier, I_FinancialStatementHierNode) and exposes 16 fields with key fields FinancialStatementHierarchy, ValidityEndDate, ChartOfAccountsendasChartOfAccounts, HierarchyNode, ParentNode. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_FinancialStatementHier h from
I_FinancialStatementHierNode n inner

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_FinancialStatementHierNodeT _HierNodeText $projection.FinancialStatementHierarchy = _HierNodeText.FinancialStatementHierarchy and $projection.ValidityEndDate = _HierNodeText.ValidityEndDate and $projection.HierarchyNode = _HierNodeText.HierarchyNode

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IFSVSTR view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Financial Statement Version Structure view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY FinancialStatementHierarchy I_FinancialStatementHier FinancialStatementHierarchy Hierarchy ID
KEY ValidityEndDate I_FinancialStatementHier ValidityEndDate ValidTo
KEY ChartOfAccountsendasChartOfAccounts
KEY HierarchyNode I_FinancialStatementHierNode HierarchyNode Node
KEY ParentNode I_FinancialStatementHierNode ParentNode Parent Node
FinancialStatementNodeType I_FinancialStatementHierNode FinancialStatementNodeType
HierarchyNodeValendasHierarchyNodeVal
ValidityStartDate I_FinancialStatementHier ValidityStartDate Validity Start Date
HierarchyType I_FinancialStatementHier HierarchyType Hierarchy Type
GroupChartOfAccountIsUsed I_FinancialStatementHier GroupChartOfAccountIsUsed
FunctionalAreaIsUsed I_FinancialStatementHier FunctionalAreaIsUsed
HierarchyLevel I_FinancialStatementHierNode HierarchyLevel Hierarchy Level
HierarchyNodeSequence I_FinancialStatementHierNode HierarchyNodeSequence
SignIsInverted I_FinancialStatementHierNode SignIsInverted
_HierText I_FinancialStatementHier _Text
_HierNodeText _HierNodeText

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 I_FinancialStatementStructure.
-- 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: IFSVSTR

CREATE VIEW I_FinancialStatementStructure AS
SELECT
  h.FinancialStatementHierarchy AS FinancialStatementHierarchy,
  h.ValidityEndDate AS ValidityEndDate,
  case h.ChartOfAccounts when '' then n.ChartOfAccounts else h.ChartOfAccounts end as ChartOfAccounts AS ChartOfAccountsendasChartOfAccounts,
  n.HierarchyNode AS HierarchyNode,
  n.ParentNode AS ParentNode,
  n.FinancialStatementNodeType AS FinancialStatementNodeType,
  case n.HierarchyNodeVal when '0ASSETS' then case when h.FinancialStatementAssetsItem is not null then h.FinancialStatementAssetsItem else 'ASSETS' end when '0LIABILITS' then case when h.FinStatementLiabilitiesItem is not null then h.FinStatementLiabilitiesItem else 'LIABILITS' end when '0BSLOSS' then case when h.FinancialStatementNetLossItem is not null then h.FinancialStatementNetLossItem else 'BSLOSS' end when '0BSPROFIT' then case when h.FinStatementNetProfitItem is not null then h.FinStatementNetProfitItem else 'BSPROFIT' end when '0PLPROFIT' then case when h.FinStatementProfitAndLossItem is not null then h.FinStatementProfitAndLossItem else 'PLPROFIT' end when '0BSNOTES' then case when h.FinancialStatementNotesItem is not null then h.FinancialStatementNotesItem else 'BSNOTES' end when '0NOTASSGND' then case when h.FinancialStatementOrphansItem is not null then h.FinancialStatementOrphansItem else 'NOTASSGND' end else n.HierarchyNodeVal end as HierarchyNodeVal AS HierarchyNodeValendasHierarchyNodeVal,
  h.ValidityStartDate AS ValidityStartDate,
  h.HierarchyType AS HierarchyType,
  h.GroupChartOfAccountIsUsed AS GroupChartOfAccountIsUsed,
  h.FunctionalAreaIsUsed AS FunctionalAreaIsUsed,
  n.HierarchyLevel AS HierarchyLevel,
  n.HierarchyNodeSequence AS HierarchyNodeSequence,
  n.SignIsInverted AS SignIsInverted,
  h._Text AS _HierText
FROM I_FinancialStatementHier AS h
INNER JOIN I_FinancialStatementHierNode AS n ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_FinancialStatementHierNodeT AS _HierNodeText ON FinancialStatementHierarchy = _HierNodeText.FinancialStatementHierarchy AND ValidityEndDate = _HierNodeText.ValidityEndDate AND HierarchyNode = _HierNodeText.HierarchyNode  -- association [0..*]
;