<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Exchange Rate Comparison ( SD ) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exchange-rate-comparison-sd/m-p/2002458#M407831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Find Rate Based on Amounts, Currency Keys and Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; A translation rate is determined from the amounts entered. As the rate&lt;/P&gt;&lt;P&gt; is also dependent on the units of each individual currency, (e.g. a&lt;/P&gt;&lt;P&gt; DEM/ITL rate of 1.67 with the units 1 DEM and 1000 ITL means that 1 DEM&lt;/P&gt;&lt;P&gt; is equal to 1670 ITL), table TCURR must also be read before the rate can&lt;/P&gt;&lt;P&gt; be established. For this, you need both currency keys, an exchange rate&lt;/P&gt;&lt;P&gt; type and a validity date. The factors determined in this way are&lt;/P&gt;&lt;P&gt; transferred to the calling program along with the determined rate. If&lt;/P&gt;&lt;P&gt; exchange rate fixing is defined for exchange rate type TYPE_OF_RATE,&lt;/P&gt;&lt;P&gt; this information is transferred to the calling program. If one amount is&lt;/P&gt;&lt;P&gt; calculated from the other even where a fixed exchange rate is used, this&lt;/P&gt;&lt;P&gt; amount is returned instead of the rate calculated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Example call-up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'CALCULATE_EXCHANGE_RATE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     EXPORTING   DATE             = BKPF-WWERT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 FOREIGN_AMOUNT   = BSEG-WRBTR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 FOREIGN_CURRENCY = BKPF-WAERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 LOCAL_AMOUNT     = BSEG-DMBTR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 LOCAL_CURRENCY   = T001-WAERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 TYPE_OF_RATE     = 'M'&lt;/P&gt;&lt;P&gt; IMPORTING  &lt;/P&gt;&lt;P&gt;           EXCHANGE_RATE    = KURS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             FOREIGN_FACTOR   = FAKTOR-F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             LOCAL_FACTOR     = FAKTOR-L&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Exceptions  &lt;/P&gt;&lt;P&gt;             NO_RATE_COMPUTABLE = 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             NO_RATE_FOUND      = 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             NO_FACTORS_FOUND   = 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this...with date taking from the select-options and pass it to every time in a loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Mar 2007 05:35:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-27T05:35:02Z</dc:date>
    <item>
      <title>Exchange Rate Comparison ( SD )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exchange-rate-comparison-sd/m-p/2002455#M407828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to develop an Exchange Rate Comparison Report.&lt;/P&gt;&lt;P&gt;The selection sciteria should allow for:&lt;/P&gt;&lt;P&gt;- a range of From and To Currency Codes&lt;/P&gt;&lt;P&gt;- 2 dates for comparison.&lt;/P&gt;&lt;P&gt;The Exchange Rate Type would be 'M'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the Exchange Rate and the Translation Ratio in the output.&lt;/P&gt;&lt;P&gt;Would Exchange Rate be the field TCURR-UKURS?&lt;/P&gt;&lt;P&gt;And also how do I calculate the Translation Ratio?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will highly be appreciated.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 04:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exchange-rate-comparison-sd/m-p/2002455#M407828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T04:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exchange Rate Comparison ( SD )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exchange-rate-comparison-sd/m-p/2002456#M407829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the FM CALCULATE_EXCHANGE_RATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the foreign currency, local currency, rate type as 'M'.&lt;/P&gt;&lt;P&gt;Here you can also give the amounts to get converted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also you are right, You can use the field TCURR-UKURS as the exchange rate.&lt;/P&gt;&lt;P&gt;But better if possibel use above FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shahu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 05:27:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exchange-rate-comparison-sd/m-p/2002456#M407829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T05:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exchange Rate Comparison ( SD )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exchange-rate-comparison-sd/m-p/2002457#M407830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CTABL&amp;lt;/b&amp;gt; Exchange rate table from currency conversion &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CTYPE&amp;lt;/b&amp;gt; Exchange rate type 'M','B','G' from CURRENCY CONVERSION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the below simple program for exchange rate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: l_er TYPE tcurr-ukurs, "
l_ff TYPE tcurr-ffact,
l_lf TYPE tcurr-tfact,
l_erate(12) TYPE c,

CALL FUNCTION 'READ_EXCHANGE_RATE'
EXPORTING
date = sy-datum
foreign_currency = wa_bseg-pswsl
local_currency = c_euro
type_of_rate = 'M'
IMPORTING
exchange_rate = l_er
foreign_factor = l_ff
local_factor = l_lf
EXCEPTIONS
no_rate_found = 1
no_factors_found = 2
no_spread_found = 3
derived_2_times = 4
overflow = 5
OTHERS = 6.
IF sy-subrc = 0.
l_erate = l_er / ( l_ff / l_lf ).
wa_itab-wrbtr = wa_itab-wrbtr * l_erate.

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 05:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exchange-rate-comparison-sd/m-p/2002457#M407830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T05:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exchange Rate Comparison ( SD )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exchange-rate-comparison-sd/m-p/2002458#M407831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Find Rate Based on Amounts, Currency Keys and Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; A translation rate is determined from the amounts entered. As the rate&lt;/P&gt;&lt;P&gt; is also dependent on the units of each individual currency, (e.g. a&lt;/P&gt;&lt;P&gt; DEM/ITL rate of 1.67 with the units 1 DEM and 1000 ITL means that 1 DEM&lt;/P&gt;&lt;P&gt; is equal to 1670 ITL), table TCURR must also be read before the rate can&lt;/P&gt;&lt;P&gt; be established. For this, you need both currency keys, an exchange rate&lt;/P&gt;&lt;P&gt; type and a validity date. The factors determined in this way are&lt;/P&gt;&lt;P&gt; transferred to the calling program along with the determined rate. If&lt;/P&gt;&lt;P&gt; exchange rate fixing is defined for exchange rate type TYPE_OF_RATE,&lt;/P&gt;&lt;P&gt; this information is transferred to the calling program. If one amount is&lt;/P&gt;&lt;P&gt; calculated from the other even where a fixed exchange rate is used, this&lt;/P&gt;&lt;P&gt; amount is returned instead of the rate calculated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Example call-up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'CALCULATE_EXCHANGE_RATE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     EXPORTING   DATE             = BKPF-WWERT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 FOREIGN_AMOUNT   = BSEG-WRBTR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 FOREIGN_CURRENCY = BKPF-WAERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 LOCAL_AMOUNT     = BSEG-DMBTR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 LOCAL_CURRENCY   = T001-WAERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 TYPE_OF_RATE     = 'M'&lt;/P&gt;&lt;P&gt; IMPORTING  &lt;/P&gt;&lt;P&gt;           EXCHANGE_RATE    = KURS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             FOREIGN_FACTOR   = FAKTOR-F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             LOCAL_FACTOR     = FAKTOR-L&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Exceptions  &lt;/P&gt;&lt;P&gt;             NO_RATE_COMPUTABLE = 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             NO_RATE_FOUND      = 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             NO_FACTORS_FOUND   = 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this...with date taking from the select-options and pass it to every time in a loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 05:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exchange-rate-comparison-sd/m-p/2002458#M407831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T05:35:02Z</dc:date>
    </item>
  </channel>
</rss>

