<?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: Wrong amount in calculation in ABAP code. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-amount-in-calculation-in-abap-code/m-p/10777418#M1878535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Aashika,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your suggestion too..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thangam.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Dec 2014 11:27:11 GMT</pubDate>
    <dc:creator>thangam_perumal</dc:creator>
    <dc:date>2014-12-24T11:27:11Z</dc:date>
    <item>
      <title>Wrong amount in calculation in ABAP code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-amount-in-calculation-in-abap-code/m-p/10777413#M1878530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here i am facing one issue on ABAP multiplication code.&lt;/P&gt;&lt;P&gt;for your reference you can see below.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/614587" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code is:&lt;/P&gt;&lt;P&gt;it_ekpo-netwr = 741.67&lt;/P&gt;&lt;P&gt;dkwert&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 10.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_excise1 = ( it_ekpo-netwr / 100 )&amp;nbsp; * dkwert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i execute above line the answer should come&amp;nbsp; g_excise1&amp;nbsp; = 74.20 but instead of 74.20 answer coming 7420.00.&lt;/P&gt;&lt;P&gt;.actually all the variables are same data types.&amp;nbsp; kindly anyone suggest me what is the reason behind this? above program type is executable program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but&amp;nbsp; another program ( Type Subroutine pool ) same logic and same block is working well. only Program type is difference.&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;&amp;nbsp; Thangam.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 10:38:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-amount-in-calculation-in-abap-code/m-p/10777413#M1878530</guid>
      <dc:creator>thangam_perumal</dc:creator>
      <dc:date>2014-12-24T10:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong amount in calculation in ABAP code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-amount-in-calculation-in-abap-code/m-p/10777414#M1878531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thangam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever we multiply or divide anything with the Condition value (KWERT) the decimals always behave like this. To overcome this issue, usually it happens in pricing routines, we adjust the value by multiplying/divide with multiples of 10. This adjusts the decimal points correctly.&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;Aashika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 10:53:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-amount-in-calculation-in-abap-code/m-p/10777414#M1878531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-24T10:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong amount in calculation in ABAP code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-amount-in-calculation-in-abap-code/m-p/10777415#M1878532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Perumal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check you program attributes-&amp;gt;&lt;STRONG&gt;Fixed point Arithmetic&amp;nbsp; &lt;/STRONG&gt;Check box should be checked otherwise the calculations will not be accurate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried an example like below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case1 :&lt;/STRONG&gt; &lt;STRONG&gt;Fixed point Arithmetic&lt;/STRONG&gt; Checked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;data &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lv_netwr &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;BPREI &lt;SPAN class="L0S52"&gt;VALUE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'741.67'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lv_drk &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;BPREI &lt;SPAN class="L0S52"&gt;VALUE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'10.00'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lv_val &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;BPREI&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; lv_val &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;lv_netwr / &lt;SPAN class="L0S32"&gt;100 &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;* lv_drk&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;/ lv_val&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OUTPUT :&amp;nbsp; 74.17&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case2 : Fixed point Arithmetic&lt;/STRONG&gt; UnChecked&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OUTPUT :&amp;nbsp; 7,420.00&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Once check and revert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 11:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-amount-in-calculation-in-abap-code/m-p/10777415#M1878532</guid>
      <dc:creator>pavanm592</dc:creator>
      <dc:date>2014-12-24T11:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong amount in calculation in ABAP code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-amount-in-calculation-in-abap-code/m-p/10777416#M1878533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashika,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your immediate reply and also i agree with your point . but if kwert having decimal issue mean it should behave same as everywhere but one of the subroutine pool program same logic and same input it calculates correct and exact values. My question is what might be problem of this issue. for more details Please look on the below screen shots.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/614657" width="450" /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant determine the Root cause.&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;&amp;nbsp; Thangam.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 11:13:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-amount-in-calculation-in-abap-code/m-p/10777416#M1878533</guid>
      <dc:creator>thangam_perumal</dc:creator>
      <dc:date>2014-12-24T11:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong amount in calculation in ABAP code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-amount-in-calculation-in-abap-code/m-p/10777417#M1878534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yeah now working fine.. Thanks for your suggestion.&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; Thangam.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 11:26:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-amount-in-calculation-in-abap-code/m-p/10777417#M1878534</guid>
      <dc:creator>thangam_perumal</dc:creator>
      <dc:date>2014-12-24T11:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong amount in calculation in ABAP code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-amount-in-calculation-in-abap-code/m-p/10777418#M1878535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Aashika,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your suggestion too..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thangam.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 11:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-amount-in-calculation-in-abap-code/m-p/10777418#M1878535</guid>
      <dc:creator>thangam_perumal</dc:creator>
      <dc:date>2014-12-24T11:27:11Z</dc:date>
    </item>
  </channel>
</rss>

