P_FXSpotRateFavorite

DDL: P_FXSPOTRATEFAVORITE SQL: PFXSPOTRATEFAV Type: view COMPOSITE

P_FXSpotRateFavorite is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_CurrencyPair, I_ExchangeRate) and exposes 4 fields with key fields LeadingCurrency, FollowingCurrency, EffectiveDate.

Data Sources (2)

SourceAliasJoin Type
I_CurrencyPair CurrencyPair from
I_ExchangeRate FXSpotRate inner

Parameters (1)

NameTypeDefault
P_ExchangeRateType kurst

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PFXSPOTRATEFAV view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY LeadingCurrency I_ExchangeRate SourceCurrency From currency
KEY FollowingCurrency I_ExchangeRate TargetCurrency Trans. Currency
KEY EffectiveDate I_ExchangeRate ExchangeRateEffectiveDate
SpotExchangeRate I_ExchangeRate EffectiveExchangeRate Effective Exch. Rate

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 P_FXSpotRateFavorite.
-- 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: PFXSPOTRATEFAV
-- Parameters: P_ExchangeRateType : kurst

CREATE VIEW P_FXSpotRateFavorite AS
SELECT
  FXSpotRate.SourceCurrency AS LeadingCurrency,
  FXSpotRate.TargetCurrency AS FollowingCurrency,
  FXSpotRate.ExchangeRateEffectiveDate AS EffectiveDate,
  FXSpotRate.EffectiveExchangeRate AS SpotExchangeRate
FROM I_CurrencyPair AS CurrencyPair
INNER JOIN I_ExchangeRate AS FXSpotRate ON /* join condition not captured in parsed metadata */
;