<?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: strange data conversion problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-data-conversion-problem/m-p/1410593#M197790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your right it might have something to with the program attributes.  You need to check the "Fix Point Arithimatic" Check box on the attributes screen on the program.  If it is not checked, then this is why you are seeing this behavior.  You may be able to just click this checkbox on and it will solve the problem, but there may be a reason why it is off.  If you don't check the box, you will need to handle manully which means that you will need to multiple by 100 or 1000 depending on the number of decimals places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jul 2006 17:19:48 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-07-21T17:19:48Z</dc:date>
    <item>
      <title>strange data conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-data-conversion-problem/m-p/1410592#M197789</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;&lt;/P&gt;&lt;P&gt;I have a strange data conversion problem. I have a few fields of type QUAN, with runtime values of Var1 - "499.000" and Var2 - "12.500". I divide Var1 by Var2 and push the result in another field of type QUAN, Var3. The result should be '39.920'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, the result in Var3 is '0.040'. The value getsw rounded off to 40 and then gets assigned to this variable. The funny part is that the value gets copied to Var3 directly without conversion, and ends up in the decimal part of the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this on another program and it worked fine. But here, there seems to be some other problem. I tried with packed decimals as well but got the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another strange thing is that usually if you assign a value like '123.456' from a packed decimal of dec. length 3 to another of length 2 the result would be '123.46', but when I do it in this program, it becomes '1234.56'. I fail to understand why this is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this has something to do with the program's attributes/environment. The same code works perfectly in other programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Madhur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 17:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-data-conversion-problem/m-p/1410592#M197789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T17:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: strange data conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-data-conversion-problem/m-p/1410593#M197790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your right it might have something to with the program attributes.  You need to check the "Fix Point Arithimatic" Check box on the attributes screen on the program.  If it is not checked, then this is why you are seeing this behavior.  You may be able to just click this checkbox on and it will solve the problem, but there may be a reason why it is off.  If you don't check the box, you will need to handle manully which means that you will need to multiple by 100 or 1000 depending on the number of decimals places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 17:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-data-conversion-problem/m-p/1410593#M197790</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-21T17:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: strange data conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-data-conversion-problem/m-p/1410594#M197791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check in the program attributes, if the Fixed point arithmatic is checked.&lt;/P&gt;&lt;P&gt;Sometimes, such kind of errors happen if the checkbox is not checked then all QUAN, packed decimals will treated as integers only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward for helpful replies!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 17:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-data-conversion-problem/m-p/1410594#M197791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T17:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: strange data conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-data-conversion-problem/m-p/1410595#M197792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich/Vikram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 17:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-data-conversion-problem/m-p/1410595#M197792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T17:27:15Z</dc:date>
    </item>
  </channel>
</rss>

