<?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: how to catch exception i defined in the function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987510#M705491</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;In the calling program just check the sy-subrc value after the FM and based on that handle the exception. If you had only one exception then check for sy-subrc =1.&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>Wed, 31 Oct 2007 08:51:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-31T08:51:56Z</dc:date>
    <item>
      <title>how to catch exception i defined in the function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987505#M705486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I defined the exception 'no_value_found' in the function module, now, the problem is how to catach it in the program calling it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 08:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987505#M705486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T08:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch exception i defined in the function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987506#M705487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if standard FM then just include exceptions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 08:43:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987506#M705487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T08:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch exception i defined in the function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987507#M705488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it is not standard FM, i created it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 08:46:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987507#M705488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T08:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch exception i defined in the function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987508#M705489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yong li,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can catch the Exceptions by using Exception Handling in your FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shilpi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 08:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987508#M705489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T08:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch exception i defined in the function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987509#M705490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shilpi, could you give me one example, thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 08:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987509#M705490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T08:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch exception i defined in the function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987510#M705491</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;In the calling program just check the sy-subrc value after the FM and based on that handle the exception. If you had only one exception then check for sy-subrc =1.&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>Wed, 31 Oct 2007 08:51:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987510#M705491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T08:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch exception i defined in the function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987511#M705492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Atish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I have used sy-subrc to handle it in the program, howerver, it is still encounter runtime error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;&lt;P&gt; Error message -&lt;/P&gt;&lt;HR originaltext="---------------------------------" /&gt;&lt;P&gt;A RAISE statement in the program "SAPLZERC" raised the exception&lt;/P&gt;&lt;P&gt;condition "NO_OBJECT_INFO_FOUND".&lt;/P&gt;&lt;P&gt;Since the exception was not intercepted by a superior&lt;/P&gt;&lt;P&gt;program, processing was terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short description of exception condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No object information found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For detailed documentation of the exception condition, use&lt;/P&gt;&lt;P&gt;Transaction SE37 (Function Library). You can take the called&lt;/P&gt;&lt;P&gt;function module from the display of active calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;Errors is at following position:----&lt;/P&gt;&lt;HR originaltext="---------------------------" /&gt;&lt;P&gt;39   ELSE.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;     RAISE NO_OBJECT_INFO_FOUND.&lt;/P&gt;&lt;P&gt;41   ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 09:04:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987511#M705492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T09:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch exception i defined in the function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987512#M705493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you defined NO_OBJECT_INFO_FOUND this exception in FM.&lt;/P&gt;&lt;P&gt;If not, define it. Also paste your program and FM code.&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>Wed, 31 Oct 2007 09:09:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987512#M705493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T09:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch exception i defined in the function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987513#M705494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i defined it, but still have error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 09:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987513#M705494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T09:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch exception i defined in the function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987514#M705495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; make used of sy-subrc values &amp;amp; than set raise the exception you want to catch in your program. say for example if your select query return is false than&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select * into ...&lt;/P&gt;&lt;P&gt; if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;   raise no_value_found.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 09:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987514#M705495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T09:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch exception i defined in the function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987515#M705496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys. The problem is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 01:29:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-exception-i-defined-in-the-function-module/m-p/2987515#M705496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T01:29:18Z</dc:date>
    </item>
  </channel>
</rss>

