<?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: Avoid Rounding off numbers in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392186#M532093</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;If you dont have Fixed point arithmetic turned on , the rounding will happen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2007 15:49:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-01T15:49:40Z</dc:date>
    <item>
      <title>Avoid Rounding off numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392183#M532090</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;I have declared my internal table with variables using like bsak-dmbtr as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt; salpb like bsak-dmbtr, &lt;/P&gt;&lt;P&gt; solbm like bsak-dmbtr,&lt;/P&gt;&lt;P&gt; salhb like bsak-dmbtr,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now While using  SUM, the values in internal table gets rounded off .&lt;/P&gt;&lt;P&gt;I want to &amp;lt;b&amp;gt;avoid&amp;lt;/b&amp;gt; rounding the numbers and display the amoutn as it is &lt;/P&gt;&lt;P&gt;i.e  9,712.97 should be shown  as  9,712.97 and not 9712 or 9713. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is the same when i declare the variables of &amp;lt;b&amp;gt;type p decimals 2&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone please suggest me a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 15:37:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392183#M532090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T15:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid Rounding off numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392184#M532091</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;Check the attribute of your report, perhaps you've not checked the flag "Fixed Point Arthimetic"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 15:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392184#M532091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T15:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid Rounding off numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392185#M532092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if this problem is related to the SUM keyword or the program attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check your program attributes and make sure the attribute (checkbox) "Fixed Point Arithmetic" is checked. If this is not checked, all your calculations will be rounded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Sumant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 15:48:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392185#M532092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T15:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid Rounding off numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392186#M532093</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;If you dont have Fixed point arithmetic turned on , the rounding will happen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 15:49:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392186#M532093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T15:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid Rounding off numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392187#M532094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a variable of type DMBTR and inside the loop add the value to the decalred variable. This time after the loop the value will not bo rounded of. Means the value will come upto 2 decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: v  type DMBTR.

Loop at itab.

v = v + bsak-dmbtr.

endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashvender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 15:50:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392187#M532094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T15:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid Rounding off numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392188#M532095</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;Yes the fixed point airthemtic box id checked. I am on version 4.0.&lt;/P&gt;&lt;P&gt;But still not solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashvender Kumar - can u elaborate that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v  type DMBTR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should be DATA: v  like bsak-DMBTR..Isn't it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 16:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392188#M532095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T16:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid Rounding off numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392189#M532096</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;Instead of refering Data dictionary, try to delcare the field with type p decimals 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex &lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;salpb type p decimals 2,&lt;/P&gt;&lt;P&gt;solbm type p decimals 2, &lt;/P&gt;&lt;P&gt;salhb type p decimals 2,&lt;/P&gt;&lt;P&gt;end of itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then find the sume for this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope this will solve ur problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need ur reward points.&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>Fri, 01 Jun 2007 16:27:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392189#M532096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T16:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid Rounding off numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392190#M532097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Odd - would you try running this? It works as expected with fixed point arithmetic on or off:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ztemp LINE-SIZE 80 MESSAGE-ID 00.

DATA: bseg_int TYPE TABLE OF bseg WITH HEADER LINE.

SELECT * FROM bseg
  INTO TABLE bseg_int UP TO 10 ROWS.

LOOP AT bseg_int.
  WRITE /001 bseg_int-dmbtr.
  AT LAST.
    SUM.
    WRITE /001 bseg_int-dmbtr.
  ENDAT.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 16:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-rounding-off-numbers/m-p/2392190#M532097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T16:40:32Z</dc:date>
    </item>
  </channel>
</rss>

