<?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: Question about Exception Propagation to highest processing block in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399295#M1925007</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;of cause there is no exception. But that's due to your code.&lt;/P&gt;&lt;P&gt;In line 96 you pass parameter IV_NUM1 to the method.&lt;/P&gt;&lt;P&gt;Inside your method (line 81) you check if IV_NUM1 is initial. This is not the case. Therefore, no exception is raised.&lt;/P&gt;&lt;P&gt;Afterwards in line 86 you execute an DIV with the value V_NUM1 = 1 and V_NUM2 = 0. This of cause now raises an exception due to the division by 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Dec 2015 08:26:47 GMT</pubDate>
    <dc:creator>ceedee666</dc:creator>
    <dc:date>2015-12-23T08:26:47Z</dc:date>
    <item>
      <title>Question about Exception Propagation to highest processing block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399289#M1925001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As BC401, when the supe class of an exception class is CX_NO_CHECK, then the exception raised will be propagated out automatically until the highest processing block. If there is no correct CATCH object, then a DUMP happens.&lt;/P&gt;&lt;P&gt;But in my testing, I raised a CX_NO_CHECK exception in my normal class method without defining it in the Exception tab of this method, a DUMP occurs immediately. So I have no idea about what is the 'highest processing block' menthioned abive?&lt;/P&gt;&lt;P&gt;In the document, 'highest processing blkck' is defined as 'processing block with out local data areas - that is event block and dialg modules'. How to understand this correctly? Any examples?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also document mentions that a exception inherited from CX_STATIC_CHECK will show a warning message if it is not catched or defnied in the Exception list of the method. But I did not get thsi warning message actually. Is this changed in the later version of ABAP stack?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 07:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399289#M1925001</guid>
      <dc:creator>cain_sun</dc:creator>
      <dc:date>2015-12-22T07:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Exception Propagation to highest processing block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399290#M1925002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are numerous post and discussions here on SCN about this topic.&lt;/P&gt;&lt;P&gt;For example check the following wiki entry:&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/ABAP/Exception+Handling+in+ABAP+object+with+the+help+of+Exception+Class" title="http://wiki.scn.sap.com/wiki/display/ABAP/Exception+Handling+in+ABAP+object+with+the+help+of+Exception+Class"&gt;Exception Handling in ABAP object with the help of Exception Class - ABAP Development - SCN Wiki&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Christian &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 07:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399290#M1925002</guid>
      <dc:creator>ceedee666</dc:creator>
      <dc:date>2015-12-22T07:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Exception Propagation to highest processing block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399291#M1925003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This post is very useful. Actually, I found the rulesfor CX_STATIC/DYNAMIC/NO_CHECK, doesnot work in my system with ABAP 740 SP0010. When I comment the definition for exceptions(RASING XXXX) of method, no dump occurs. I am curious that this rule still work or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 10:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399291#M1925003</guid>
      <dc:creator>cain_sun</dc:creator>
      <dc:date>2015-12-22T10:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Exception Propagation to highest processing block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399292#M1925004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK the "core" behaviour of OO exceptions has not changed.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;When I comment the definition for exceptions(RASING XXXX) of method, no dump occurs.&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It is always better to provide code snippet. Unfortunately most of the SDNers don't have a crystal ball.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 10:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399292#M1925004</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2015-12-22T10:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Exception Propagation to highest processing block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399293#M1925005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply. The following screenshot is in the debug mode. Even the RAISING EXCEPTION is commented as described in the link, there is no exception occurs. Of course, this exception is from cx_static_check.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/856979" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 02:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399293#M1925005</guid>
      <dc:creator>cain_sun</dc:creator>
      <dc:date>2015-12-23T02:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Exception Propagation to highest processing block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399294#M1925006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can see from the screenshot that your cursor is in the CATCH block =&amp;gt; the exception was raised (as expected) and you are handling it.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Even the RAISING EXCEPTION is commented as described in the link, there is no exception occurs.&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What do you mean no exception occurs? In the debugger you can always check the exact location in the code where the exception has been raised.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 08:25:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399294#M1925006</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2015-12-23T08:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Exception Propagation to highest processing block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399295#M1925007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;of cause there is no exception. But that's due to your code.&lt;/P&gt;&lt;P&gt;In line 96 you pass parameter IV_NUM1 to the method.&lt;/P&gt;&lt;P&gt;Inside your method (line 81) you check if IV_NUM1 is initial. This is not the case. Therefore, no exception is raised.&lt;/P&gt;&lt;P&gt;Afterwards in line 86 you execute an DIV with the value V_NUM1 = 1 and V_NUM2 = 0. This of cause now raises an exception due to the division by 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 08:26:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399295#M1925007</guid>
      <dc:creator>ceedee666</dc:creator>
      <dc:date>2015-12-23T08:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Exception Propagation to highest processing block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399296#M1925008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks both, I am sorry I made a mistake here for 2 different exceptions. Everything works fine. Thanks a again. I will close this post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 06:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-exception-propagation-to-highest-processing-block/m-p/11399296#M1925008</guid>
      <dc:creator>cain_sun</dc:creator>
      <dc:date>2015-12-24T06:13:20Z</dc:date>
    </item>
  </channel>
</rss>

