I_ExchangeRateSpreadRawData

DDL: I_EXCHANGERATESPREADRAWDATA SQL: IFIEXCHRATERAW Type: view BASIC Package: SFIB

Exchange Rates Spread Raw Data

I_ExchangeRateSpreadRawData (Basic)

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

Accounting and Financial Close

I_ExchangeRateSpreadRawData is a Basic CDS View that provides data about "Exchange Rates Spread Raw Data" in SAP S/4HANA. It reads from 1 data source (tcurs) and exposes 8 fields with key fields ExchangeRateType, SourceCurrency, TargetCurrency, datsendasValidityStartDate. It has 3 associations to related views. Part of development package SFIB.

SAP API Hub

CategoryBasic
StateC1
Line of BusinessAccounting and Financial Close
Application ComponentBC-SRV-BSF-CUR-2CL
CapabilitiesData Source for Data Extraction
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageAccounting and Financial Close for SAP S/4HANA Cloud Public Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
tcurs tcurs 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 (15)

NameValueLevelField
AbapCatalog.sqlViewName IFIEXCHRATERAW view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Exchange Rates Spread Raw Data 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 #MASTER view
Analytics.internalName #LOCAL view
Analytics.dataExtraction.enabled true view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY ExchangeRateType kurst Fix.rate type (EMU)
KEY SourceCurrency fcurr From currency
KEY TargetCurrency tcurr Trans. Currency
KEY datsendasValidityStartDate Valid until
CurrencyConversionSpreadRatio spred Spread between buying/selling rates and average rate
_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_ExchangeRateSpreadRawData.
-- 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: IFIEXCHRATERAW

CREATE VIEW I_ExchangeRateSpreadRawData 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,
  spred AS CurrencyConversionSpreadRatio
FROM tcurs
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]
;