I_FinancialStatementStructure
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)
| Source | Alias | Join Type |
|---|---|---|
| I_FinancialStatementHier | h | from |
| I_FinancialStatementHierNode | n | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_FinancialStatementHierNodeT | _HierNodeText | $projection.FinancialStatementHierarchy = _HierNodeText.FinancialStatementHierarchy and $projection.ValidityEndDate = _HierNodeText.ValidityEndDate and $projection.HierarchyNode = _HierNodeText.HierarchyNode |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
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