<?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: Catching abap exception in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/catching-abap-exception/m-p/1634636#M283042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try CATCH statement to catch the exception.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2006 10:11:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-19T10:11:52Z</dc:date>
    <item>
      <title>Catching abap exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catching-abap-exception/m-p/1634635#M283041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm testing a function and for that I'm forcing dumps, and catching exceptions. Divisions by zero is one of the examples. &lt;/P&gt;&lt;P&gt;For division by zero I'm able to catch it with an c_sy_no_handler exception, but I've another example which I'm not being able to catch it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sendind an message e001(zisa), which will exit automatically from the function module. Am I able to catch that message? Meaning, can I catch it and treat it, instead of the system exiting the function and showing the corresponding message?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catching-abap-exception/m-p/1634635#M283041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Catching abap exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catching-abap-exception/m-p/1634636#M283042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try CATCH statement to catch the exception.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catching-abap-exception/m-p/1634636#M283042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Catching abap exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catching-abap-exception/m-p/1634637#M283043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done that for the divide by zero exception. And I've tried for this as well, but cx_sy_no_handler doesn't catch it. I've looked for another cx_* but I was not able to find it. Do you know any? or any method?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catching-abap-exception/m-p/1634637#M283043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Catching abap exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catching-abap-exception/m-p/1634638#M283044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use command RAISE or MESSAGE ... RAISING...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:30:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catching-abap-exception/m-p/1634638#M283044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Catching abap exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catching-abap-exception/m-p/1634639#M283045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you want to show an error message and also want to catch it raise an exception along with the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex MESSAGE e001(zisa) raising &amp;lt;EXCEPTION&amp;gt;. Declare this exception in the exception tab of the Function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use ERROR-MESSAGE if you just want to catch the message with out raisning the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 12:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catching-abap-exception/m-p/1634639#M283045</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2006-10-19T12:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Catching abap exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catching-abap-exception/m-p/1634640#M283046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seshatalpasai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to MESSAGE e001(zisa) raising cx_application_fault, where I defined the exception on the function module exceptions, but I'm not able to activate it. I get:&lt;/P&gt;&lt;P&gt;"you cannot use MESSAGE RAISING together with the new exceptions"....Do you have any idea on how to workaround this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 16:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catching-abap-exception/m-p/1634640#M283046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T16:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Catching abap exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catching-abap-exception/m-p/1634641#M283047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vaz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: result TYPE p DECIMALS 3,&lt;/P&gt;&lt;P&gt;      number TYPE i VALUE 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH SYSTEM-EXCEPTIONS arithmetic_errors = 5.&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    number = number - 1.&lt;/P&gt;&lt;P&gt;    result = 1 / number.&lt;/P&gt;&lt;P&gt;    WRITE: / number, result.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;ENDCATCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 5.&lt;/P&gt;&lt;P&gt;  WRITE / 'Division by zero!'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps ,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program calculates the quotient of 1 and NUMBER ten times until the catchable runtime error BCD_ZERODIVIDE occurs. This runtime error belongs to the exception group ARITHMETIC_ERRORS, and is caught in the example using this class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 17:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catching-abap-exception/m-p/1634641#M283047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T17:20:22Z</dc:date>
    </item>
  </channel>
</rss>

