<?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 How can display Rounded Values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-display-rounded-values/m-p/3873672#M931111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Here i displayed age in decimals. But i want round figure. like if it is 0.5 or 0.6 it is rounded as 1 and if it is 1.4 rounded as 1.5 like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  How can i wil do&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2008 09:08:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-23T09:08:12Z</dc:date>
    <item>
      <title>How can display Rounded Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-display-rounded-values/m-p/3873672#M931111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Here i displayed age in decimals. But i want round figure. like if it is 0.5 or 0.6 it is rounded as 1 and if it is 1.4 rounded as 1.5 like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  How can i wil do&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 09:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-display-rounded-values/m-p/3873672#M931111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T09:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can display Rounded Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-display-rounded-values/m-p/3873673#M931112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;If your requirement is to round to the nearest integer, declare a variable of type Integer and move the decimal value to integer variable. This will get you the rounded integer value.

You can try with below example code:
&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_dec TYPE netwr.

DATA: p_num TYPE i.

p_num = p_dec.

write:/ p_num.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 09:34:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-display-rounded-values/m-p/3873673#M931112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T09:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can display Rounded Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-display-rounded-values/m-p/3873674#M931113</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;Try this code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zrich_0001 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: c(20) type c,&lt;/P&gt;&lt;P&gt;p1(10) type p decimals 1,&lt;/P&gt;&lt;P&gt;p2(10) type p decimals 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c = '22354.22'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p1 = c.&lt;/P&gt;&lt;P&gt;p2 = p1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; p2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a ABAP statement ROUND.&lt;/P&gt;&lt;P&gt;Check this link for details and examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/erp2005_ehp_03/helpdata/EN/9f/db9e3d35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/erp2005_ehp_03/helpdata/EN/9f/db9e3d35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 11:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-display-rounded-values/m-p/3873674#M931113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T11:09:04Z</dc:date>
    </item>
  </channel>
</rss>

