<?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: decimal rounding.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-rounding/m-p/4253475#M1015356</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 this thread..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5826860"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Narin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Aug 2008 17:08:56 GMT</pubDate>
    <dc:creator>narin_nandivada3</dc:creator>
    <dc:date>2008-08-04T17:08:56Z</dc:date>
    <item>
      <title>decimal rounding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-rounding/m-p/4253473#M1015354</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;i went thru the forum for this and tried but did not work out..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is to round off a decimal number to zero decimals. so if the value is 1.3456 it should be 1.00 and if it is 1.8767 then it should be 2.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used the ROUND FM, no help..anything else is can do ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am trying to set this rounded number in my dialog screen text element whose data type is set as INIT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i need to change anything ?? pl suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 16:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-rounding/m-p/4253473#M1015354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T16:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: decimal rounding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-rounding/m-p/4253474#M1015355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just move the content to TYPE I field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: P_VAL TYPE P DECIMALS 3 VALUE '1.887',
P_INT TYPE I.

P_INT = P_VAL.
P_VAL = P_INT.

WRITE: P_VAL.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 16:56:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-rounding/m-p/4253474#M1015355</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-08-04T16:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: decimal rounding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-rounding/m-p/4253475#M1015356</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 this thread..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5826860"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Narin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 17:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-rounding/m-p/4253475#M1015356</guid>
      <dc:creator>narin_nandivada3</dc:creator>
      <dc:date>2008-08-04T17:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: decimal rounding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-rounding/m-p/4253476#M1015357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You can use the function module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;J_1I6_ROUND_TO_NEAREST_AMT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'J_1I6_ROUND_TO_NEAREST_AMT'
EXPORTING I_AMOUNT = V_KWERT u201C Amount to convert*
 
I_AMOUNT1 =
I_AMOUNT2 =
I_AMOUNT3 =
I_AMOUNT4 = ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 17:55:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-rounding/m-p/4253476#M1015357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T17:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: decimal rounding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-rounding/m-p/4253477#M1015358</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;you can do this by declaring one more variable of type INT. and then pass the value with decimal to this type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for e.g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type_p = 12.224.&lt;/P&gt;&lt;P&gt;type_i = type_p  . it will store 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type_p = type_i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will store 12.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please reward if you find the answer useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kamesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 18:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-rounding/m-p/4253477#M1015358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T18:01:08Z</dc:date>
    </item>
  </channel>
</rss>

