<?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 Function module for USD amount to TWD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-usd-amount-to-twd/m-p/1920452#M382473</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;Any one send me function module for converting USD currency to TWD.&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;donald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2007 07:31:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-22T07:31:42Z</dc:date>
    <item>
      <title>Function module for USD amount to TWD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-usd-amount-to-twd/m-p/1920452#M382473</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;Any one send me function module for converting USD currency to TWD.&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;donald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 07:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-usd-amount-to-twd/m-p/1920452#M382473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T07:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for USD amount to TWD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-usd-amount-to-twd/m-p/1920453#M382474</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;Use this FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FAZ_CONVERT_CURRENCY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 07:34:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-usd-amount-to-twd/m-p/1920453#M382474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T07:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for USD amount to TWD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-usd-amount-to-twd/m-p/1920454#M382475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt; this fm and pass the below values&lt;/P&gt;&lt;P&gt;HR_ECM_CONVERT_CURRENCY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLD_AMOUNT 1.234 &lt;/P&gt;&lt;P&gt;OLD_CURRE USD &lt;/P&gt;&lt;P&gt;NEW_CURRE TWD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 07:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-usd-amount-to-twd/m-p/1920454#M382475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T07:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for USD amount to TWD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-usd-amount-to-twd/m-p/1920455#M382476</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;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 = 'USD'.
gd_tcurr = 'TWD'.
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;You can use &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 &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 currency.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 07:37:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-usd-amount-to-twd/m-p/1920455#M382476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T07:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for USD amount to TWD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-usd-amount-to-twd/m-p/1920456#M382477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FM CONVERT_TO_FOREIGN_CURRENCY &lt;/P&gt;&lt;P&gt;tables u need to look into are - &amp;lt;b&amp;gt; TCURR, TCURF &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 07:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-usd-amount-to-twd/m-p/1920456#M382477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T07:38:54Z</dc:date>
    </item>
  </channel>
</rss>

