P_ExchangeRate2

DDL: P_EXCHANGERATE2 SQL: P_GENVIEW3109 Type: view BASIC

P_ExchangeRate2 is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (tcurf, tcurr) and exposes 6 fields with key fields kurst, FCURR, TCURR, GDATU_R.

Data Sources (2)

SourceAliasJoin Type
tcurf ConversionFactor from
tcurr Currency inner

Annotations (7)

NameValueLevelField
VDM.viewType #BASIC view
AbapCatalog.sqlViewName P_GENVIEW3109 view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.buffering.status #NOT_ALLOWED view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY kurst tcurf kurst Fix.rate type (EMU)
KEY FCURR tcurf tcurr Trans. Currency
KEY TCURR tcurf fcurr From currency
KEY GDATU_R
ExchRateIsIndirectQuotation
GDATU_TCURF

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_ExchangeRate2.
-- 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: P_GENVIEW3109

CREATE VIEW P_ExchangeRate2 AS
SELECT
  ConversionFactor.kurst AS kurst,
  ConversionFactor.tcurr AS FCURR,
  ConversionFactor.fcurr AS TCURR,
  cast( Currency.gdatu as abap.char(8)) AS GDATU_R,
  cast( 'X' as fis_indirect_quotation) AS ExchRateIsIndirectQuotation,
  min(ConversionFactor.gdatu) AS GDATU_TCURF
FROM tcurf AS ConversionFactor
INNER JOIN tcurr AS Currency ON /* join condition not captured in parsed metadata */
;