<?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 Condition Exceptions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-exceptions/m-p/6419906#M1409137</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;Im using the following API:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_WS_HELPER=&amp;gt;get_proxy_abapkey_by_esrkey(&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    esr_key   = l_t_esr_key&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    abap_key  = l_t_abap_key&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   not_found = 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This API throws NOT_FOUND Exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;1. I'm not able to find this exception type anywhere in the workbench. In the error it says Exception Condition NOT_FOUND is thrown.&lt;/P&gt;&lt;P&gt;2. How to catch these kind of exceptions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Dec 2009 14:22:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-03T14:22:36Z</dc:date>
    <item>
      <title>Condition Exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-exceptions/m-p/6419906#M1409137</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;Im using the following API:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_WS_HELPER=&amp;gt;get_proxy_abapkey_by_esrkey(&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    esr_key   = l_t_esr_key&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    abap_key  = l_t_abap_key&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   not_found = 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This API throws NOT_FOUND Exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;1. I'm not able to find this exception type anywhere in the workbench. In the error it says Exception Condition NOT_FOUND is thrown.&lt;/P&gt;&lt;P&gt;2. How to catch these kind of exceptions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 14:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-exceptions/m-p/6419906#M1409137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T14:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Condition Exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-exceptions/m-p/6419907#M1409138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You donot have to create / handle these EXCEPTIONS. Just uncomment these lines &amp;amp; check SY-SUBRC after the method call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CL_WS_HELPER=&amp;gt;get_proxy_abapkey_by_esrkey(
EXPORTING
esr_key = l_t_esr_key
IMPORTING
abap_key = l_t_abap_key
EXCEPTIONS   "Uncomment these lines
not_found = 1 "Uncomment these lines
).
CASE sy-subrc.
WHEN 0.

WHEN 1.
" Error Handling

WHEN OTHERS.
ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 14:25:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-exceptions/m-p/6419907#M1409138</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-12-03T14:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Condition Exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-exceptions/m-p/6419908#M1409139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bajaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uncomment &lt;STRONG&gt;Exceptions&lt;/STRONG&gt;  and &lt;STRONG&gt;not_found = 1&lt;/STRONG&gt; lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_WS_HELPER=&amp;gt;get_proxy_abapkey_by_esrkey(&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;esr_key = l_t_esr_key&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;abap_key = l_t_abap_key&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt; not_found = 1&lt;/P&gt;&lt;P&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to know why this exception occured , just keep a breakpoint in &lt;STRONG&gt;get_proxy_abapkey_by_esrkey&lt;/STRONG&gt; method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 15:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-exceptions/m-p/6419908#M1409139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T15:12:50Z</dc:date>
    </item>
  </channel>
</rss>

