<?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 catch system-exceptions arithmetic_errors = 5. what this statement does in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-system-exceptions-arithmetic-errors-5-what-this-statement-does/m-p/3198210#M762129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at rt_fieldcat assigning &amp;lt;ls_fieldcat&amp;gt;&lt;/P&gt;&lt;P&gt;                      where not do_sum is initial&lt;/P&gt;&lt;P&gt;                        and not no_out eq 'X'&lt;/P&gt;&lt;P&gt;                        and tabname    eq r_tabname&lt;/P&gt;&lt;P&gt;                        and tech       is initial.&lt;/P&gt;&lt;P&gt;    catch system-exceptions arithmetic_errors = 5.&lt;/P&gt;&lt;P&gt;      assign component &amp;lt;ls_fieldcat&amp;gt;-fieldname&lt;/P&gt;&lt;P&gt;                       of structure rt_outtab to &amp;lt;sum&amp;gt;.&lt;/P&gt;&lt;P&gt;      assign local copy of &amp;lt;sum&amp;gt; to &amp;lt;sumcopy&amp;gt;.&lt;/P&gt;&lt;P&gt;      clear &amp;lt;sumcopy&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above code, the statement &lt;/P&gt;&lt;P&gt;"catch system-exceptions arithmetic_errors = 5".&lt;/P&gt;&lt;P&gt;what it is use of this statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2007 04:04:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-17T04:04:25Z</dc:date>
    <item>
      <title>catch system-exceptions arithmetic_errors = 5. what this statement does</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-system-exceptions-arithmetic-errors-5-what-this-statement-does/m-p/3198210#M762129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at rt_fieldcat assigning &amp;lt;ls_fieldcat&amp;gt;&lt;/P&gt;&lt;P&gt;                      where not do_sum is initial&lt;/P&gt;&lt;P&gt;                        and not no_out eq 'X'&lt;/P&gt;&lt;P&gt;                        and tabname    eq r_tabname&lt;/P&gt;&lt;P&gt;                        and tech       is initial.&lt;/P&gt;&lt;P&gt;    catch system-exceptions arithmetic_errors = 5.&lt;/P&gt;&lt;P&gt;      assign component &amp;lt;ls_fieldcat&amp;gt;-fieldname&lt;/P&gt;&lt;P&gt;                       of structure rt_outtab to &amp;lt;sum&amp;gt;.&lt;/P&gt;&lt;P&gt;      assign local copy of &amp;lt;sum&amp;gt; to &amp;lt;sumcopy&amp;gt;.&lt;/P&gt;&lt;P&gt;      clear &amp;lt;sumcopy&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above code, the statement &lt;/P&gt;&lt;P&gt;"catch system-exceptions arithmetic_errors = 5".&lt;/P&gt;&lt;P&gt;what it is use of this statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 04:04:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-system-exceptions-arithmetic-errors-5-what-this-statement-does/m-p/3198210#M762129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-17T04:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: catch system-exceptions arithmetic_errors = 5. what this statement does</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-system-exceptions-arithmetic-errors-5-what-this-statement-does/m-p/3198211#M762130</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;catch system-exceptions arithmetic_errors = 5.&lt;/P&gt;&lt;P&gt;.................&lt;/P&gt;&lt;P&gt;endcatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the code in the catch and endcatch block raises any arithmetic exceptions then it will make the sy-subrc value as 5 and avoids the dump(run time error)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 04:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-system-exceptions-arithmetic-errors-5-what-this-statement-does/m-p/3198211#M762130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-17T04:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: catch system-exceptions arithmetic_errors = 5. what this statement does</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-system-exceptions-arithmetic-errors-5-what-this-statement-does/m-p/3198212#M762131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can catch catchable runtime errors in the processing block enclosed between the CATCH and ENDCATCH statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;syntax :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CATCH SYSTEM-EXCEPTIONS except1 = rc1 ... exceptn = rcn. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rc ... rcn must be numeric literals. &lt;/P&gt;&lt;P&gt;You can include a CATCH ... ENDCATCH block anywhere where an IF ... ENDIF block can be included - that is, local to an event, not cross-event &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a runtime error is caught, the current processing block is interrupted, and the system jumps from the ABAP statement where the error occurred to the appropriate ENDCATCH statement - regardless of how many control structure levels (IF, DO, LOOP, SELECT, CATCH!, etc, ...) must be skipped. &lt;/P&gt;&lt;P&gt;You cannot be certain of the content of the fields affected by a statement where an error occurred, after ENDCATCH. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : &lt;/P&gt;&lt;P&gt;DATA I TYPE I. &lt;/P&gt;&lt;P&gt;*CONVERSION_ERRORS contains CONVT_NO_NUMBER *&lt;/P&gt;&lt;P&gt;CATCH SYSTEM-EXCEPTIONS CONVERSION_ERRORS = 1. &lt;/P&gt;&lt;P&gt;  MOVE 'abc' TO I.          " &amp;lt;- Error: CONVT_NO_NUMBER &lt;/P&gt;&lt;P&gt;ENDCATCH. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 1. &lt;/P&gt;&lt;P&gt;  ... &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link for further reference :&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/f2bbce142c11d3b93a0000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/f2bbce142c11d3b93a0000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward me if useful....&lt;/P&gt;&lt;P&gt;Harimanjesh AN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 04:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-system-exceptions-arithmetic-errors-5-what-this-statement-does/m-p/3198212#M762131</guid>
      <dc:creator>harimanjesh_an</dc:creator>
      <dc:date>2007-12-17T04:23:09Z</dc:date>
    </item>
  </channel>
</rss>

