C_StatementOfChanges

DDL: C_STATEMENTOFCHANGES SQL: CSTMNTOFCHANGES Type: view CONSUMPTION

Statement of Changes

C_StatementOfChanges is a Consumption CDS View that provides data about "Statement of Changes" in SAP S/4HANA. It reads from 1 data source (I_StatementOfChanges) and exposes 25 fields with key fields CompanyCode, FiscalYear, StatementOfChangesSortOrder, FinancialTransactionType. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_StatementOfChanges I_StatementOfChanges from

Parameters (8)

NameTypeDefault
P_BusinessUser syuname
P_Language sylangu
P_StatementOfChangesType bspl_account_type
P_CompanyCode fis_bukrs
P_Ledger fis_rldnr
P_FiscalYear fis_gjahr
P_FiscalPeriod fis_period_to
P_CurrencyRole fins_curtp

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_Ledger _LedgerVH _LedgerVH.Ledger = :P_Ledger
[0..1] I_CompanyCode _CompanyCodeVH _CompanyCodeVH.CompanyCode = :P_CompanyCode
[0..1] I_FiscalYearForCompanyCode _FiscalYearVH _FiscalYearVH.FiscalYear = :P_FiscalYear and _FiscalYearVH.CompanyCode = :P_CompanyCode
[0..1] I_FiscalYearPeriodForLedger _FiscalYearPeriodVH _FiscalYearPeriodVH.CompanyCode = :P_CompanyCode and _FiscalYearPeriodVH.Ledger = :P_Ledger and _FiscalYearPeriodVH.FiscalYear = :P_FiscalYear and _FiscalYearPeriodVH.FiscalPeriod = :P_FiscalPeriod
[0..1] I_LedgerCompanyCodeCrcyRolesVH _CurrencyRoleVH _CurrencyRoleVH.Ledger = :P_Ledger and _CurrencyRoleVH.CompanyCode = :P_CompanyCode and _CurrencyRoleVH.CurrencyRole = :P_CurrencyRole
[0..1] I_StatementOfChangesType _StatementOfChangesTypeVH _StatementOfChangesTypeVH.StatementOfChangesType = :P_StatementOfChangesType

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CSTMNTOFCHANGES view
AbapCatalog.buffering.status #NOT_ALLOWED view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
VDM.viewType #CONSUMPTION view
Analytics.query true view
EndUserText.label Statement of Changes view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.modelingPattern #ANALYTICAL_QUERY view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view

Fields (25)

KeyFieldSource TableSource FieldDescription
lookupEntityI_UserSettingsForCompanyCode
resultElementCompanyCode
resultElementLedger
resultElementFiscalYear
resultElementFiscalPeriod
resultElementCompanyCodeCurrencyRole
P_StatementOfChangesType
P_CompanyCode
P_Ledger
P_FiscalYear
P_FiscalPeriod
Ledger
KEY CompanyCode SoC CompanyCode Receiver Company Code
KEY FiscalYear SoC FiscalYear G/L Fiscal Year
KEY StatementOfChangesSortOrder SoC StatementOfChangesSortOrder
KEY FinancialTransactionType SoC FinancialTransactionType Transact. Type
DisplayCurrency SoC DisplayCurrency Display Currency
AmountInDisplayCurrency SoC AmountInDisplayCurrency
GLAccount SoC GLAccount General Ledger
ProfitCenter SoC ProfitCenter Profit Center
ControllingArea SoC ControllingArea Controlling Area
Segment SoC Segment Segment number
PartnerCompany SoC PartnerCompany Trading Partner
ChartOfAccounts SoC ChartOfAccounts Node Class
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts

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_StatementOfChanges.
-- 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: CSTMNTOFCHANGES
-- Parameters: P_BusinessUser : syuname, P_Language : sylangu, P_StatementOfChangesType : bspl_account_type, P_CompanyCode : fis_bukrs, P_Ledger : fis_rldnr, P_FiscalYear : fis_gjahr, P_FiscalPeriod : fis_period_to, P_CurrencyRole : fins_curtp

CREATE VIEW C_StatementOfChanges AS
SELECT
  lookupEntity: 'I_UserSettingsForCompanyCode' AS lookupEntityI_UserSettingsForCompanyCode,
  resultElement: 'CompanyCode' AS resultElementCompanyCode,
  resultElement: 'Ledger' AS resultElementLedger,
  resultElement: 'FiscalYear' AS resultElementFiscalYear,
  resultElement: 'FiscalPeriod' AS resultElementFiscalPeriod,
  resultElement: 'CompanyCodeCurrencyRole' AS resultElementCompanyCodeCurrencyRole,
  binding: [ { targetElement : 'Ledger' , type : #PARAMETER, value : 'P_Ledger' AS P_StatementOfChangesType,
  P_CompanyCode: $parameters.P_CompanyCode AS P_CompanyCode,
  P_Ledger: $parameters.P_Ledger AS P_Ledger,
  P_FiscalYear: $parameters.P_FiscalYear AS P_FiscalYear,
  P_FiscalPeriod: $parameters.P_FiscalPeriod AS P_FiscalPeriod,
  SoC.CompanyCode AS CompanyCode,
  SoC.FiscalYear AS FiscalYear,
  SoC.StatementOfChangesSortOrder AS StatementOfChangesSortOrder,
  SoC.FinancialTransactionType AS FinancialTransactionType,
  SoC.DisplayCurrency AS DisplayCurrency,
  SoC.AmountInDisplayCurrency AS AmountInDisplayCurrency,
  SoC.GLAccount AS GLAccount,
  SoC.ProfitCenter AS ProfitCenter,
  SoC.ControllingArea AS ControllingArea,
  SoC.Segment AS Segment,
  SoC.PartnerCompany AS PartnerCompany,
  SoC.ChartOfAccounts AS ChartOfAccounts
FROM I_StatementOfChanges
LEFT OUTER JOIN I_Ledger AS _LedgerVH ON _LedgerVH.Ledger = :P_Ledger  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCodeVH ON _CompanyCodeVH.CompanyCode = :P_CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_FiscalYearForCompanyCode AS _FiscalYearVH ON _FiscalYearVH.FiscalYear = :P_FiscalYear AND _FiscalYearVH.CompanyCode = :P_CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_FiscalYearPeriodForLedger AS _FiscalYearPeriodVH ON _FiscalYearPeriodVH.CompanyCode = :P_CompanyCode AND _FiscalYearPeriodVH.Ledger = :P_Ledger AND _FiscalYearPeriodVH.FiscalYear = :P_FiscalYear AND _FiscalYearPeriodVH.FiscalPeriod = :P_FiscalPeriod  -- association [0..1]
LEFT OUTER JOIN I_LedgerCompanyCodeCrcyRolesVH AS _CurrencyRoleVH ON _CurrencyRoleVH.Ledger = :P_Ledger AND _CurrencyRoleVH.CompanyCode = :P_CompanyCode AND _CurrencyRoleVH.CurrencyRole = :P_CurrencyRole  -- association [0..1]
LEFT OUTER JOIN I_StatementOfChangesType AS _StatementOfChangesTypeVH ON _StatementOfChangesTypeVH.StatementOfChangesType = :P_StatementOfChangesType  -- association [0..1]
;