<?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: Incorrect value while division in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-value-while-division/m-p/2195596#M468560</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;simple define define ur variable as type 'F'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2007 09:31:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-09T09:31:34Z</dc:date>
    <item>
      <title>Incorrect value while division</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-value-while-division/m-p/2195595#M468559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I want to capture the calculated value correctly and without rounding off.&lt;/P&gt;&lt;P&gt;Example: 3501 / 3500 = 1.00028.&lt;/P&gt;&lt;P&gt;But in my variable of type p with decimals 5,it is getting stored as 0.01000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me how to store the correct value and also without rounding off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is as follows,which is in an user exit,and i can not set the attributes to 'Fixed point arithmetic'.&lt;/P&gt;&lt;P&gt;*************************************************************************************&lt;/P&gt;&lt;P&gt;DATA:LV_QTY_TRAILER              TYPE P DECIMALS 5,&lt;/P&gt;&lt;P&gt;         LV_CASES_PER_TRAILER TYPE MARM-UMREZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF NOT LV_CASES_PER_TRAILER IS INITIAL.&lt;/P&gt;&lt;P&gt;          LV_QTY_TRAILER = XVBAP-KWMENG  / LV_CASES_PER_TRAILER.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;**************************************************************************************&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Seshagiri.&lt;/P&gt;&lt;P&gt;Note: MARM-UMREZ. is of data type DEC with CHAR5 and&lt;/P&gt;&lt;P&gt;         XVBAP-KWMENG is of data type QUAN ,15,3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 09:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-value-while-division/m-p/2195595#M468559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T09:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect value while division</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-value-while-division/m-p/2195596#M468560</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;simple define define ur variable as type 'F'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 09:31:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-value-while-division/m-p/2195596#M468560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T09:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect value while division</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-value-while-division/m-p/2195597#M468561</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;if it is a report then goto se38 enter your reportname&lt;/P&gt;&lt;P&gt;then check the attributes radio button then click change and see&lt;/P&gt;&lt;P&gt;whether the check box    &amp;lt;b&amp;gt;Fixed Point Arithmetic&amp;lt;/b&amp;gt;  is Checked                &lt;/P&gt;&lt;P&gt;if not please check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********&lt;/P&gt;&lt;P&gt;if it is the Function group &lt;/P&gt;&lt;P&gt;then check the attributes of the function group &lt;/P&gt;&lt;P&gt;and see&lt;/P&gt;&lt;P&gt;whether the check box    &amp;lt;b&amp;gt;Fixed Point Arithmetic&amp;lt;/b&amp;gt;  is Checked                &lt;/P&gt;&lt;P&gt;if not please check it.&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;santosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 09:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-value-while-division/m-p/2195597#M468561</guid>
      <dc:creator>Santosh_Kezkhepatmelathil</dc:creator>
      <dc:date>2007-05-09T09:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect value while division</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-value-while-division/m-p/2195598#M468562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanks for the info.&lt;/P&gt;&lt;P&gt;However as already mentioned in my question i can't fix the checkbox,'Fixed point arithmetic'.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Seshagiri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 10:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-value-while-division/m-p/2195598#M468562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T10:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect value while division</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-value-while-division/m-p/2195599#M468563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the solution.&lt;/P&gt;&lt;P&gt;I got the correct value by declaring as type F.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Seshagiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 10:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-value-while-division/m-p/2195599#M468563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T10:13:19Z</dc:date>
    </item>
  </channel>
</rss>

