<?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 issue when dividing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-issue-when-dividing/m-p/2749387#M639348</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;the problem is with the &amp;lt;b&amp;gt;attribute of the program&amp;lt;/b&amp;gt; where your are writing the code for division. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open the prog in SE38 and check the &amp;lt;b&amp;gt;Fixed point arithmetic&amp;lt;/b&amp;gt; parameter - i guess u ll find it dechecked. To get proper result &amp;lt;b&amp;gt;u need to have it checked&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are inside a customer exit/include then you will have to create a function module for doing the calculations and related stuffs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it solves ur prob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2007 08:09:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-05T08:09:51Z</dc:date>
    <item>
      <title>decimal issue when dividing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-issue-when-dividing/m-p/2749385#M639346</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;price is in curr with 2 decimals, while qty is in data type DEC, 5.&lt;/P&gt;&lt;P&gt;  cal = ( price / qty )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to get the calc in 3 decimal points.&lt;/P&gt;&lt;P&gt;when i put calc as p decimal 3 it gave a different value.&lt;/P&gt;&lt;P&gt;Eg, 58.467/10 gave as 0.585 where as it should be 5.847&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one advise as to which data type i should use for calc field. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Keshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 06:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-issue-when-dividing/m-p/2749385#M639346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T06:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: decimal issue when dividing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-issue-when-dividing/m-p/2749386#M639347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : l_price type bseg-dmbtr,&lt;/P&gt;&lt;P&gt;       l_qty   type p decimals 5,&lt;/P&gt;&lt;P&gt;       l_cal   type p decimals 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_price = '58.467'.&lt;/P&gt;&lt;P&gt;l_qty = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_cal = l_price / l_qty .&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; l_cal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 06:51:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-issue-when-dividing/m-p/2749386#M639347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T06:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: decimal issue when dividing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-issue-when-dividing/m-p/2749387#M639348</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;the problem is with the &amp;lt;b&amp;gt;attribute of the program&amp;lt;/b&amp;gt; where your are writing the code for division. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open the prog in SE38 and check the &amp;lt;b&amp;gt;Fixed point arithmetic&amp;lt;/b&amp;gt; parameter - i guess u ll find it dechecked. To get proper result &amp;lt;b&amp;gt;u need to have it checked&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are inside a customer exit/include then you will have to create a function module for doing the calculations and related stuffs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it solves ur prob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 08:09:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimal-issue-when-dividing/m-p/2749387#M639348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T08:09:51Z</dc:date>
    </item>
  </channel>
</rss>

