<?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 Currency conversion issue, any solution for this? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-issue-any-solution-for-this/m-p/7087895#M1506845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have input data from Excel file, every number is pure number without format.&lt;/P&gt;&lt;P&gt;After uploading the file to an internal table, I assign it to a variable with data type CURR 13 with 2 decimal places.&lt;/P&gt;&lt;P&gt;The problem is:&lt;/P&gt;&lt;P&gt;20 USD in excel file will become 20.00 USD in SAP which is correct BUT&lt;/P&gt;&lt;P&gt;20000 VND in excel file will become 20000.00 VND &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when I saved this value to the database and view it on screen it becomes: 2,000,000 VND which is not correct. I see it 100 times than the original value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body explain to me why? and how do I fix this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jul 2010 22:53:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-19T22:53:35Z</dc:date>
    <item>
      <title>Currency conversion issue, any solution for this?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-issue-any-solution-for-this/m-p/7087895#M1506845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have input data from Excel file, every number is pure number without format.&lt;/P&gt;&lt;P&gt;After uploading the file to an internal table, I assign it to a variable with data type CURR 13 with 2 decimal places.&lt;/P&gt;&lt;P&gt;The problem is:&lt;/P&gt;&lt;P&gt;20 USD in excel file will become 20.00 USD in SAP which is correct BUT&lt;/P&gt;&lt;P&gt;20000 VND in excel file will become 20000.00 VND &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when I saved this value to the database and view it on screen it becomes: 2,000,000 VND which is not correct. I see it 100 times than the original value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body explain to me why? and how do I fix this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 22:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-issue-any-solution-for-this/m-p/7087895#M1506845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-19T22:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Currency conversion issue, any solution for this?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-issue-any-solution-for-this/m-p/7087896#M1506846</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;do you use fixed point arithmetic in your program? To check this display program attributes in SE38.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 00:51:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-issue-any-solution-for-this/m-p/7087896#M1506846</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-07-20T00:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Currency conversion issue, any solution for this?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-issue-any-solution-for-this/m-p/7087897#M1506847</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 the below logic  Instead of DMBTR use your Amount field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM t001 INTO l_t0011 WHERE bukrs = &amp;lt;fs_original&amp;gt;-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SELECT SINGLE * FROM tcurx INTO l_curr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        WHERE currkey = l_t0011-waers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          v_con = 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          DO l_curr-currdec  TIMES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            v_con = v_con / 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &amp;lt;fs_reposted&amp;gt;-dmbtr = &amp;lt;fs_reposted&amp;gt;-dmbtr * v_con.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 02:23:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-issue-any-solution-for-this/m-p/7087897#M1506847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T02:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Currency conversion issue, any solution for this?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-issue-any-solution-for-this/m-p/7087898#M1506848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anthony,&lt;/P&gt;&lt;P&gt;  can you try this one?&lt;/P&gt;&lt;P&gt;before assigning the value to the variable with the data type of currency, &lt;/P&gt;&lt;P&gt;just use WRITE TO with the CURRENCY 'USD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;guna..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 02:40:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-issue-any-solution-for-this/m-p/7087898#M1506848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T02:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Currency conversion issue, any solution for this?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-issue-any-solution-for-this/m-p/7087899#M1506849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should do a conversion step for currency amount before insert them to DB. Please try FM: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;BAPI_CURRENCY_CONV_TO_INTERNAL&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; for each currency code and currency amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Thien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 04:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-issue-any-solution-for-this/m-p/7087899#M1506849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T04:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Currency conversion issue, any solution for this?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-issue-any-solution-for-this/m-p/7087900#M1506850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your help!&lt;/P&gt;&lt;P&gt;Actually I use the FM &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CURRENCY_CONVERTING_FACTOR&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; and I calculate the actual amount by doing:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lv_amount = lv_amount / factor "return from the above FM &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 15:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-conversion-issue-any-solution-for-this/m-p/7087900#M1506850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T15:33:34Z</dc:date>
    </item>
  </channel>
</rss>

