<?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: Try and catch question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687510#M1101898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Krutiman  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from what u tell i have to catch all the scenarios,&lt;/P&gt;&lt;P&gt;assume i do a catch on casting and i do in the try block  divide operation i have to write onother catch for divide  by i.e.  to write 2 catch commend after the try ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2008 11:36:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-30T11:36:31Z</dc:date>
    <item>
      <title>Try and catch question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687505#M1101893</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;i want to now what is the benefit of try and catch?&lt;/P&gt;&lt;P&gt;what i think until now is if between the stetment try and catch i get  dump , &lt;U&gt;the program won't crash&lt;/U&gt; ,&lt;/P&gt;&lt;P&gt;but i try it and i have dump between the try and catch  sentence .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 11:17:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687505#M1101893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T11:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Try and catch question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687506#M1101894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;dump would occur if you dont catch all the exceptions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;KD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 11:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687506#M1101894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T11:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Try and catch question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687507#M1101895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;The concept of Try and Catch is when ever any exception comesup and you want to handle by your program then you need to use the Try and Catch Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chidanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 11:23:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687507#M1101895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T11:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Try and catch question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687508#M1101896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the following code&lt;/P&gt;&lt;P&gt;It catched devide by zero error.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: w_var TYPE i,
      text   TYPE string,
      oref   TYPE REF TO cx_root.

TRY.
    w_var = 10 / 0.
  CATCH cx_sy_arithmetic_error INTO oref.
    text = oref-&amp;gt;get_text( ).
  CATCH cx_root INTO oref.
    text = oref-&amp;gt;get_text( ).
ENDTRY.

WRITE / text.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 11:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687508#M1101896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T11:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Try and catch question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687509#M1101897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY and END TRY is used with the CATCH statement. These statements used to handle the Exceptions at the Runtime so the program will not go into the Dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What ever code we wrirter inside the Try ENDTRY block is handled for Exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this link for detail explanation : &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/a9/b8eef8fe9411d4b2ee0050dadfb92b/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/a9/b8eef8fe9411d4b2ee0050dadfb92b/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 11:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687509#M1101897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T11:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Try and catch question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687510#M1101898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Krutiman  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from what u tell i have to catch all the scenarios,&lt;/P&gt;&lt;P&gt;assume i do a catch on casting and i do in the try block  divide operation i have to write onother catch for divide  by i.e.  to write 2 catch commend after the try ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 11:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687510#M1101898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T11:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Try and catch question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687511#M1101899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Ricardo.&lt;/P&gt;&lt;P&gt;You need to create a separte catch for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chidnanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 11:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687511#M1101899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T11:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Try and catch question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687512#M1101900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Class CX_ROOT is the superclass for global exceptions.  If you catch this, you should catch most exceptions; however the error messages you get may not be as helpful as those you would get from one of the more specific class based exceptions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 11:51:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch-question/m-p/4687512#M1101900</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2008-10-30T11:51:11Z</dc:date>
    </item>
  </channel>
</rss>

