C_FinStmntComparison

DDL: C_FINSTMNTCOMPARISON SQL: CFIFINSTMTCMP Type: view CONSUMPTION Package: FINS_FIS_GL

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

CategoryConsumption
StateC1
Line of BusinessAccounting and Financial Close
Application ComponentFI-GL-IS-2CL
CapabilitiesAnalytical Query
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Not Released
PackageAccounting and Financial Close for SAP S/4HANA Cloud Public Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
I_FinancialStatementCube I_FinancialStatementCube from

Parameters (18)

NameTypeDefault
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)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;