<?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: false calculation result in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252828#M1829524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mention the type declaration used for EKKO_VAL , EKPO_VAL and BALANCE in the program. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Apr 2014 10:53:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-04-14T10:53:28Z</dc:date>
    <item>
      <title>false calculation result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252827#M1829523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello expert,&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; I make an enhancement in PO when i make some calculation the result get zero as the example below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SINGLE &lt;/SPAN&gt;NETWR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;ESSR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;EKKO_VAL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;EBELN &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;WA&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;EBELN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;EBELP &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;WA&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;EBELP&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SINGLE &lt;/SPAN&gt;BRTWR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;EKPO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;EKPO_VAL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;EBELN &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;WA&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;EBELN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;EBELP &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;WA&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;EBELP&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;EKKO_VAL = 15000,00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;EKPO_VAL = 50000,00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BALANCE &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;EKKO_VAL / EKPO_VAL &lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;BALANCE must be 0.03 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;but it is coming zero ,any body can help ,thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 10:41:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252827#M1829523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-14T10:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: false calculation result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252828#M1829524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mention the type declaration used for EKKO_VAL , EKPO_VAL and BALANCE in the program. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 10:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252828#M1829524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-14T10:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: false calculation result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252829#M1829525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the type of this three variables is&amp;nbsp; P &lt;SPAN class="L0S52"&gt;DECIMALS 2&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 11:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252829#M1829525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-14T11:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: false calculation result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252830#M1829526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the enhancement belongs to a program with the flag "fixed point arithmetic" switched off, you will get 0. If it is switched on, you will get 0.30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In older ABAP programs, find the "fixed point arithmetic" flag switched off. In more recent programs, and when creating new programs, the flag will be switched on by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If "fixed point arithmetic" is switched off, all decimal points will be ignored, and all intermediate results will be rounded to integers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;data&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;x &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;p length &lt;SPAN class="L0S32"&gt;7 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;decimals &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;p length &lt;SPAN class="L0S32"&gt;7 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;decimals &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;z &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;p length &lt;SPAN class="L0S32"&gt;7 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;decimals &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;x &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'15000.00'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; y &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'50000.00'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;z &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;x &lt;/SPAN&gt;/ y&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;write &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;z&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. " --&amp;gt; 0.30 with fixed point arithmetic, 0.00 without fixed point arithmetic&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rüdiger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 12:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252830#M1829526</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2014-04-14T12:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: false calculation result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252831#M1829527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks rudiger for your replay,&lt;/P&gt;&lt;P&gt;but it is include program where can I find the flag of&amp;nbsp; 'fixed point arithmetic' because the result still coming zero &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 12:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252831#M1829527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-14T12:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: false calculation result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252832#M1829528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed, an include program is included in a main program. It is the flag of the main program that counts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for old SAP programs, you'll mess them up by changing that flag, so changing the flag to 'X' would be no solution. If you're in an exit, you have two options:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Extract the logic from the exit into an own function module or class method, and call that function module or class method from within the exit. In your own program, leave the "fixed point arithmetic = 'X'"&lt;/LI&gt;&lt;LI&gt;OR (not-so-good option): Compute by multiplying with the correct power of ten. So in your case, if numerator and denominator both have 2 decimals, multiply by 100 before doing the division.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rüdiger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 13:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252832#M1829528</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2014-04-14T13:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: false calculation result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252833#M1829529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks guru I change the "fixed point arthimetic" in the main program and now it is working correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 13:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252833#M1829529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-14T13:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: false calculation result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252834#M1829530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I said you better NOT do! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; As I said in my last reply, in old programs you will mess up all the other (old) computations of the standard when changing their fixed point arithmetic flag!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 13:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252834#M1829530</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2014-04-14T13:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: false calculation result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252835#M1829531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes yes i just test it but i create new function and assigned it to the include program and working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 13:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/false-calculation-result/m-p/10252835#M1829531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-14T13:45:30Z</dc:date>
    </item>
  </channel>
</rss>

