C_CurrencyRateCalculation

DDL: C_CURRENCYRATECALCULATION SQL: CRCYRATECALC Type: view CONSUMPTION

Currency Exchange Rate Calculation

C_CurrencyRateCalculation is a Consumption CDS View that provides data about "Currency Exchange Rate Calculation" in SAP S/4HANA. It reads from 1 data source (I_Language) and exposes 2 fields with key field TargetCurrency.

Data Sources (1)

SourceAliasJoin Type
I_Language I_Language from

Parameters (5)

NameTypeDefault
P_Date sydatum
P_SAPClient symandt
P_SourceCurrency vdm_v_display_currency
P_TargetCurrency vdm_v_display_currency
P_AmountInSourceCurrency fis_revenue_hsl_p

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CRCYRATECALC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Currency Exchange Rate Calculation view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY TargetCurrency
trueasRecalculatedAmountInTargetCrcy

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_CurrencyRateCalculation.
-- 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: CRCYRATECALC
-- Parameters: P_Date : sydatum, P_SAPClient : symandt, P_SourceCurrency : vdm_v_display_currency, P_TargetCurrency : vdm_v_display_currency, P_AmountInSourceCurrency : fis_revenue_hsl_p

CREATE VIEW C_CurrencyRateCalculation AS
SELECT
  :P_TargetCurrency AS TargetCurrency,
  currency_conversion( client => :P_SAPClient, amount => :P_AmountInSourceCurrency, source_currency => :P_SourceCurrency, target_currency => :P_TargetCurrency, exchange_rate_date => :P_Date, exchange_rate_type => 'M', round => #CDSBoolean.true, decimal_shift => #CDSBoolean.true, decimal_shift_back => #CDSBoolean.true ) as RecalculatedAmountInTargetCrcy AS trueasRecalculatedAmountInTargetCrcy
FROM I_Language
;