P_ExchangeRate3
P_ExchangeRate3 is a Basic CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 27 fields with key fields kurst, fcurr, tcurr, gdatu, fcurr.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| P_ExchangeRate1 | Aggregation_1 | inner |
| P_ExchangeRate2 | Aggregation_2 | inner |
| tcurr | Join_3 | from |
| tcurf | Join_4 | inner |
| tcurr | Join_5 | union_all |
| tcurf | Join_6 | inner |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | P_GENVIEW3110 | 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 (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | kurst | tcurr | kurst | Fix.rate type (EMU) |
| KEY | fcurr | tcurr | fcurr | From currency |
| KEY | tcurr | tcurr | tcurr | Trans. Currency |
| KEY | gdatu | |||
| ukurs | ||||
| ffact | tcurf | ffact | Ratio (from) | |
| tfact | tcurf | tfact | Ratio (to) | |
| abwct | tcurf | abwct | Alt. E/R Type | |
| abwga | tcurf | abwga | Ex.rate valid from | |
| ExchRateIsIndirectQuotation | Exchange Rate Is Indirect Quotation | |||
| AbsoluteExchangeRate | ||||
| EffectiveExchangeRate | ||||
| DirectQuotedEffectiveExchRate | ||||
| kurst | Fix.rate type (EMU) | |||
| KEY | fcurr | tcurr | fcurr | From currency |
| KEY | tcurr | tcurr | tcurr | Trans. Currency |
| KEY | gdatu | |||
| ukurs | ||||
| FFACT | tcurf | tfact | Ratio (to) | |
| TFACT | tcurf | ffact | Ratio (from) | |
| abwct | tcurf | abwct | Alt. E/R Type | |
| abwga | tcurf | abwga | Ex.rate valid from | |
| ExchRateIsIndirectQuotation | Exchange Rate Is Indirect Quotation | |||
| AbsoluteExchangeRate | ||||
| EffectiveExchangeRate | ||||
| DirectQuotedEffectiveExchRate | ||||
| IndirectQuotedEffctvExchRate |
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_ExchangeRate3.
-- 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_GENVIEW3110
CREATE VIEW P_ExchangeRate3 AS
SELECT
Join_3.kurst AS kurst,
Join_3.fcurr AS fcurr,
Join_3.tcurr AS tcurr,
cast(Join_3.gdatu as abap.numc(8)) AS gdatu,
cast(Join_3.ukurs as fis_exchange_rate) AS ukurs,
Join_4.ffact AS ffact,
Join_4.tfact AS tfact,
Join_4.abwct AS abwct,
Join_4.abwga AS abwga,
cast(ExchRateIsIndirectQuotation as fis_indirect_quotation) AS ExchRateIsIndirectQuotation,
cast(Join_3.ukurs as fis_absolute_exchangerate) AS AbsoluteExchangeRate,
cast(division(Join_3.ukurs, Join_4.ffact, 5) * Join_4.tfact as fis_effective_exchangerate) AS EffectiveExchangeRate,
cast(Join_3.ukurs as fis_direct_exchange_rate) AS DirectQuotedEffectiveExchRate,
cast(Join_5.ukurs as fis_indirect_exchange_rate) AS IndirectQuotedEffctvExchRate
FROM tcurr AS Join_3
INNER JOIN P_ExchangeRate1 AS Aggregation_1 ON /* join condition not captured in parsed metadata */
INNER JOIN tcurf AS Join_4 ON /* join condition not captured in parsed metadata */
INNER JOIN P_ExchangeRate2 AS Aggregation_2 ON /* join condition not captured in parsed metadata */
INNER JOIN tcurf AS Join_6 ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): tcurr
;
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