<?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: calculation between type DEC &amp; CURR in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-between-type-dec-curr/m-p/8648799#M1666480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the data type &lt;STRONG&gt;PACKED&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2012 07:29:26 GMT</pubDate>
    <dc:creator>davis_raja</dc:creator>
    <dc:date>2012-03-01T07:29:26Z</dc:date>
    <item>
      <title>calculation between type DEC &amp; CURR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-between-type-dec-curr/m-p/8648798#M1666479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data l_dmbtr type dmbtr. " curr 13 2
data l_dec type zdec. " dec 12 6

l_dec = '10.000000'.
l_dmbtr = 10000 * l_dec.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in program, the L_dmbtr get value '100000.00',&lt;/P&gt;&lt;P&gt;but in OO context, l_dmbtr get value '1000000000.00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could someone give me some link to explain the calculation of the DEC and CURR?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and is there the problem of OO context?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 07:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-between-type-dec-curr/m-p/8648798#M1666479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-01T07:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: calculation between type DEC &amp; CURR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-between-type-dec-curr/m-p/8648799#M1666480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the data type &lt;STRONG&gt;PACKED&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 07:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-between-type-dec-curr/m-p/8648799#M1666480</guid>
      <dc:creator>davis_raja</dc:creator>
      <dc:date>2012-03-01T07:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: calculation between type DEC &amp; CURR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-between-type-dec-curr/m-p/8648800#M1666481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is nothing related to OO context over here, go to program attribute window and check a checkbox names "Fixed Point Arithmatic", your problem will be solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 08:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-between-type-dec-curr/m-p/8648800#M1666481</guid>
      <dc:creator>former_member194152</dc:creator>
      <dc:date>2012-03-01T08:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: calculation between type DEC &amp; CURR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-between-type-dec-curr/m-p/8648801#M1666482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fixed point arithmetic&lt;/P&gt;&lt;P&gt;If you mark this checkbox, all calculations in the program will use fixed point arithmetic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not, packed numbers (ABAP/4 type P, Dictionary types CURR, DEC or QUAN) will be treated as integers 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;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 08:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-between-type-dec-curr/m-p/8648801#M1666482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-01T08:36:33Z</dc:date>
    </item>
  </channel>
</rss>

