<?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 amounts in Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856247#M361969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If both the fields of internal tables are character types then it should be working fine. You can do arithmetic operations also on characters fields. Can you copy paste your code containig internal table declaration aslo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jan 2007 21:55:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-29T21:55:58Z</dc:date>
    <item>
      <title>Problem with amounts in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856243#M361965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 internal tables with header line . I am doing the following operation. &lt;/P&gt;&lt;P&gt;itab2-amt = itab2-amt + itab-amt .&lt;/P&gt;&lt;P&gt;itab2-amt1 = itab2-amt1 + itab-amt1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;amt and amt1 are defined as 9 characters each . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Debug mode itab amt and amt 1 show as 1110.34 and 2222.22 . &lt;/P&gt;&lt;P&gt;But when I do the above operation &lt;/P&gt;&lt;P&gt;itab2-amt = 111034 &lt;/P&gt;&lt;P&gt;itab2-amt1 = 222222&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 20:26:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856243#M361965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T20:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with amounts in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856244#M361966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if the check box for fixed point arithmetic is chosen in the program attruibutes section.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 20:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856244#M361966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T20:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with amounts in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856245#M361967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked it looks good . But why is that in one internal table it is different from the other . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 20:52:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856245#M361967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T20:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with amounts in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856246#M361968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do not perform arithmetic operations on character fields.&lt;/P&gt;&lt;P&gt;Check if the field is referring to NUMC, if yes try to define as a packed decimal and do the operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After all your operations are done, and you want it to be stored into a character data type, you may move it to another variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 21:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856246#M361968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T21:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with amounts in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856247#M361969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If both the fields of internal tables are character types then it should be working fine. You can do arithmetic operations also on characters fields. Can you copy paste your code containig internal table declaration aslo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 21:55:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856247#M361969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T21:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with amounts in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856248#M361970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because in the first table, the character value is assigned literally ('1110.34'). But as soon as you perform a caclulation with fixed point arithmetic turned off, it treats all numbers as integers.So the results are ijntegers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press F1 on the fixed point arithmetic checkbox in the attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Subramanian is correct. It's best not to do arithmetic on character fields. At best, performance is compromised; at worst, it can dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 22:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856248#M361970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T22:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with amounts in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856249#M361971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi hari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why dont u declare amt fields in both the itabs as type WRBTR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. amt1 type wrbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can use currency option to format the amount field in your write statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. write itab-amt currency USD.&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>Tue, 30 Jan 2007 01:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856249#M361971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T01:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with amounts in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856250#M361972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I THINK YOU DINT ASSIGN YOUR AMT FIELD AS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : AMT TYPE P DECIMALS 2.&lt;/P&gt;&lt;P&gt;OR ASSIGN LIKE ANY CURRENCY FIELD.&lt;/P&gt;&lt;P&gt;I THINK YOU ASSIGNED IT AS NUMERIC SO THE PROBLEM IS THERE PLS CORRECT ME IF I AM WRONG.&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;SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 04:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856250#M361972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T04:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with amounts in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856251#M361973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Kinldy check the Check box for   Fixed Point arthemetic.&lt;/P&gt;&lt;P&gt;It is availble in the attributes of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards&lt;/P&gt;&lt;P&gt;Nagaraju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 05:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856251#M361973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T05:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with amounts in Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856252#M361974</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;You try to declare AMT.&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: amt TYPE i  DECIMALS 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 05:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-amounts-in-internal-table/m-p/1856252#M361974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T05:18:46Z</dc:date>
    </item>
  </channel>
</rss>

