<?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: field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field/m-p/2668345#M615919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zc1_currency_conversion .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: loc_umsa1 LIKE kna1-umsa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_AMOUNT_TO_CURRENCY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;foreign_currency = 'CAD'&lt;/P&gt;&lt;P&gt;foreign_amount = 450&lt;/P&gt;&lt;P&gt;local_currency = 'USD'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;local_amount = loc_umsa1&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;WRITE:/ 'Converted amount is:' , loc_umsa1.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;WRITE:/ 'Error in conversion'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incase the funtion module is workign properly,&lt;/P&gt;&lt;P&gt;Try these modules,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT_TO_FOREIGN_CURRENCY or CONVERT_TO_LOCAL_CURRENCY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_AMOUNT_TO_CURRENCY' EXPORTING &lt;/P&gt;&lt;P&gt;date = sy-datum &lt;/P&gt;&lt;P&gt;foreign_currency = 'USD'&lt;/P&gt;&lt;P&gt;foreign_amount = '2000.00' &lt;/P&gt;&lt;P&gt;local_currency = 'EUR' &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;local_amount = amount. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2007 05:34:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-14T05:34:56Z</dc:date>
    <item>
      <title>field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field/m-p/2668342#M615916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi exerts,&lt;/P&gt;&lt;P&gt;how to dislay the curency for  curency field .how to change the curency at run time while coading the program,?&lt;/P&gt;&lt;P&gt;radhakrishna.&lt;/P&gt;&lt;P&gt;9343479997.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 05:31:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field/m-p/2668342#M615916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T05:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field/m-p/2668343#M615917</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;currency is displayed using the &amp;lt;b&amp;gt;WAERS&amp;lt;/b&amp;gt; field.&lt;/P&gt;&lt;P&gt;check table EKKO&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preeti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 05:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field/m-p/2668343#M615917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T05:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field/m-p/2668344#M615918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;whenever u r displaying the currency field u should take the referce from currency field -TCURR-WAERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points to all helpful answers &lt;/P&gt;&lt;P&gt;kiran.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 05:33:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field/m-p/2668344#M615918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T05:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field/m-p/2668345#M615919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zc1_currency_conversion .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: loc_umsa1 LIKE kna1-umsa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_AMOUNT_TO_CURRENCY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;foreign_currency = 'CAD'&lt;/P&gt;&lt;P&gt;foreign_amount = 450&lt;/P&gt;&lt;P&gt;local_currency = 'USD'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;local_amount = loc_umsa1&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;WRITE:/ 'Converted amount is:' , loc_umsa1.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;WRITE:/ 'Error in conversion'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incase the funtion module is workign properly,&lt;/P&gt;&lt;P&gt;Try these modules,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT_TO_FOREIGN_CURRENCY or CONVERT_TO_LOCAL_CURRENCY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_AMOUNT_TO_CURRENCY' EXPORTING &lt;/P&gt;&lt;P&gt;date = sy-datum &lt;/P&gt;&lt;P&gt;foreign_currency = 'USD'&lt;/P&gt;&lt;P&gt;foreign_amount = '2000.00' &lt;/P&gt;&lt;P&gt;local_currency = 'EUR' &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;local_amount = amount. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 05:34:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field/m-p/2668345#M615919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T05:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field/m-p/2668346#M615920</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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write l_curr  to final_curr currency 'waers' (this should be the ref field in ur work area .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 06:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field/m-p/2668346#M615920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T06:24:44Z</dc:date>
    </item>
  </channel>
</rss>

