<?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: round off in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/round-off/m-p/4110787#M982873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ROUND'
    EXPORTING
      DECIMALS      = 0
      INPUT         = P_QUOTA_ROUND
      SIGN          = '-'
    IMPORTING
      OUTPUT        = P_QUOTA_ROUND
    EXCEPTIONS
      INPUT_INVALID = 1
      OVERFLOW      = 2
      TYPE_INVALID  = 3
      OTHERS        = 4.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2008 07:17:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-01T07:17:47Z</dc:date>
    <item>
      <title>round off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/round-off/m-p/4110783#M982869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   i am using a dec field(6,2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to round of this field,how to do this..I am in 4.6c version..&lt;/P&gt;&lt;P&gt;Can any one give a sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ids there any function module&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 07:06:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/round-off/m-p/4110783#M982869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T07:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: round off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/round-off/m-p/4110784#M982870</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;How do you want the O/P to be??? give an example plz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the write statemnt addition  :  decimals  and round&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use the FM ROUND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 07:09:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/round-off/m-p/4110784#M982870</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-07-01T07:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: round off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/round-off/m-p/4110785#M982871</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;use arthimetic operations &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CEIL &lt;/P&gt;&lt;P&gt;Smallest integer value that is not less than x &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLOOR &lt;/P&gt;&lt;P&gt;Largest integer value that is not greater than x &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRUNC &lt;/P&gt;&lt;P&gt;Interger part of x &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FRAC &lt;/P&gt;&lt;P&gt;Decimal part of x .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 07:10:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/round-off/m-p/4110785#M982871</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-07-01T07:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: round off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/round-off/m-p/4110786#M982872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;chk this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://members.tripod.com/sap_abap/write_op.htm" target="test_blank"&gt;http://members.tripod.com/sap_abap/write_op.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 07:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/round-off/m-p/4110786#M982872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T07:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: round off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/round-off/m-p/4110787#M982873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ROUND'
    EXPORTING
      DECIMALS      = 0
      INPUT         = P_QUOTA_ROUND
      SIGN          = '-'
    IMPORTING
      OUTPUT        = P_QUOTA_ROUND
    EXCEPTIONS
      INPUT_INVALID = 1
      OVERFLOW      = 2
      TYPE_INVALID  = 3
      OTHERS        = 4.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 07:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/round-off/m-p/4110787#M982873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T07:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: round off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/round-off/m-p/4110788#M982874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Please do it like this way &lt;/P&gt;&lt;P&gt;DATA : v_data TYPE p LENGTH 6 DECIMALS 2,&lt;/P&gt;&lt;P&gt;       l_str  TYPE string,&lt;/P&gt;&lt;P&gt;       l_str1 TYPE string,&lt;/P&gt;&lt;P&gt;       l_str2 TYPE string.&lt;/P&gt;&lt;P&gt;v_data = '333.53' .&lt;/P&gt;&lt;P&gt;l_str = v_data.&lt;/P&gt;&lt;P&gt;SPLIT l_str at '.' INTO l_str1 l_str2.&lt;/P&gt;&lt;P&gt;if l_str2 &amp;gt;= '50'.&lt;/P&gt;&lt;P&gt;  l_str1 = l_str1 + 1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;move l_str1 to v_data.&lt;/P&gt;&lt;P&gt;WRITE : / v_data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 07:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/round-off/m-p/4110788#M982874</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2008-07-01T07:18:22Z</dc:date>
    </item>
  </channel>
</rss>

