<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function/m-p/1922335#M383094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;u can Translate foreign currency amount to local currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u have to pass the values for:&lt;/P&gt;&lt;P&gt;DATE&lt;/P&gt;&lt;P&gt;FOREIGN_AMOUNT&lt;/P&gt;&lt;P&gt;FOREIGN_CURRENCY&lt;/P&gt;&lt;P&gt;LOCAL_CURRENCY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2007 13:44:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-06T13:44:40Z</dc:date>
    <item>
      <title>function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function/m-p/1922334#M383093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Can any one show me what is the use of below function and which parameters should pass&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;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 13:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function/m-p/1922334#M383093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T13:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function/m-p/1922335#M383094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;u can Translate foreign currency amount to local currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u have to pass the values for:&lt;/P&gt;&lt;P&gt;DATE&lt;/P&gt;&lt;P&gt;FOREIGN_AMOUNT&lt;/P&gt;&lt;P&gt;FOREIGN_CURRENCY&lt;/P&gt;&lt;P&gt;LOCAL_CURRENCY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 13:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function/m-p/1922335#M383094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T13:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function/m-p/1922336#M383095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this example:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'&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_CURRENCY = BKPF-WAERS&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;                FOREIGN_AMOUNT   = BSEG-WRBTR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 RATE             = BKPF-KURSF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 TYPE_OF_RATE     = 'M'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IMPORTING   EXCHANGE_RATE    = KURS&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;                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;                 FIXED_RATE       = FIXKURS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXCEPTIONS  NO_RATE_FOUND    = 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                NO_FACTORS_FOUND = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 13:44:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function/m-p/1922336#M383095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T13:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function/m-p/1922337#M383096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
       EXPORTING
*    CLIENT                  = 001
        DATE                    = sy-datum
         FOREIGN_CURRENCY        = wa1-WAERS " here you need to declare your foreign currency i.e USD
         LOCAL_CURRENCY          = TCURR-FCURR
         FOREIGN_AMOUNT          = wa1-DMBTR " here you need to declare your amount field.
*    RATE                    = tcurr-ukurs
        TYPE_OF_RATE            = 'M'        " check this also the average rate
*    READ_TCURR              = 'X'
      IMPORTING
        EXCHANGE_RATE           = tcurr-UKURS
*    FOREIGN_FACTOR          =
        LOCAL_AMOUNT            = wa1-TOTAL  " this is the field where the converted amt has to be displayed.
*    LOCAL_FACTOR            =
*    EXCHANGE_RATEX          =
*    FIXED_RATE              =
*    DERIVED_RATE_TYPE       =
*  EXCEPTIONS
*    NO_RATE_FOUND           = 1
*    OVERFLOW                = 2
*    NO_FACTORS_FOUND        = 3
*    NO_SPREAD_FOUND         = 4
*    DERIVED_2_TIMES         = 5
*    OTHERS                  = 6
               .
 IF SY-SUBRC &amp;lt;&amp;gt; 0.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
**         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 13:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function/m-p/1922337#M383096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T13:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function/m-p/1922338#M383097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Translate foreign currency amount to local currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An amount in local currency is calculated from a specified foreign&lt;/P&gt;&lt;P&gt;currency amount. For this, you may either specify the translation rate&lt;/P&gt;&lt;P&gt;manually (Parameter RATE) or have the system determine it from table&lt;/P&gt;&lt;P&gt;TCURR on the basis of the rate type, date and currency key. Because the&lt;/P&gt;&lt;P&gt;ratios for the units of the currencies involved in the translation are&lt;/P&gt;&lt;P&gt;significant for this translation, table TCURF is always read by the&lt;/P&gt;&lt;P&gt;program, and there must be a valid entry there for the data specified.&lt;/P&gt;&lt;P&gt;IF exchange rate fixing is defined for the exchange rate type&lt;/P&gt;&lt;P&gt;TYPE_OF_RATE or an alternative exchange rate is defined for the currency&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;the first part of the key and the local currency as the second part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For More Information you can click on  the FM document in SE37&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 13:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function/m-p/1922338#M383097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T13:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function/m-p/1922339#M383098</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;CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CLIENT = SY-MANDT&lt;/P&gt;&lt;P&gt;date = sy-datum&lt;/P&gt;&lt;P&gt;foreign_amount = amount                    " changed here&lt;/P&gt;&lt;P&gt;foreign_currency = 'CAD'&lt;/P&gt;&lt;P&gt;local_currency = 'USD'&lt;/P&gt;&lt;P&gt;RATE = 0&lt;/P&gt;&lt;P&gt;TYPE_OF_RATE = 'M'&lt;/P&gt;&lt;P&gt;READ_TCURR = 'X'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCHANGE_RATE =&lt;/P&gt;&lt;/LI&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 = Local&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>Tue, 06 Feb 2007 13:45:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function/m-p/1922339#M383098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T13:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function/m-p/1922340#M383099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;u use it to convert foreign currency(usd) to local currency (inr).&lt;/P&gt;&lt;P&gt;pass date , foreign amount = specify here the amount in say usd (dollars)&lt;/P&gt;&lt;P&gt;under foreign currency - usd &lt;/P&gt;&lt;P&gt;local currency - inr &lt;/P&gt;&lt;P&gt;and in exporting parameter u get the local amount&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 13:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function/m-p/1922340#M383099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T13:48:12Z</dc:date>
    </item>
  </channel>
</rss>

