<?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: currency conversions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversions/m-p/3496953#M841137</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;The difference between CONVERT_TO_LOCAL_CURRENCY and CONVERT_TO_FOREIGN_CURRENCY is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Foreign currency is TCURR-FCURR (From Currency) &lt;/P&gt;&lt;P&gt;Local Currency is TCURR-TCURR (To Currency) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So result will be slightly different for the both functions (two rates stored in the TCURR: e.g. JPY-&amp;gt;USD rate is 0.00880, USD-&amp;gt;JPY rate is 122.00000). Its better to use CONVERT_TO_LOCAL_CURRENCY, because multiplication is more exact operation than division. &lt;/P&gt;&lt;P&gt;Both conversion functions can return also selected rate and factors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vasudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2008 07:03:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-27T07:03:47Z</dc:date>
    <item>
      <title>currency conversions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversions/m-p/3496952#M841136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the difference between&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT_TO_FOREIGN_CURRENCY&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;CONVERT_TO_LOCAL_CURRENCY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS IN ADVANCE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 06:58:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversions/m-p/3496952#M841136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T06:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: currency conversions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversions/m-p/3496953#M841137</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;The difference between CONVERT_TO_LOCAL_CURRENCY and CONVERT_TO_FOREIGN_CURRENCY is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Foreign currency is TCURR-FCURR (From Currency) &lt;/P&gt;&lt;P&gt;Local Currency is TCURR-TCURR (To Currency) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So result will be slightly different for the both functions (two rates stored in the TCURR: e.g. JPY-&amp;gt;USD rate is 0.00880, USD-&amp;gt;JPY rate is 122.00000). Its better to use CONVERT_TO_LOCAL_CURRENCY, because multiplication is more exact operation than division. &lt;/P&gt;&lt;P&gt;Both conversion functions can return also selected rate and factors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vasudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 07:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversions/m-p/3496953#M841137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T07:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: currency conversions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversions/m-p/3496954#M841138</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;CONVERT_TO_FOREIGN_CURRENCY" &amp;#150; This translates local currency amount into foreign currency. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An amount in foreign currency is calculated from a specified local currency amount. You may either specify the translation rate manually (Parameter RATE) or have the system determine it from table TCURR on the basis of the rate type, date and currency key. The ratios for the units of the currencies involved in the translation are significant for this translation, table TCURR is always read by the program and there must be a valid entry for the data specified. If exchange rate fixing is defined for exchange rate type TYPE_OF_RATE, or an alternative exchange rate type is defined for the currency pair, this information is transferred to the calling program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When table TCURR is read, the foreign currency key is always taken as the first part of the key and the local currency as the second part. If this entry is not in the table, the key is re-read in reverse sequence. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here&amp;#146;s a sample code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' &lt;/P&gt;&lt;P&gt;EXPORTING DATE = BKPF-WWERT &lt;/P&gt;&lt;P&gt;FOREIGN_CURRENCY = BKPF-WAERS &lt;/P&gt;&lt;P&gt;LOCAL_CURRENCY = T001-WAERS &lt;/P&gt;&lt;P&gt;LOCAL_AMOUNT = BSEG-DMBTR &lt;/P&gt;&lt;P&gt;RATE = BKPF-KURSF &lt;/P&gt;&lt;P&gt;TYPE_OF_RATE = 'M' &lt;/P&gt;&lt;P&gt;IMPORTING EXCHANGE_RATE = KURS &lt;/P&gt;&lt;P&gt;FOREIGN_AMOUNT = BSEG-WRBTR &lt;/P&gt;&lt;P&gt;FOREIGN_FACTOR = FAKTOR-F &lt;/P&gt;&lt;P&gt;LOCAL_FACTOR = FAKTOR-L &lt;/P&gt;&lt;P&gt;EXCEPTIONS NO_RATE_FOUND = 4 &lt;/P&gt;&lt;P&gt;NO_FACTORS_FOUND = 8. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this also and use the following F.M's: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT_TO_FOREIGN_CURRENCY - Converts local currency to foreign currency. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT_TO_LOCAL_CURRENCY - Converts from foreign currency to local currency &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code: &lt;/P&gt;&lt;P&gt;PARAMETERS: P_UKURS LIKE TCURR-UKURS. &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF GI_TAB OCCURS 0, &lt;/P&gt;&lt;P&gt;KONWA LIKE KONP-KONWA, &lt;/P&gt;&lt;P&gt;STPRS LIKE MBEW-STPRS, &lt;/P&gt;&lt;P&gt;WAERS LIKE T001-WAERS, &lt;/P&gt;&lt;P&gt;END OF GI_TAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: L_STPRS LIKE MBEW-STPRS, &lt;/P&gt;&lt;P&gt;L_RATE LIKE TCURR-UKURS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_UKURS IS INITIAL. &lt;/P&gt;&lt;P&gt;CLEAR L_RATE. &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;L_RATE = P_UKURS / 100. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;DATE = SY-DATUM &lt;/P&gt;&lt;P&gt;FOREIGN_CURRENCY = GI_TAB-KONWA &lt;/P&gt;&lt;P&gt;LOCAL_AMOUNT = GI_TAB-STPRS &lt;/P&gt;&lt;P&gt;LOCAL_CURRENCY = GI_TAB-WAERS &lt;/P&gt;&lt;P&gt;RATE = L_RATE &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;FOREIGN_AMOUNT = L_STPRS &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;NO_RATE_FOUND = 1 &lt;/P&gt;&lt;P&gt;OVERFLOW = 2 &lt;/P&gt;&lt;P&gt;NO_FACTORS_FOUND = 3 &lt;/P&gt;&lt;P&gt;NO_SPREAD_FOUND = 4 &lt;/P&gt;&lt;P&gt;DERIVED_2_TIMES = 5 &lt;/P&gt;&lt;P&gt;OTHERS = 6. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;DATE = SY-DATUM &lt;/P&gt;&lt;P&gt;FOREIGN_AMOUNT = L_BELOEB &lt;/P&gt;&lt;P&gt;FOREIGN_CURRENCY = 'JPY' &lt;/P&gt;&lt;P&gt;LOCAL_CURRENCY = 'DKK' &lt;/P&gt;&lt;P&gt;RATE = L_RATE &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TYPE_OF_RATE = 'M' &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;EXCHANGE_RATE = L_RATE &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FOREIGN_FACTOR = &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOCAL_AMOUNT = L_BELOEB &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LOCAL_FACTOR = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCHANGE_RATEX = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FIXED_RATE = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DERIVED_RATE_TYPE = &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;NO_RATE_FOUND = 1 &lt;/P&gt;&lt;P&gt;OVERFLOW = 2 &lt;/P&gt;&lt;P&gt;NO_FACTORS_FOUND = 3 &lt;/P&gt;&lt;P&gt;NO_SPREAD_FOUND = 4 &lt;/P&gt;&lt;P&gt;DERIVED_2_TIMES = 5 &lt;/P&gt;&lt;P&gt;OTHERS = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;sreelatha gullapalli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 07:05:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversions/m-p/3496954#M841138</guid>
      <dc:creator>sreelatha_gullapalli</dc:creator>
      <dc:date>2008-02-27T07:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: currency conversions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversions/m-p/3496955#M841139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;CONVERT_TO_FOREIGN_CURRENCY&lt;/STRONG&gt; Convert local currency to foreign currency. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CONVERT_TO_LOCAL_CURRENCY&lt;/STRONG&gt; Convert from foreign currency to local currency&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 07:07:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversions/m-p/3496955#M841139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T07:07:21Z</dc:date>
    </item>
  </channel>
</rss>

