I_FXSpotRate

DDL: I_FXSPOTRATE SQL: IFXSPOTRATE Type: view COMPOSITE

FX Spot Rate Values

I_FXSpotRate is a Composite CDS View that provides data about "FX Spot Rate Values" in SAP S/4HANA. It reads from 2 data sources (I_ExchangeRate, P_FXSpotRate) and exposes 7 fields with key fields ExchangeRateType, LeadingCurrency, FollowingCurrency, CalendarDate, MarketDataReportingPeriod.

Data Sources (2)

SourceAliasJoin Type
I_ExchangeRate FXSpotRateDB inner
P_FXSpotRate P_FXSpotRate from

Parameters (3)

NameTypeDefault
P_KeyDate vdm_v_end_date
P_MarketDataReportingPeriod ftr_md_reportingperiod
P_ExchangeRateType kurst

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName IFXSPOTRATE view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label FX Spot Rate Values view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY ExchangeRateType I_ExchangeRate ExchangeRateType Exch. Rate Type
KEY LeadingCurrency I_ExchangeRate SourceCurrency From currency
KEY FollowingCurrency I_ExchangeRate TargetCurrency Trans. Currency
KEY CalendarDate FXSpotRate CalendarDate Calendar Date
KEY MarketDataReportingPeriod FXSpotRate MarketDataReportingPeriod
EffectiveDate FXSpotRate EffectiveDate Effective Date
ExchangeRateendasSpotExchangeRate

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_FXSpotRate.
-- 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: IFXSPOTRATE
-- Parameters: P_KeyDate : vdm_v_end_date, P_MarketDataReportingPeriod : ftr_md_reportingperiod, P_ExchangeRateType : kurst

CREATE VIEW I_FXSpotRate AS
SELECT
  FXSpotRateDB.ExchangeRateType AS ExchangeRateType,
  FXSpotRateDB.SourceCurrency AS LeadingCurrency,
  FXSpotRateDB.TargetCurrency AS FollowingCurrency,
  FXSpotRate.CalendarDate AS CalendarDate,
  FXSpotRate.MarketDataReportingPeriod AS MarketDataReportingPeriod,
  FXSpotRate.EffectiveDate AS EffectiveDate,
  case when FXSpotRateDB.ExchangeRate < 0 then division(-1,FXSpotRateDB.ExchangeRate,6) else FXSpotRateDB.ExchangeRate end as SpotExchangeRate AS ExchangeRateendasSpotExchangeRate
FROM P_FXSpotRate
INNER JOIN I_ExchangeRate AS FXSpotRateDB ON /* join condition not captured in parsed metadata */
;