<?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: rounding problems in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-problems/m-p/10278504#M1831778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why not try to round the variable before you pass it to the badi or round the o/p of the badi before passing it to further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the formatting options in the write statement CURR/DEC/ROUND to do this in a local variable and then pass the local variable to the badi or pass the o/p of the badi to a local variable, then round it and then use this rounded value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vikram.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2014 18:39:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-04-29T18:39:49Z</dc:date>
    <item>
      <title>rounding problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-problems/m-p/10278503#M1831777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using the BAPI_ACC_DOCUMENT_POST&amp;nbsp; to do a reclassification posting F-02 for manager motives. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to calculate the exchange tax. We do Amount in Local Currency / Amount in Forreing Currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that in the BADI&amp;nbsp; LV_EXCH_RATE has 13 decimals but GS_CURR-EXCH_RATE moves only 5 decimals so we have rounding problems. We are doing the accounting with GS_CURR-EXCH_RATE that has only 5 decimals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/443177" width="860" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/443178" height="401" width="852" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/443179" height="153" width="851" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone know how to move more than 5 decimals on the posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;marta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 18:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-problems/m-p/10278503#M1831777</guid>
      <dc:creator>former_member298059</dc:creator>
      <dc:date>2014-04-29T18:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: rounding problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-problems/m-p/10278504#M1831778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why not try to round the variable before you pass it to the badi or round the o/p of the badi before passing it to further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the formatting options in the write statement CURR/DEC/ROUND to do this in a local variable and then pass the local variable to the badi or pass the o/p of the badi to a local variable, then round it and then use this rounded value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vikram.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 18:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-problems/m-p/10278504#M1831778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-29T18:39:49Z</dc:date>
    </item>
  </channel>
</rss>

