<?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: Function module for  Currency conversion is  required. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-currency-conversion-is-required/m-p/2725337#M632459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, You can use the below FM :-&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             = gv_firstday1      ====&amp;gt; date to be mentioned&lt;/P&gt;&lt;P&gt;      foreign_amount   = 123.00        ====&amp;gt; Give the Amount to which to currency &lt;/P&gt;&lt;P&gt;      foreign_currency = 'GBP'          ====&amp;gt;To Currency&lt;/P&gt;&lt;P&gt;      local_currency   = 'USD'           ====&amp;gt;From Currency&lt;/P&gt;&lt;P&gt;      type_of_rate     = 'M'                ====&amp;gt; Type of rate (Month begin type)&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      exchange_rate    = cv_lv_ukurs =====&amp;gt; Exchnage rate on the day&lt;/P&gt;&lt;P&gt;      local_amount     = cv_vallc1      =====&amp;gt; Amount after calculation amt&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;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&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;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2007 14:26:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-07T14:26:53Z</dc:date>
    <item>
      <title>Function module for  Currency conversion is  required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-currency-conversion-is-required/m-p/2725331#M632453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If a purchase request amount is in one currency, I need to convert to "EUR" currency.&lt;/P&gt;&lt;P&gt;Please let me know the Function module / conversion routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is any specific FM/routine exists to convert European currencies (like GBP/SEK/DEK/NEK/ swiss fanc) to "EURO", then also please let me know.&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>Fri, 07 Sep 2007 14:11:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-currency-conversion-is-required/m-p/2725331#M632453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T14:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for  Currency conversion is  required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-currency-conversion-is-required/m-p/2725332#M632454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CONVERT_TO_LOCAL_CURRENCY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 14:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-currency-conversion-is-required/m-p/2725332#M632454</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2007-09-07T14:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for  Currency conversion is  required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-currency-conversion-is-required/m-p/2725333#M632455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Kpreddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if use this FM it should work fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT_TO_LOCAL_CURRENCY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If need to know what to pass in just let me know and I'll post and example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 14:15:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-currency-conversion-is-required/m-p/2725333#M632455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T14:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for  Currency conversion is  required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-currency-conversion-is-required/m-p/2725334#M632456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is the example program to convert the currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: gd_fcurr TYPE tcurr-fcurr,
      gd_tcurr TYPE tcurr-tcurr,
      gd_date  TYPE sy-datum,
      gd_value TYPE i.

gd_fcurr = 'EUR'.
gd_tcurr = 'GBP'.
gd_date  = sy-datum.
gd_value = 10.

PERFORM currency_conversion USING gd_fcurr
                                  gd_tcurr
                                  gd_date
                         CHANGING gd_value.



* Convert value to Currency value 
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  currency_conversion
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_GD_FCURR  text
*      --&amp;gt;P_GD_TCURR  text
*      --&amp;gt;P_GD_DATE   text
*      &amp;lt;--P_GD_VALUE  text
*----------------------------------------------------------------------*
FORM currency_conversion  USING    p_fcurr
                                   p_tcurr
                                   p_date
                          CHANGING p_value.

  DATA: t_er        TYPE tcurr-ukurs,
        t_ff        TYPE tcurr-ffact,
        t_lf        TYPE tcurr-tfact,
        t_vfd       TYPE datum,
        ld_erate(12)   TYPE c.

  CALL FUNCTION 'READ_EXCHANGE_RATE'
    EXPORTING
*       CLIENT                  = SY-MANDT
      date                    = p_date
      foreign_currency        = p_fcurr
      local_currency          = p_tcurr
      TYPE_OF_RATE            = 'M'
*       EXACT_DATE              = ' '
   IMPORTING
      exchange_rate           = t_er
      foreign_factor          = t_ff
      local_factor            = t_lf
      valid_from_date         = t_vfd
*       DERIVED_RATE_TYPE       =
*       FIXED_RATE              =
*       OLDEST_RATE_FROM        =
   EXCEPTIONS
     no_rate_found           = 1
     no_factors_found        = 2
     no_spread_found         = 3
     derived_2_times         = 4
     overflow                = 5
     zero_rate               = 6
     OTHERS                  = 7
            .
  IF sy-subrc EQ 0.
    ld_erate = t_er / ( t_ff / t_lf ).
    p_value = p_value * ld_erate.
  ENDIF.
ENDFORM.                    " currency_conversion


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&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>Fri, 07 Sep 2007 14:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-currency-conversion-is-required/m-p/2725334#M632456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T14:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for  Currency conversion is  required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-currency-conversion-is-required/m-p/2725335#M632457</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;Try &lt;/P&gt;&lt;P&gt;CURRENCY_CONVERTING_FACTOR        -       multiply/divide factor for a currency&lt;/P&gt;&lt;P&gt;BAPI_CURRENCY_CONV_TO_EXTERNAL        -        Conversion of Currency Amounts into External Data Format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 14:19:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-currency-conversion-is-required/m-p/2725335#M632457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T14:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for  Currency conversion is  required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-currency-conversion-is-required/m-p/2725336#M632458</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;these are the Fm availavble in sap on currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Amount and currency functions&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CURRENCY_AMOUNT_SAP_TO_IDOC&amp;lt;/b&amp;gt; - Convert currency to IDOC format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERT_TO_LOCAL_CURRENCY &amp;lt;/b&amp;gt; - Conversion of currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;HRCM_AMOUNT_TO_STRING_CONVERT&amp;lt;/b&amp;gt; - Convert amount to string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;HRCM_STRING_TO_AMOUNT_CONVERT&amp;lt;/b&amp;gt; - Convert amount from string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CLOI_PUT_SIGN_IN_FRONT&amp;lt;/b&amp;gt; Move the negative sign from the left hand side of a number, to the right hand side of the number. Note that The result will be left justified (like all &lt;/P&gt;&lt;P&gt;character fields), not right justifed as numbers normally are. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERT_TO_FOREIGN_CURRENCY&amp;lt;/b&amp;gt; Convert local currency to foreign currency. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERT_TO_LOCAL_CURRENCY&amp;lt;/b&amp;gt; Convert from foreign currency to local currency &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 14:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-currency-conversion-is-required/m-p/2725336#M632458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T14:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for  Currency conversion is  required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-currency-conversion-is-required/m-p/2725337#M632459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, You can use the below FM :-&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             = gv_firstday1      ====&amp;gt; date to be mentioned&lt;/P&gt;&lt;P&gt;      foreign_amount   = 123.00        ====&amp;gt; Give the Amount to which to currency &lt;/P&gt;&lt;P&gt;      foreign_currency = 'GBP'          ====&amp;gt;To Currency&lt;/P&gt;&lt;P&gt;      local_currency   = 'USD'           ====&amp;gt;From Currency&lt;/P&gt;&lt;P&gt;      type_of_rate     = 'M'                ====&amp;gt; Type of rate (Month begin type)&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      exchange_rate    = cv_lv_ukurs =====&amp;gt; Exchnage rate on the day&lt;/P&gt;&lt;P&gt;      local_amount     = cv_vallc1      =====&amp;gt; Amount after calculation amt&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;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&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;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 14:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-currency-conversion-is-required/m-p/2725337#M632459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T14:26:53Z</dc:date>
    </item>
  </channel>
</rss>

