<?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: catch uncatchable exception in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-uncatchable-exception/m-p/3356929#M805440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know exactly what you're talking about - ran into this a couple of times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT should resolve the issue. But if you insist on checking for duplicates and howing an error message, then you'd have to do SELECT into a regular or a sorted table, then copy the content into another table. Do DELETE ADJACENT DUPLICATES and compare the number of records. Or something along those lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uncatchable exceptions are, as the name suggests, uncatchable - sorry!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2008 21:41:37 GMT</pubDate>
    <dc:creator>Jelena_Perfiljeva</dc:creator>
    <dc:date>2008-02-01T21:41:37Z</dc:date>
    <item>
      <title>catch uncatchable exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-uncatchable-exception/m-p/3356928#M805439</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 am afraid I know the answer, but maybe you have a solution to my problem. I have a SELECT into a hashed table, that should return only one result per key (key-field of the hashed table). But in some rare cases the data in DB is not ok, then I get more than one result with the same key of the hashed table, which of course leads to an exception and therefore a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to catch this exception as I want to show a nice error message to the user instead of this ugly short dump screen. But when I look into the ABAP help I see that the exception "ITAB_DUPLICATE_KEY" (see help text for INSERT at internal tables chapter) is an uncatchable exception, so there is no exception class for a try-block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to my question: How can I catch or process this uncatchable exception, or any other uncatchable exception? I need to create an error popup in my application, as most of the users have no idea what this means -- and because it's a better way to handle errors in any case &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any ideas or hints.&lt;/P&gt;&lt;P&gt;Kind regards, Matthias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 10:42:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-uncatchable-exception/m-p/3356928#M805439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T10:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: catch uncatchable exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-uncatchable-exception/m-p/3356929#M805440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know exactly what you're talking about - ran into this a couple of times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT should resolve the issue. But if you insist on checking for duplicates and howing an error message, then you'd have to do SELECT into a regular or a sorted table, then copy the content into another table. Do DELETE ADJACENT DUPLICATES and compare the number of records. Or something along those lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uncatchable exceptions are, as the name suggests, uncatchable - sorry!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 21:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-uncatchable-exception/m-p/3356929#M805440</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2008-02-01T21:41:37Z</dc:date>
    </item>
  </channel>
</rss>

