<?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: Exception handling in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/6149358#M1368235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In F1 help of the ABAP code you can find the possible exceptions of the class. If it is a global class go to events tab to find the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are designing a new class then you have to define a exception method and the corresponding event in the events tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if you need any more help, For better understanding refer to BC401 doc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2009 07:09:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-14T07:09:01Z</dc:date>
    <item>
      <title>Exception handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/6149357#M1368234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i call to method in FM and i want avoid dump when i have exception.&lt;/P&gt;&lt;P&gt; how i can do so since when i use try and catch and i run the fm with wrong data nothing happen .&lt;/P&gt;&lt;P&gt;and when i run the FM without try and catch i get dump when i put wrong data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.s.  i put  cx_ur_map in the function module raise tab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; TRY.&lt;/P&gt;&lt;P&gt;      CREATE OBJECT lo_us.&lt;/P&gt;&lt;P&gt;      CALL METHOD lo_uS-&amp;gt;getles&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          iv_ex     = iv_ex&lt;/P&gt;&lt;P&gt;        RECEIVING&lt;/P&gt;&lt;P&gt;          rt_r = rt_uR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CATCH  cx_ur_map .&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 06:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/6149357#M1368234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T06:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Exception handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/6149358#M1368235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In F1 help of the ABAP code you can find the possible exceptions of the class. If it is a global class go to events tab to find the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are designing a new class then you have to define a exception method and the corresponding event in the events tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if you need any more help, For better understanding refer to BC401 doc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 07:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/6149358#M1368235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T07:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exception handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/6149359#M1368236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to write some code after the CATCH statement to actually handle the exception, otherwise nothing will happen in case of that exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lx_error type ref to cx_ur_map,&lt;/P&gt;&lt;P&gt;        l_message type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;CREATE OBJECT lo_us.&lt;/P&gt;&lt;P&gt;CALL METHOD lo_uS-&amp;gt;getles&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;iv_ex = iv_ex&lt;/P&gt;&lt;P&gt;RECEIVING&lt;/P&gt;&lt;P&gt;rt_r = rt_uR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH cx_ur_map into lx_error .&lt;/P&gt;&lt;P&gt;  l_message = lx_error-&amp;gt;get_text( ).&lt;/P&gt;&lt;P&gt;  message l_message type 'E'.&lt;/P&gt;&lt;P&gt;  " more code to handle the error&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 11:15:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/6149359#M1368236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T11:15:07Z</dc:date>
    </item>
  </channel>
</rss>

