<?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 Exception Handling in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2466048#M553794</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 need to handle exceptions regarding database operations such as modify, insert update, datatype mismatch etc.&lt;/P&gt;&lt;P&gt;Does a standard exception class exist for it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there is no such class, how do i define one of my own?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Points will be rewarded for correct solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2007 05:40:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-02T05:40:30Z</dc:date>
    <item>
      <title>Exception Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2466048#M553794</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 need to handle exceptions regarding database operations such as modify, insert update, datatype mismatch etc.&lt;/P&gt;&lt;P&gt;Does a standard exception class exist for it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there is no such class, how do i define one of my own?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Points will be rewarded for correct solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 05:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2466048#M553794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T05:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2466049#M553795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the SY-SUBRC for each statement used for Modify or insert or update or.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;modify &amp;lt;datatable&amp;gt; from table itab.
If Sy-subrc = 0.
write ' Modify Done'.
else.
write ' Modify failed'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 05:42:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2466049#M553795</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-07-02T05:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2466050#M553796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best and easiest way in ABAP to handle the exception is checking the value of sy-subrc after each DB operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 05:47:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2466050#M553796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T05:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2466051#M553797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try exception class CX_SY_OPEN_SQL_DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it does not fit your needs or you need additional functionality create your own class ZCX_SY_OPEN_SQL_DB in SE24 and tick Exception class (I recommend to set the 'with message class'-flag). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need additional functionality to CX_SY_OPEN_SQL_DB you make your class inherit from this class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Axel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 15:03:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2466051#M553797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T15:03:12Z</dc:date>
    </item>
  </channel>
</rss>

