<?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: Run time Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939543#M692934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is ok but,  when i unckeck the folating pont arithematic field in the program attributes the program is working fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2007 08:44:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-16T08:44:44Z</dc:date>
    <item>
      <title>Run time Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939539#M692930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i write the program as below and if i check the floating point arithematic in the program attributes the system is throwing dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : x type p length 3 decimals 2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x = 12356.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the reason behind that ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram .T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 08:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939539#M692930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T08:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Run time Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939540#M692931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare x like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : x type p decimals 2 .&lt;/P&gt;&lt;P&gt;here you have specified length 3 but passing a large value so overflow was occuring.&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, 16 Oct 2007 08:40:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939540#M692931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T08:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Run time Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939541#M692932</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;Try like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : x type p length &amp;lt;b&amp;gt;5&amp;lt;/b&amp;gt; decimals 2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x = 12356.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The X length is exceeded the limit. So Only you got Runtime Error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for Data Types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e2335c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e2335c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 08:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939541#M692932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T08:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Run time Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939542#M692933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you have defined x as nnn,nn and will move nnnnn to it, that's&lt;/P&gt;&lt;P&gt;the problem.&lt;/P&gt;&lt;P&gt;set x with 123 or define it like length 5 decimals 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 08:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939542#M692933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T08:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Run time Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939543#M692934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is ok but,  when i unckeck the folating pont arithematic field in the program attributes the program is working fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 08:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939543#M692934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T08:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Run time Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939544#M692935</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;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 when the checkbox is NOT ticked. &lt;/P&gt;&lt;P&gt;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;Hence the short dump "A calculation field is defined too small."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Arun Nair&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 08:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939544#M692935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T08:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Run time Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939545#M692936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls go through this it may help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb333d358411d1829f0000e829fbfe/content.htm"&amp;gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb333d358411d1829f0000e829fbfe/content.htm&amp;lt;/a&amp;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, 16 Oct 2007 09:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939545#M692936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T09:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Run time Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939546#M692937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Herewith is the CONCEPT underlying:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In type P fields, the system reserves one digit for the plus or minus sign, so a P field with length 3 can contain a maximum of 5 digits including decimals. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The situation is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x = 12356  although the decimals point was not shown, the original value should be x = 12356.00 so there is a total of 7 digits. Therefore, runtime error BCD_FIELD_OVERFLOW occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As what was written:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : x(3) type p decimals 2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x = 12356.  ===should be===&amp;gt;  x = 123.56.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : x.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 09:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/2939546#M692937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T09:26:13Z</dc:date>
    </item>
  </channel>
</rss>

