<?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 for Analytical Data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-for-analytical-data/m-p/5896819#M1327283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;megan,&lt;/P&gt;&lt;P&gt;do one thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the last digit of the number(dec_digit in the code snipet). (1st digit after decimal as per your rule). u can pass it to string and then use split or some other thing to get the 1st digit after decimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use a if block either to floor or ceil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;gv_val = dec_digit mod 2.

if gv_val = 0.
   gv_result = floor (amount).

else.
   gv_result = ceil (amount)

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i am not givign a executed code here as i dont have sap currently with me. but use this logic. hope this will do your job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Somu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2009 18:42:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-27T18:42:44Z</dc:date>
    <item>
      <title>Rounding for Analytical Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-for-analytical-data/m-p/5896815#M1327279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a function module that does Rounding for Analytical Data? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use function module ROUND, 1.25 becomes 1.3 and 1.35 becomes 1.4 &lt;/P&gt;&lt;P&gt;But in analytical rounding rules, if the last digit is even round down and last digit is odd round up. So 1.25 becomes 1.2 and 1.35 becomes 1.4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 14:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-for-analytical-data/m-p/5896815#M1327279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T14:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding for Analytical Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-for-analytical-data/m-p/5896816#M1327280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whether CEIL will work ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3316358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3316358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 15:33:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-for-analytical-data/m-p/5896816#M1327280</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-07-27T15:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding for Analytical Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-for-analytical-data/m-p/5896817#M1327281</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;Try to use FIMA_NUMERICAL_VALUE_ROUND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 15:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-for-analytical-data/m-p/5896817#M1327281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T15:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding for Analytical Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-for-analytical-data/m-p/5896818#M1327282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FIMA_NUMERICAL_VALUE_ROUND does not seem to handle analytical rounding rules&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 18:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-for-analytical-data/m-p/5896818#M1327282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T18:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding for Analytical Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-for-analytical-data/m-p/5896819#M1327283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;megan,&lt;/P&gt;&lt;P&gt;do one thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the last digit of the number(dec_digit in the code snipet). (1st digit after decimal as per your rule). u can pass it to string and then use split or some other thing to get the 1st digit after decimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use a if block either to floor or ceil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;gv_val = dec_digit mod 2.

if gv_val = 0.
   gv_result = floor (amount).

else.
   gv_result = ceil (amount)

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i am not givign a executed code here as i dont have sap currently with me. but use this logic. hope this will do your job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Somu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 18:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-for-analytical-data/m-p/5896819#M1327283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T18:42:44Z</dc:date>
    </item>
  </channel>
</rss>

