I_ExchangeRateRawData

DDL: I_EXCHANGERATERAWDATA SQL: IEXCHRATESPREAD Type: view BASIC

Exchange Rate Raw Data

I_ExchangeRateRawData (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Accounting and Financial Close

I_ExchangeRateRawData is a Basic CDS View that provides data about "Exchange Rate Raw Data" in SAP S/4HANA. It reads from 1 data source (tcurr) and exposes 10 fields with key fields ExchangeRateType, SourceCurrency, TargetCurrency, datsendasValidityStartDate. It has 3 associations to related views.

SAP API Hub

StateC1
Line of BusinessAccounting and Financial Close
Application ComponentBC-SRV-BSF-CUR
PackageAccounting and Financial Close for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
tcurr tcurr from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_ExchangeRateType _ExchangeRateType $projection.ExchangeRateType = _ExchangeRateType.ExchangeRateType
[0..1] I_Currency _SourceCurrency $projection.SourceCurrency = _SourceCurrency.Currency
[0..1] I_Currency _TargetCurrency $projection.TargetCurrency = _TargetCurrency.Currency

Annotations (18)

NameValueLevelField
AbapCatalog.sqlViewName IEXCHRATESPREAD view
EndUserText.label Exchange Rate Raw Data view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #CUSTOMIZING view
AbapCatalog.buffering.status #ACTIVE view
AbapCatalog.buffering.type #GENERIC view
AbapCatalog.buffering.numberOfKeyFields 1 view
Analytics.internalName #LOCAL view
Analytics.dataExtraction.enabled true view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY ExchangeRateType kurst Fix.rate type (EMU)
KEY SourceCurrency fcurr From currency
KEY TargetCurrency tcurr Trans. Currency
KEY datsendasValidityStartDate Valid until
ExchangeRate ukurs Exchange Rate
NumberOfSourceCurrencyUnits ffact Ratio for the "from" currency units
NumberOfTargetCurrencyUnits tfact Ratio for the "to" currency units
_ExchangeRateType _ExchangeRateType
_SourceCurrency _SourceCurrency
_TargetCurrency _TargetCurrency

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_ExchangeRateRawData.
-- 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: IEXCHRATESPREAD

CREATE VIEW I_ExchangeRateRawData AS
SELECT
  kurst AS ExchangeRateType,
  fcurr AS SourceCurrency,
  tcurr AS TargetCurrency,
  case gdatu when '' then cast('00000000' as abap.dats) else cast(substring(cast(99999999 - cast(cast(gdatu as abap.numc(8)) as abap.int4) as abap.char(20)), 1, 8) as abap.dats) end as ValidityStartDate AS datsendasValidityStartDate,
  ukurs AS ExchangeRate,
  ffact AS NumberOfSourceCurrencyUnits,
  tfact AS NumberOfTargetCurrencyUnits
FROM tcurr
LEFT OUTER JOIN I_ExchangeRateType AS _ExchangeRateType ON ExchangeRateType = _ExchangeRateType.ExchangeRateType  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _SourceCurrency ON SourceCurrency = _SourceCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _TargetCurrency ON TargetCurrency = _TargetCurrency.Currency  -- association [0..1]
;