<?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 off in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1674469#M297663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report ztest. &lt;/P&gt;&lt;P&gt;DATA pack LIKE vbap-netwr VALUE '123.456'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE pack DECIMALS 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / pack ROUND -2,&lt;/P&gt;&lt;P&gt;       / pack ROUND -1,&lt;/P&gt;&lt;P&gt;       / pack ROUND 1,&lt;/P&gt;&lt;P&gt;       / pack ROUND 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Nov 2006 09:36:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-06T09:36:05Z</dc:date>
    <item>
      <title>rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1674465#M297659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all,&lt;/P&gt;&lt;P&gt;help me in this issue&lt;/P&gt;&lt;P&gt;how to round off the amount of different currencies without using round_amount and fi_round_amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advacne&lt;/P&gt;&lt;P&gt;kiran kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 09:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1674465#M297659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T09:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1674466#M297660</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;&lt;/P&gt;&lt;P&gt;You can handle it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM HR_IN_ROUND_AMT and HR_NZ_ROUNDING_DECIMALS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgda&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped pls mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 09:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1674466#M297660</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-06T09:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1674467#M297661</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 FM ROUND..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 09:30:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1674467#M297661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T09:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1674468#M297662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anersha,&lt;/P&gt;&lt;P&gt;           in our system all the curencies r not maintained so there is a problem with funcitonal modules both fi_round_amount and round_amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;kiran kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 09:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1674468#M297662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T09:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1674469#M297663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report ztest. &lt;/P&gt;&lt;P&gt;DATA pack LIKE vbap-netwr VALUE '123.456'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE pack DECIMALS 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / pack ROUND -2,&lt;/P&gt;&lt;P&gt;       / pack ROUND -1,&lt;/P&gt;&lt;P&gt;       / pack ROUND 1,&lt;/P&gt;&lt;P&gt;       / pack ROUND 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 09:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1674469#M297663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T09:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1674470#M297664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto&lt;DEL&gt;&amp;gt;attributes&lt;/DEL&gt;&amp;gt; check Fixed point arithmetic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fixed point arithmetic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you mark this checkbox, all caluculations in the program will use fixed point arithmetic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not, packed numbers (ABAP/4 type P, Dictionary types CURR, DEC or QUAN) will be treated as integers when they are used in assignments, comparisons and calculations, irrespective of the number of decimal places defined. Intermediate results in arithmetic calculations will also be rounded to the next whole number. The number of decimal places defined is only taken into account when you output the answer using the WRITE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZSPELL.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data : v_amt type p decimals 2 value '40.58',&lt;/P&gt;&lt;P&gt;       v_int type i.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;v_int = floor( v_amt ).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;write : v_int.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped pls mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 09:37:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1674470#M297664</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-06T09:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1674471#M297665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use   as ur  requerment for rounding..&lt;/P&gt;&lt;P&gt;check this example...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: I TYPE I, &lt;/P&gt;&lt;P&gt;P TYPE P DECIMALS 2, &lt;/P&gt;&lt;P&gt;M TYPE F VALUE '-3.5', &lt;/P&gt;&lt;P&gt;D TYPE P DECIMALS 1. &lt;/P&gt;&lt;P&gt;P = ABS( M ). " 3,5 &lt;/P&gt;&lt;P&gt;I = P. " 4 - business rounding &lt;/P&gt;&lt;P&gt;I = M. " -4 &lt;/P&gt;&lt;P&gt;I = CEIL( P ). " 4 - next largest whole number &lt;/P&gt;&lt;P&gt;I = CEIL( M ). " -3 &lt;/P&gt;&lt;P&gt;I = FLOOR( P ). " 3 - next smallest whole number &lt;/P&gt;&lt;P&gt;I = FLOOR( M ). " -4 &lt;/P&gt;&lt;P&gt;I = TRUNC( P ). " 3 - integer part &lt;/P&gt;&lt;P&gt;I = TRUNC( M ). " -3 &lt;/P&gt;&lt;P&gt;D = FRAC( P ). " 0.5 - decimal part &lt;/P&gt;&lt;P&gt;D = FRAC( M ). " -0.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 09:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1674471#M297665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T09:47:39Z</dc:date>
    </item>
  </channel>
</rss>

