C_FinStmntComparison
Balance Sheet/Income Statement - Multidimensional
C_FinStmntComparison (Consumption)
Package: Explore, extend and adapt the SAP S/4HANA Public Edition with built-in and side-by-side extension capabilities.
Accounting and Financial Close
C_FinStmntComparison is a Consumption CDS View that provides data about "Balance Sheet/Income Statement - Multidimensional" in SAP S/4HANA. It reads from 1 data source (I_FinancialStatementCube) and exposes 36 fields. It has 5 associations to related views. Part of development package FINS_FIS_GL.
SAP API Hub
| Category | Consumption |
|---|---|
| State | C1 |
| Line of Business | Accounting and Financial Close |
| Application Component | FI-GL-IS-2CL |
| Capabilities | Analytical Query |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Not Released |
| Package | Accounting and Financial Close for SAP S/4HANA Cloud Public Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_FinancialStatementCube | I_FinancialStatementCube | from |
Parameters (18)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sydatum | |
| P_Language | sylangu | |
| P_BusinessUser | syuname | |
| P_Ledger | fins_ledger | |
| P_FinancialStatementVersion | hryid | |
| P_FromFiscalPeriod | fis_period_from | |
| P_ToFiscalPeriod | fis_period_to | |
| P_FiscalYear | fis_gjahr_no_conv | |
| P_ComparisonLedger | fis_ledger_cmp | |
| P_FromComparisonFiscalPeriod | fis_period_from_cmp | |
| P_ToComparisonFiscalPeriod | fis_period_to_cmp | |
| P_ComparisonFiscalYear | fis_gjahr_cmp_no_conv | |
| P_CurrencyRole | fins_curtp | |
| P_PlanningCategory | fcom_category | |
| P_Interval1FromFiscalPeriod | fis_period_from | |
| P_Interval1ToFiscalPeriod | fis_period_to | |
| P_Interval2FromFiscalPeriod | fis_period_from | |
| P_Interval2ToFiscalPeriod | fis_period_to |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_FinancialStatementHier | _FinancialStatementHier | _FinancialStatementHier.FinancialStatementHierarchy = :P_FinancialStatementVersion |
| [0..1] | I_CurrencyRole | _CurrencyRole | _CurrencyRole.CurrencyRole = :P_CurrencyRole |
| [0..1] | I_PlanningCategory | _PlanningCategory | _PlanningCategory.PlanningCategory = :P_PlanningCategory |
| [0..1] | I_Ledger | _Ledger | _Ledger.Ledger = :P_Ledger |
| [0..1] | I_Ledger | _ComparisonLedger | _ComparisonLedger.Ledger = :P_ComparisonLedger |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CFIFINSTMTCMP | view | |
| EndUserText.label | Balance Sheet/Income Statement - Multidimensional | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.query | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| Analytics.settings.maxProcessingEffort | #HIGH | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_QUERY | view |
Fields (36)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| lookupEntityI_Ledger | ||||
| resultElementLedger | ||||
| resultElementCalendarMonth | ||||
| resultElementCalendarYear | ||||
| resultElementLedger | ||||
| resultElementCalendarMonth | ||||
| resultElementCalendarYear | ||||
| resultElementFiscalPeriod | ||||
| resultElementFiscalPeriod | ||||
| resultElementFiscalPeriod | ||||
| resultElementFiscalPeriod | ||||
| FREECompanyCode | ||||
| GLAccount | GLAccount | General Ledger | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| Segment | Segment | Segment for Segmental Reporting | ||
| ChartOfAccounts | ChartOfAccounts | Chart of Accounts | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| AlternativeGLAccount | AlternativeGLAccount | Alternative G/L Account Number In Company Code | ||
| CountryChartOfAccounts | CountryChartOfAccounts | Alternative Chart of Accounts for Country/Region | ||
| CorporateGroupAccount | CorporateGroupAccount | Group Account Number | ||
| CorporateGroupChartOfAccounts | CorporateGroupChartOfAccounts | Group Chart of Accts | ||
| Currency | Currency | Valuation Crcy | ||
| AlternativeGLAccountIsUsed | AlternativeGLAccountIsUsed | Use Alternative Accounts | ||
| MEASURESPeriodBalanceAmount | ||||
| ComparisonPeriodBalanceAmount | ComparisonPeriodBalanceAmount | Comparison Period Balance | ||
| AbsoluteDifferenceAmount | Absolute Difference (Reporting Amount - Comparison Amount) | |||
| RelativeDifferenceAmount | Relative Difference (Percentage Difference) | |||
| GLAccountHierarchyKeyDate | GLAccountHierarchyKeyDate | Key Date of the GLAccount Hierarchy | ||
| ZeroBalanceAccountIsDisplayed | ZeroBalanceAccountIsDisplayed | Accounts with Zero Balance are Displayed | ||
| YrEndClsgPostingIsDisplayed | YrEndClsgPostingIsDisplayed | Including Year-End Closing Postings | ||
| BusinessTransactionCategory | BusinessTransactionCategory | Business Transaction Category | ||
| PeriodBalanceSignAdjdAmount | Period Balance with Sign Adjd based on hierarchy definition | |||
| ComprnPeriodBalSignAdjdAmount | Comparison Period Balance with sign adjusted bsd on HierDef | |||
| AbsltDifferenceSignAdjdAmount | Absolute Difference Sign Adjd (Reporting - Comparison Amt) | |||
| RelativeDifferenceSignAdjdAmt | Relative Difference Sign Adjusted (Percentage Difference) |
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 C_FinStmntComparison.
-- 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: CFIFINSTMTCMP
-- Parameters: P_KeyDate : sydatum, P_Language : sylangu, P_BusinessUser : syuname, P_Ledger : fins_ledger, P_FinancialStatementVersion : hryid, P_FromFiscalPeriod : fis_period_from, P_ToFiscalPeriod : fis_period_to, P_FiscalYear : fis_gjahr_no_conv, P_ComparisonLedger : fis_ledger_cmp, P_FromComparisonFiscalPeriod : fis_period_from_cmp, P_ToComparisonFiscalPeriod : fis_period_to_cmp, P_ComparisonFiscalYear : fis_gjahr_cmp_no_conv, P_CurrencyRole : fins_curtp, P_PlanningCategory : fcom_category, P_Interval1FromFiscalPeriod : fis_period_from, P_Interval1ToFiscalPeriod : fis_period_to, P_Interval2FromFiscalPeriod : fis_period_from, P_Interval2ToFiscalPeriod : fis_period_to
CREATE VIEW C_FinStmntComparison AS
SELECT
lookupEntity: 'I_Ledger' AS lookupEntityI_Ledger,
resultElement: 'Ledger' AS resultElementLedger,
resultElement: 'CalendarMonth' AS resultElementCalendarMonth,
resultElement: 'CalendarYear' AS resultElementCalendarYear,
resultElement: 'FiscalPeriod' AS resultElementFiscalPeriod,
GLAccount,
ProfitCenter,
Segment,
ChartOfAccounts,
FunctionalArea,
ControllingArea,
AlternativeGLAccount,
CountryChartOfAccounts,
CorporateGroupAccount,
CorporateGroupChartOfAccounts,
Currency,
AlternativeGLAccountIsUsed,
ComparisonPeriodBalanceAmount,
cast (1 as fis_abs_diff) AS AbsoluteDifferenceAmount,
cast (1 as fis_rel_diff) AS RelativeDifferenceAmount,
GLAccountHierarchyKeyDate,
ZeroBalanceAccountIsDisplayed,
YrEndClsgPostingIsDisplayed,
BusinessTransactionCategory,
cast ( 1 as fis_fsv_sa_repo_amount ) AS PeriodBalanceSignAdjdAmount,
cast ( 1 as fis_fsv_sa_comp_amount ) AS ComprnPeriodBalSignAdjdAmount,
cast ( 1 as fis_fsv_sa_abs_diff ) AS AbsltDifferenceSignAdjdAmount,
cast ( 1 as fis_fsv_sa_rel_diff ) AS RelativeDifferenceSignAdjdAmt
FROM I_FinancialStatementCube
LEFT OUTER JOIN I_FinancialStatementHier AS _FinancialStatementHier ON _FinancialStatementHier.FinancialStatementHierarchy = :P_FinancialStatementVersion -- association [0..1]
LEFT OUTER JOIN I_CurrencyRole AS _CurrencyRole ON _CurrencyRole.CurrencyRole = :P_CurrencyRole -- association [0..1]
LEFT OUTER JOIN I_PlanningCategory AS _PlanningCategory ON _PlanningCategory.PlanningCategory = :P_PlanningCategory -- association [0..1]
LEFT OUTER JOIN I_Ledger AS _Ledger ON _Ledger.Ledger = :P_Ledger -- association [0..1]
LEFT OUTER JOIN I_Ledger AS _ComparisonLedger ON _ComparisonLedger.Ledger = :P_ComparisonLedger -- 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