R_CurrencyExchangeRateTP

DDL: R_CURRENCYEXCHANGERATETP Type: view_entity TRANSACTIONAL

Currency Exchange Rate

R_CurrencyExchangeRateTP is a Transactional CDS View that provides data about "Currency Exchange Rate" in SAP S/4HANA. It reads from 1 data source (R_CurrencyExchangeRate) and exposes 31 fields with key fields ExchangeRateType, SourceCurrency, TargetCurrency, ExchangeRateEffectiveDate. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_CurrencyExchangeRate R_CurrencyExchangeRate from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_ExchangeRateTypeText _ExchangeRateTypeText $projection.ExchangeRateTypeForEdit = _ExchangeRateTypeText.ExchangeRateType and _ExchangeRateTypeText.Language = $session.system_language
[0..1] I_CurrencyText _SourceCurrencyText $projection.SourceCurrencyForEdit = _SourceCurrencyText.Currency and _SourceCurrencyText.Language = $session.system_language
[0..1] I_CurrencyText _TargetCurrencyText $projection.TargetCurrencyForEdit = _TargetCurrencyText.Currency and _TargetCurrencyText.Language = $session.system_language
[0..1] R_CrcyExchangeRateQuotationTxt _ExchangeRateQuotationText $projection.ExchangeRateQuotation = _ExchangeRateQuotationText.ExchangeRateQuotation and _ExchangeRateQuotationText.Language = $session.system_language
[0..1] I_ExchangeRateType _ExchangeRateType $projection.ExchangeRateTypeForEdit = _ExchangeRateType.ExchangeRateType

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Currency Exchange Rate view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.sapObjectNodeType.name ExchangeRate view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY ExchangeRateType ExchangeRateType Exch. Rate Type
KEY SourceCurrency
KEY TargetCurrency
KEY ExchangeRateEffectiveDate
ExchangeRateTypeForEdit ExchangeRateType Exch. Rate Type
SourceCurrencyForEdit
TargetCurrencyForEdit
ExchangeRateEffectiveDateFoEd
CrcyExchangeRateValidOnDate CrcyExchangeRateValidOnDate
ExchangeRate ExchangeRate Exchange rate
NumberOfSourceCurrencyUnits NumberOfSourceCurrencyUnits Ratio (from)
NumberOfTargetCurrencyUnits NumberOfTargetCurrencyUnits Ratio (to)
ExchangeRateQuotation ExchangeRateQuotation
AbsoluteExchangeRate AbsoluteExchangeRate Absolute Exchange Rate
EffectiveExchangeRate EffectiveExchangeRate Effective Exch. Rate
DirectQuotedEffectiveExchRate DirectQuotedEffectiveExchRate
IndirectQuotedEffctvExchRate
StatisticsExchangeRate StatisticsExchangeRate
CurrencyPair CurrencyPair
CurrencyPairText CurrencyPairText
ExchangeRateRatioValue ExchangeRateRatioValue
NumberOfIncompleteFields
CrcyExchangeRateCriticality
LocalLastChangeDateTime
LastChangeDateTime
CrcyExchangeRateIsAuthorized
_SourceCurrencyText _SourceCurrencyText
_TargetCurrencyText _TargetCurrencyText
_ExchangeRateTypeText _ExchangeRateTypeText
_ExchangeRateQuotationText _ExchangeRateQuotationText
_ExchangeRateType _ExchangeRateType

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 R_CurrencyExchangeRateTP.
-- 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.

CREATE VIEW R_CurrencyExchangeRateTP AS
SELECT
  ExchangeRateType,
  cast(SourceCurrency as fac_sourcecurrency) AS SourceCurrency,
  cast(TargetCurrency as fac_targetcurrency) AS TargetCurrency,
  cast(ExchangeRateEffectiveDate as abap.dats ) AS ExchangeRateEffectiveDate,
  ExchangeRateType AS ExchangeRateTypeForEdit,
  cast(SourceCurrency as fac_sourcecurrency) AS SourceCurrencyForEdit,
  cast(TargetCurrency as fac_targetcurrency) AS TargetCurrencyForEdit,
  cast(ExchangeRateEffectiveDate as abap.dats) AS ExchangeRateEffectiveDateFoEd,
  CrcyExchangeRateValidOnDate,
  ExchangeRate,
  NumberOfSourceCurrencyUnits,
  NumberOfTargetCurrencyUnits,
  ExchangeRateQuotation,
  AbsoluteExchangeRate,
  EffectiveExchangeRate,
  DirectQuotedEffectiveExchRate,
  cast(IndirectQuotedEffctvExchRate as fis_indirect_exchange_rate) AS IndirectQuotedEffctvExchRate,
  StatisticsExchangeRate,
  CurrencyPair,
  CurrencyPairText,
  ExchangeRateRatioValue,
  cast(0 as abap.int1) AS NumberOfIncompleteFields,
  cast(0 as abap.int1) AS CrcyExchangeRateCriticality,
  cast(0.0000000 as abp_lastchange_tstmpl) AS LocalLastChangeDateTime,
  cast(0.0000000 as vdm_lastchangedon) AS LastChangeDateTime,
  cast('X' as boolean preserving type ) AS CrcyExchangeRateIsAuthorized
FROM R_CurrencyExchangeRate
LEFT OUTER JOIN I_ExchangeRateTypeText AS _ExchangeRateTypeText ON ExchangeRateTypeForEdit = _ExchangeRateTypeText.ExchangeRateType AND _ExchangeRateTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CurrencyText AS _SourceCurrencyText ON SourceCurrencyForEdit = _SourceCurrencyText.Currency AND _SourceCurrencyText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CurrencyText AS _TargetCurrencyText ON TargetCurrencyForEdit = _TargetCurrencyText.Currency AND _TargetCurrencyText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN R_CrcyExchangeRateQuotationTxt AS _ExchangeRateQuotationText ON ExchangeRateQuotation = _ExchangeRateQuotationText.ExchangeRateQuotation AND _ExchangeRateQuotationText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_ExchangeRateType AS _ExchangeRateType ON ExchangeRateTypeForEdit = _ExchangeRateType.ExchangeRateType  -- association [0..1]
;