<?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..? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3589421#M864225</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;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Mar 2008 07:39:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-17T07:39:45Z</dc:date>
    <item>
      <title>Function Module..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3589420#M864224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the exact purpose of the below FM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT_TO_FOREIGN_CURRENCY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Akshitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 07:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3589420#M864224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T07:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3589421#M864225</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;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 07:39:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3589421#M864225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T07:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3589422#M864226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akshitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the name suggests Converts local currency to Foreign., Click on the Function Module Documentation, You'll get all the Info on the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 07:41:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3589422#M864226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T07:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3589423#M864227</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 Convert local currency to foreign currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g&lt;/P&gt;&lt;P&gt;&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;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;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 07:42:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3589423#M864227</guid>
      <dc:creator>dhruv_shah3</dc:creator>
      <dc:date>2008-03-17T07:42:39Z</dc:date>
    </item>
  </channel>
</rss>

