R_CurrencyExchangeRateTP
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)
| Source | Alias | Join Type |
|---|---|---|
| R_CurrencyExchangeRate | R_CurrencyExchangeRate | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA