<?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 Problem with currecy conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-currecy-conversion/m-p/3509326#M844062</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;Iam trying to convert the currency from EUR to HUF for the Price per Unit in an Invoice using CONVERT_TO_FOREIGN_CURRENCY , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please tell me what is the exchange rate that i need to pass to this function module , Is it from VBRP or from KONV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to convert from one currency to other manually using Exchange rate.&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>Thu, 28 Feb 2008 12:47:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-28T12:47:58Z</dc:date>
    <item>
      <title>Problem with currecy conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-currecy-conversion/m-p/3509326#M844062</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;Iam trying to convert the currency from EUR to HUF for the Price per Unit in an Invoice using CONVERT_TO_FOREIGN_CURRENCY , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please tell me what is the exchange rate that i need to pass to this function module , Is it from VBRP or from KONV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to convert from one currency to other manually using Exchange rate.&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>Thu, 28 Feb 2008 12:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-currecy-conversion/m-p/3509326#M844062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T12:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with currecy conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-currecy-conversion/m-p/3509327#M844063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;check the following example&lt;/P&gt;&lt;P&gt;Currency Convertion (i.e. from EUR to GBP)&lt;/P&gt;&lt;P&gt;DATA: gd_fcurr TYPE tcurr-fcurr,&lt;/P&gt;&lt;P&gt;      gd_tcurr TYPE tcurr-tcurr,&lt;/P&gt;&lt;P&gt;      gd_date  TYPE sy-datum,&lt;/P&gt;&lt;P&gt;      gd_value TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gd_fcurr = 'EUR'.&lt;/P&gt;&lt;P&gt;gd_tcurr = 'GBP'.&lt;/P&gt;&lt;P&gt;gd_date  = sy-datum.&lt;/P&gt;&lt;P&gt;gd_value = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM currency_conversion USING gd_fcurr&lt;/P&gt;&lt;P&gt;                                  gd_tcurr&lt;/P&gt;&lt;P&gt;                                  gd_date&lt;/P&gt;&lt;P&gt;                         CHANGING gd_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Convert value to Currency value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  currency_conversion&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_GD_FCURR  text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_GD_TCURR  text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_GD_DATE   text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;--P_GD_VALUE  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM currency_conversion  USING    p_fcurr&lt;/P&gt;&lt;P&gt;                                   p_tcurr&lt;/P&gt;&lt;P&gt;                                   p_date&lt;/P&gt;&lt;P&gt;                          CHANGING p_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: t_er        TYPE tcurr-ukurs,&lt;/P&gt;&lt;P&gt;        t_ff        TYPE tcurr-ffact,&lt;/P&gt;&lt;P&gt;        t_lf        TYPE tcurr-tfact,&lt;/P&gt;&lt;P&gt;        t_vfd       TYPE datum,&lt;/P&gt;&lt;P&gt;        ld_erate(12)   TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'READ_EXCHANGE_RATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLIENT                  = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      date                    = p_date&lt;/P&gt;&lt;P&gt;      foreign_currency        = p_fcurr&lt;/P&gt;&lt;P&gt;      local_currency          = p_tcurr&lt;/P&gt;&lt;P&gt;      TYPE_OF_RATE            = 'M'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      EXACT_DATE              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;      exchange_rate           = t_er&lt;/P&gt;&lt;P&gt;      foreign_factor          = t_ff&lt;/P&gt;&lt;P&gt;      local_factor            = t_lf&lt;/P&gt;&lt;P&gt;      valid_from_date         = t_vfd&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      DERIVED_RATE_TYPE       =&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;      OLDEST_RATE_FROM        =&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;     no_factors_found        = 2&lt;/P&gt;&lt;P&gt;     no_spread_found         = 3&lt;/P&gt;&lt;P&gt;     derived_2_times         = 4&lt;/P&gt;&lt;P&gt;     overflow                = 5&lt;/P&gt;&lt;P&gt;     zero_rate               = 6&lt;/P&gt;&lt;P&gt;     OTHERS                  = 7&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    ld_erate = t_er / ( t_ff / t_lf ).&lt;/P&gt;&lt;P&gt;    p_value = p_value * ld_erate.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " currency_conversion&lt;/P&gt;&lt;P&gt;hope it will help you&lt;/P&gt;&lt;P&gt;and also check the folowing link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/country/country_curr.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/country/country_curr.htm&lt;/A&gt;&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>Thu, 28 Feb 2008 12:58:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-currecy-conversion/m-p/3509327#M844063</guid>
      <dc:creator>sreelatha_gullapalli</dc:creator>
      <dc:date>2008-02-28T12:58:03Z</dc:date>
    </item>
  </channel>
</rss>

