I_FinancialStatementCube
Virtual Financial Statement Cube
I_FinancialStatementCube is a Composite CDS View (Cube) that provides data about "Virtual Financial Statement Cube" in SAP S/4HANA. It reads from 1 data source (I_GLAccountLineItem) and exposes 53 fields with key fields Ledger, SourceLedger, CompanyCode, FiscalYear, AccountingDocument. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountLineItem | I_GLAccountLineItem | from |
Parameters (11)
| Name | Type | Default |
|---|---|---|
| P_FinancialStatementVersion | hryid | |
| P_FromFiscalPeriod | fis_period_from | |
| P_ToFiscalPeriod | fis_period_to | |
| P_FiscalYear | fis_gjahr_no_conv | |
| P_FromComparisonFiscalPeriod | fis_period_from_cmp | |
| P_ToComparisonFiscalPeriod | fis_period_to_cmp | |
| P_ComparisonFiscalYear | fis_gjahr_cmp_no_conv | |
| P_Ledger | fins_ledger | |
| P_ComparisonLedger | fis_ledger_cmp | |
| P_CurrencyRole | fis_curtp | |
| P_PlanningCategory | fcom_category |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | E_JournalEntryItem | _Extension | $projection.SourceLedger = _Extension.SourceLedger and $projection.CompanyCode = _Extension.CompanyCode and $projection.FiscalYear = _Extension.FiscalYear and $projection.AccountingDocument = _Extension.AccountingDocument and $projection.LedgerGLLineItem = _Extension.LedgerGLLineItem |
| [0..1] | I_FinancialStatementLeafItem | _FinancialStatementLeafItem | $projection.FinancialStatementLeafItem = _FinancialStatementLeafItem.FinancialStatementLeafItem |
| [1..1] | I_Currency | _Currency | $projection.Currency = _Currency.Currency |
| [0..1] | I_ChartOfAccounts | _CorpGroupChartOfAccounts | $projection.corporategroupchartofaccounts = _CorpGroupChartOfAccounts.ChartOfAccounts |
| [0..1] | I_GLAccountInChartOfAccounts | _CorporateGroupAccount | $projection.corporategroupchartofaccounts = _CorporateGroupAccount.ChartOfAccounts and $projection.CorporateGroupAccount = _CorporateGroupAccount.GLAccount |
| [0..1] | I_AlternativeGLAccountIsUsed | _AlternativeGLAccountIsUsed | $projection.AlternativeGLAccountIsUsed = _AlternativeGLAccountIsUsed.AlternativeGLAccountIsUsed |
| [0..1] | I_Indicator | _ZeroBalanceAccountIsDisplayed | $projection.ZeroBalanceAccountIsDisplayed = _ZeroBalanceAccountIsDisplayed.IndicatorValue |
| [0..1] | I_Indicator | _YrEndClsgPostingIsDisplayed | $projection.YrEndClsgPostingIsDisplayed = _YrEndClsgPostingIsDisplayed.IndicatorValue |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IFIFINSTMTCUBE | view | |
| EndUserText.label | Virtual Financial Statement Cube | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.representativeKey | LedgerGLLineItem | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| Analytics.readClassName | CL_FIS_FINS_STMNT_CDS | view |
Fields (53)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Ledger | Ledger | Ledger | |
| _Ledger | _Ledger | |||
| KEY | SourceLedger | SourceLedger | Source Ledger | |
| _SourceLedger | _SourceLedger | |||
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| _CompanyCode | _CompanyCode | |||
| KEY | FiscalYear | G/L Fiscal Year | ||
| _FiscalYear | _FiscalYear | |||
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| _JournalEntry | _JournalEntry | |||
| KEY | LedgerGLLineItem | LedgerGLLineItem | Journal Entry Item | |
| LedgerFiscalYear | LedgerFiscalYear | |||
| _LedgerFiscalYear | _LedgerFiscalYear | |||
| ControllingArea | ControllingArea | Controlling Area | ||
| _ControllingArea | _ControllingArea | |||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| _ChartOfAccounts | _ChartOfAccounts | |||
| GLAccount | GLAccount | General Ledger | ||
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | |||
| FinancialStatementLeafItem | Financial Statement Leaf Item | |||
| _FinancialStatementLeafItem | _FinancialStatementLeafItem | |||
| ProfitCenter | ProfitCenter | Profit Center | ||
| _ProfitCenter | _ProfitCenter | |||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| _FunctionalArea | _FunctionalArea | |||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| _FiscalPeriod | _FiscalPeriod | |||
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| _FiscalYearVariant | _FiscalYearVariant | |||
| AlternativeGLAccount | AlternativeGLAccount | Group Account | ||
| _AlternativeGLAccount | _AlternativeGLAccount | |||
| CountryChartOfAccounts | CountryChartOfAccounts | Chart of Accts | ||
| _CountryChartOfAccounts | _CountryChartOfAccounts | |||
| Segment | Segment | Segment number | ||
| _Segment | _Segment | |||
| CorporateGroupAccount | _GLAccountInChartOfAccounts | CorporateGroupAccount | Group Account Number | |
| _CorporateGroupAccount | _CorporateGroupAccount | |||
| CorporateGroupChartOfAccounts | _ChartOfAccounts | CorporateGroupChartOfAccounts | Group ChtAccts | |
| _CorpGroupChartOfAccounts | _CorpGroupChartOfAccounts | |||
| AlternativeGLAccountIsUsed | ||||
| _AlternativeGLAccountIsUsed | _AlternativeGLAccountIsUsed | |||
| Currency | Local Currency | |||
| _Currency | _Currency | |||
| PeriodBalanceAmount | ||||
| ComparisonPeriodBalanceAmount | ||||
| GLAccountHierarchyKeyDate | ||||
| ZeroBalanceAccountIsDisplayed | ||||
| _ZeroBalanceAccountIsDisplayed | _ZeroBalanceAccountIsDisplayed | |||
| YrEndClsgPostingIsDisplayed | ||||
| _YrEndClsgPostingIsDisplayed | _YrEndClsgPostingIsDisplayed | |||
| GLRecordType | GLRecordType | Record Type | ||
| BusinessTransactionCategory | BusinessTransactionCategory | Business Transaction Category | ||
| _BusinessTransactionCategory | _BusinessTransactionCategory |
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_FinancialStatementCube.
-- 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: IFIFINSTMTCUBE
-- Parameters: P_FinancialStatementVersion : hryid, P_FromFiscalPeriod : fis_period_from, P_ToFiscalPeriod : fis_period_to, P_FiscalYear : fis_gjahr_no_conv, P_FromComparisonFiscalPeriod : fis_period_from_cmp, P_ToComparisonFiscalPeriod : fis_period_to_cmp, P_ComparisonFiscalYear : fis_gjahr_cmp_no_conv, P_Ledger : fins_ledger, P_ComparisonLedger : fis_ledger_cmp, P_CurrencyRole : fis_curtp, P_PlanningCategory : fcom_category
CREATE VIEW I_FinancialStatementCube AS
SELECT
Ledger,
SourceLedger,
CompanyCode,
cast( FiscalYear as fis_gjahr_no_conv preserving type ) AS FiscalYear,
AccountingDocument,
LedgerGLLineItem,
LedgerFiscalYear,
ControllingArea,
ChartOfAccounts,
GLAccount,
cast(concat(ChartOfAccounts,concat(lpad(GLAccount,12,'0'),' A')) as fins_fsleaf) AS FinancialStatementLeafItem,
ProfitCenter,
FunctionalArea,
FiscalPeriod,
FiscalYearVariant,
AlternativeGLAccount,
CountryChartOfAccounts,
Segment,
_GLAccountInChartOfAccounts.CorporateGroupAccount AS CorporateGroupAccount,
_ChartOfAccounts.CorporateGroupChartOfAccounts AS CorporateGroupChartOfAccounts,
cast (' ' as fis_disalteracct) AS AlternativeGLAccountIsUsed,
cast (CompanyCodeCurrency as fis_waers) AS Currency,
cast( 1 as fis_repo_amount ) AS PeriodBalanceAmount,
cast( 1 as fis_comp_amount ) AS ComparisonPeriodBalanceAmount,
cast( '00000000' as fis_glaccthier_keydate ) AS GLAccountHierarchyKeyDate,
cast( ' ' as fis_zerobalance) AS ZeroBalanceAccountIsDisplayed,
cast( ' ' as fis_inclyearendpostings ) AS YrEndClsgPostingIsDisplayed,
GLRecordType,
BusinessTransactionCategory
FROM I_GLAccountLineItem
LEFT OUTER JOIN E_JournalEntryItem AS _Extension ON SourceLedger = _Extension.SourceLedger AND CompanyCode = _Extension.CompanyCode AND FiscalYear = _Extension.FiscalYear AND AccountingDocument = _Extension.AccountingDocument AND LedgerGLLineItem = _Extension.LedgerGLLineItem -- association [1..1]
LEFT OUTER JOIN I_FinancialStatementLeafItem AS _FinancialStatementLeafItem ON FinancialStatementLeafItem = _FinancialStatementLeafItem.FinancialStatementLeafItem -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON Currency = _Currency.Currency -- association [1..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _CorpGroupChartOfAccounts ON corporategroupchartofaccounts = _CorpGroupChartOfAccounts.ChartOfAccounts -- association [0..1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _CorporateGroupAccount ON corporategroupchartofaccounts = _CorporateGroupAccount.ChartOfAccounts AND CorporateGroupAccount = _CorporateGroupAccount.GLAccount -- association [0..1]
LEFT OUTER JOIN I_AlternativeGLAccountIsUsed AS _AlternativeGLAccountIsUsed ON AlternativeGLAccountIsUsed = _AlternativeGLAccountIsUsed.AlternativeGLAccountIsUsed -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _ZeroBalanceAccountIsDisplayed ON ZeroBalanceAccountIsDisplayed = _ZeroBalanceAccountIsDisplayed.IndicatorValue -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _YrEndClsgPostingIsDisplayed ON YrEndClsgPostingIsDisplayed = _YrEndClsgPostingIsDisplayed.IndicatorValue -- association [0..1]
;
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