<?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: Problem with fixed point arithmetic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fixed-point-arithmetic/m-p/4259559#M1016610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please declare v_netprice as a packed number.&lt;/P&gt;&lt;P&gt;Thanks and Regards ,&lt;/P&gt;&lt;P&gt;Debojyoti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2008 08:06:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-30T08:06:51Z</dc:date>
    <item>
      <title>Problem with fixed point arithmetic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fixed-point-arithmetic/m-p/4259557#M1016608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fixed point arithemtic in my program is unticked and I want it that way. But I have a question on what's the explanation behind this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_netprice like LIPS-NETPR&lt;/P&gt;&lt;P&gt;v_net value like bapiitemin-req_qty&lt;/P&gt;&lt;P&gt;v_qty type lips-lgmng&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_net_value = 436927.2000&lt;/P&gt;&lt;P&gt;v_qty = 240.000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_netprice = v_net_value / v_qty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In v_netprice, I am getting 1.8205... Why is this so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 08:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fixed-point-arithmetic/m-p/4259557#M1016608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T08:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fixed point arithmetic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fixed-point-arithmetic/m-p/4259558#M1016609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Check fixed point arithmetic option F1 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto-&amp;gt;attributes-&amp;gt; fixed point arithmetic&lt;/P&gt;&lt;P&gt;press F1. &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Adil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 08:06:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fixed-point-arithmetic/m-p/4259558#M1016609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T08:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fixed point arithmetic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fixed-point-arithmetic/m-p/4259559#M1016610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please declare v_netprice as a packed number.&lt;/P&gt;&lt;P&gt;Thanks and Regards ,&lt;/P&gt;&lt;P&gt;Debojyoti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 08:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fixed-point-arithmetic/m-p/4259559#M1016610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T08:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fixed point arithmetic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fixed-point-arithmetic/m-p/4259560#M1016611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mark,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I have tried the below code on my system and i am getting the value correctly ...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : v_netprice type NETPR,
v_net_value type NETPR,
v_qty type lips-lgmng.

v_net_value = '436927.2000'.
v_qty = '240.000'.

v_netprice = v_net_value / v_qty.

write : v_netprice.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 08:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fixed-point-arithmetic/m-p/4259560#M1016611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T08:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fixed point arithmetic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fixed-point-arithmetic/m-p/4259561#M1016612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just set from menu-&amp;gt;goto-&amp;gt;attributes-&amp;gt;mark checkbox fixed point arithmetic..it will give you a correct answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 08:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fixed-point-arithmetic/m-p/4259561#M1016612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T08:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fixed point arithmetic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fixed-point-arithmetic/m-p/4259562#M1016613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;look at the field description for field bapiitemin-req_qty&lt;/P&gt;&lt;P&gt;'Order qty in sales units - 00009001 corresponds to 9.001'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might be U got the result as .. 1820.5.. but it is showing as&lt;/P&gt;&lt;P&gt;1.8205 ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 08:09:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fixed-point-arithmetic/m-p/4259562#M1016613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T08:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fixed point arithmetic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fixed-point-arithmetic/m-p/4259563#M1016614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you mark this checkbox, *all caluculations in the program will use &lt;STRONG&gt;fixed point arithmetic&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If you do not,&lt;/STRONG&gt; &lt;STRONG&gt;packed numbers&lt;/STRONG&gt; (ABAP/4 type P, Dictionary types CURR, DEC or QUAN) &lt;STRONG&gt;will be treated as integers&lt;/STRONG&gt; when they are used in assignments, comparisons and calculations, irrespective of the number of decimal places defined. Intermediate results in arithmetic calculations will also be rounded to the next whole number. The number of decimal places defined is only taken into account when you output the answer using the WRITE statement.&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;Swapna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 08:11:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fixed-point-arithmetic/m-p/4259563#M1016614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T08:11:31Z</dc:date>
    </item>
  </channel>
</rss>

