<?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 data type problem:888 = 88.8 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem-888-88-8/m-p/1909564#M378748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data:aaa type dec16_3.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;aaa = itab-field1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1 type is dec15_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in su01,all my user set is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i debuging,&lt;/P&gt;&lt;P&gt;i change the value of itab-field1,for exmple, the vlaue is 99(a integer ,without decimal fraction) ,the system change 99 into 0.99 .why?  &lt;/P&gt;&lt;P&gt;if i change the value into 99.00(a integer ,with two decimal fraction),the system do not change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab-field1 = 888 then aaa = 88.8. my god,SAP is so oddness.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Feb 2007 16:06:34 GMT</pubDate>
    <dc:creator>former_member192022</dc:creator>
    <dc:date>2007-02-11T16:06:34Z</dc:date>
    <item>
      <title>data type problem:888 = 88.8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem-888-88-8/m-p/1909564#M378748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data:aaa type dec16_3.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;aaa = itab-field1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1 type is dec15_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in su01,all my user set is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i debuging,&lt;/P&gt;&lt;P&gt;i change the value of itab-field1,for exmple, the vlaue is 99(a integer ,without decimal fraction) ,the system change 99 into 0.99 .why?  &lt;/P&gt;&lt;P&gt;if i change the value into 99.00(a integer ,with two decimal fraction),the system do not change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab-field1 = 888 then aaa = 88.8. my god,SAP is so oddness.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2007 16:06:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem-888-88-8/m-p/1909564#M378748</guid>
      <dc:creator>former_member192022</dc:creator>
      <dc:date>2007-02-11T16:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: data type problem:888 = 88.8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem-888-88-8/m-p/1909565#M378749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all dec numbers are stored as binary coded decimals (BCD), dec15_2 means that the last two digits are interpreted as decimals. This is due to automatic type conversion that two digits like 99 without any information about decimals will be stored 'as is' and get interpreted as last two digits for decimals - resulting in .99.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When units and currencies are involved, it gets even worse: In DDIC CURR and QUAN fields are connected to a currency key (CUKY) or unit key. Internal storing is always 3 digits and i.e. CUKY field gives information about number of decimals ( 1 for Japanese Yen, 2 for USD and so on).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conclusion: Many things in SAP are odd, most of them are caused by the business-orientation of system and programming language. It takes it's time to understand but then it turns out to be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2007 17:28:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem-888-88-8/m-p/1909565#M378749</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-02-11T17:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: data type problem:888 = 88.8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem-888-88-8/m-p/1909566#M378750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Li.you have more experience than me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my msn:meiok1@hotmail.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question has been answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the way is :&lt;/P&gt;&lt;P&gt;ABAP Edit \main menu\goto\attribute\&lt;/P&gt;&lt;P&gt;check the fixed point arithmetic checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the checkbox is checked default.&lt;/P&gt;&lt;P&gt;but my program is a copied program.&lt;/P&gt;&lt;P&gt;it has include,and i renamed the include to an exist&lt;/P&gt;&lt;P&gt;include name.So the main program become a include.(Maybe &lt;/P&gt;&lt;P&gt;it's a bug).I change the new main program type from include back to executable program.&lt;/P&gt;&lt;P&gt;the "fixed point arithmetic" checkbox is unchecked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 04:34:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem-888-88-8/m-p/1909566#M378750</guid>
      <dc:creator>former_member192022</dc:creator>
      <dc:date>2007-02-12T04:34:55Z</dc:date>
    </item>
  </channel>
</rss>

