<?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 ... CATCH doesn't work with EXEC SQL? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654901#M1095255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it worked in our system. It may be an Oracle issue rather than ABAP. We are on Oracle 09.01.0003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Oct 2008 13:44:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-22T13:44:17Z</dc:date>
    <item>
      <title>TRY ... CATCH doesn't work with EXEC SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654894#M1095248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I created a native SQL statement, I knew before, that it would take a few tries to get it working. I decided to use exception classes to avoid short dumps, but it didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following code causes a short dump because of the dot after &lt;STRONG&gt;:xp_stras&lt;/STRONG&gt; in the native SQL SELECT statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   try.&lt;/P&gt;&lt;P&gt;       EXEC SQL                     PERFORMING  list.&lt;/P&gt;&lt;P&gt;         SELECT LIFNR, NAME1, STRAS&lt;/P&gt;&lt;P&gt;                                INTO  :xsl&lt;/P&gt;&lt;P&gt;                                FROM  LFA1&lt;/P&gt;&lt;P&gt;         WHERE  UPPER( NAME1 )  LIKE  :xp_name1&lt;/P&gt;&lt;P&gt;         AND    UPPER( STRAS )  LIKE  :xp_stras.&lt;/P&gt;&lt;P&gt;       ENDEXEC.&lt;/P&gt;&lt;P&gt;                                                                                catch CX_SY_NATIVE_SQL_ERROR.&lt;/P&gt;&lt;P&gt;       write: /1 'CX_SY_NATIVE_SQL_ERROR'.&lt;/P&gt;&lt;P&gt;   catch CX_SY_SQL_ERROR.&lt;/P&gt;&lt;P&gt;       write: /1 'CX_SY_SQL_ERROR'.&lt;/P&gt;&lt;P&gt;   catch CX_DYNAMIC_CHECK.&lt;/P&gt;&lt;P&gt;       write: /1 'CX_DYNAMIC_CHECK'.&lt;/P&gt;&lt;P&gt;   catch CX_ROOT.&lt;/P&gt;&lt;P&gt;       write: /1 'CX_SY_ROOT'.&lt;/P&gt;&lt;P&gt;   endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ST22 you can see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name of runtime error: DBIF_DSQL2_SQL_ERROR&lt;/P&gt;&lt;P&gt;Exception:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of the exception is empty, in other short dumps you can find there the name of the exception class. Maybe that's the reason for CATCH does'nt work, but I don't understand it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Online help for EXEC SQL says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Catchable Exceptions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;CX&lt;/U&gt;SY_NATIVE_SQL_ERROR_ &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;EM&gt;Cause:&lt;/EM&gt; SQL-Error at the execution of a Native SQL-command. &lt;/P&gt;&lt;P&gt;&lt;EM&gt;Runtime Error:&lt;/EM&gt; DBIF_DSQL2_SQL_ERROR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; We have SAP ECC 6.0 with SAP_BASIS rel. 700 lvl. 0013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If You have an idea why CATCH doesn't work, please tell me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 09:51:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654894#M1095248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T09:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: TRY ... CATCH doesn't work with EXEC SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654895#M1095249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can start by not putting extra spaces between NAME1 and the parentheses. Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WHERE UPPER(NAME1)  =  :NAME&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(and STRAS as well).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check that the declaration of XSL corresponds to what you are selecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Oct 20, 2008 2:11 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 18:10:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654895#M1095249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T18:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: TRY ... CATCH doesn't work with EXEC SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654896#M1095250</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;Catch should work with Native SQL....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change your SQL , to remove period at the end of statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL PERFORMING list.&lt;/P&gt;&lt;P&gt;SELECT LIFNR, NAME1, STRAS&lt;/P&gt;&lt;P&gt;INTO :xsl&lt;/P&gt;&lt;P&gt;FROM LFA1&lt;/P&gt;&lt;P&gt;WHERE UPPER( NAME1 ) LIKE :xp_name1&lt;/P&gt;&lt;P&gt;AND UPPER( STRAS ) LIKE :xp_stras&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to this thred:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5221150"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 18:53:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654896#M1095250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T18:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: TRY ... CATCH doesn't work with EXEC SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654897#M1095251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You for Your answer, Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my problem is not the native SQL statement. I know this error and have got a fine working code in a correct running program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is, that CATCH doesn't catch this error and a short dump occurs while developing a new native SQL statement. TRY ... CATCH ... are out of order, and I want to know the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Klaus Babl on Oct 21, 2008 6:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 04:16:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654897#M1095251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T04:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: TRY ... CATCH doesn't work with EXEC SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654898#M1095252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I followed Your link, but the thread didn't help me to find out, why CATCH doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried out CATCH ... INTO ..., but there was no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it's database dependent, why CATCH works or works not. We are using ORACLE 10.2.0.2.0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 04:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654898#M1095252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T04:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: TRY ... CATCH doesn't work with EXEC SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654899#M1095253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Odd...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran your code (in ECC 6.0 and 4.7) and it caught the exception. See what happens if you try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest LINE-SIZE 80 MESSAGE-ID 00.

TABLES: lfa1.

DATA: BEGIN OF xsl,
        lifnr TYPE lfa1-lifnr,
        name1 TYPE lfa1-name1,
        stras TYPE lfa1-stras,
      END   OF xsl.

DATA: xp_name1 TYPE lfa1-name1,
      xp_stras TYPE lfa1-stras.

TRY.
    EXEC SQL PERFORMING list.
      SELECT LIFNR, NAME1, STRAS
      INTO :xsl
      FROM LFA1
      WHERE UPPER( NAME1 ) LIKE :xp_name1
      AND UPPER( STRAS ) LIKE :xp_stras.
    ENDEXEC.

  CATCH cx_sy_native_sql_error.
    WRITE: /1 'CX_SY_NATIVE_SQL_ERROR'.
  CATCH cx_sy_sql_error.
    WRITE: /1 'CX_SY_SQL_ERROR'.
  CATCH cx_dynamic_check.
    WRITE: /1 'CX_DYNAMIC_CHECK'.
  CATCH cx_root.
    WRITE: /1 'CX_SY_ROOT'.
ENDTRY.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  LIST
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM list .

ENDFORM.                    " LIST&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Oct 21, 2008 9:16 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 13:14:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654899#M1095253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T13:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: TRY ... CATCH doesn't work with EXEC SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654900#M1095254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried out Your original code as program ZTEST5 and got a short dump (sorry, some of the short dump symbols are formatting this post in a wrong way ...):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short text&lt;/P&gt;&lt;P&gt;    An SQL error occurred when executing Native SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happened?&lt;/P&gt;&lt;P&gt;    The error 919 occurred in the current database connection "DEFAULT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can you do?&lt;/P&gt;&lt;P&gt;    Note down which actions and inputs caused the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    To process the problem further, contact you SAP system&lt;/P&gt;&lt;P&gt;    administrator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Using Transaction ST22 for ABAP Dump Analysis, you can look&lt;/P&gt;&lt;P&gt;    at and manage termination messages, and you can also&lt;/P&gt;&lt;P&gt;    keep them for a long time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to correct the error&lt;/P&gt;&lt;P&gt;    Database error text........: "ORA-00919: invalid function"&lt;/P&gt;&lt;P&gt;    Database error code........: 919&lt;/P&gt;&lt;P&gt;    Triggering SQL statement...: "FETCH NEXT "&lt;/P&gt;&lt;P&gt;    Internal call code.........: "[DBDS/NEW DSQL]"&lt;/P&gt;&lt;P&gt;    Please check the entries in the system log (Transaction SM21).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    If the error occures in a non-modified SAP program, you may be able to&lt;/P&gt;&lt;P&gt;    find an interim solution in an SAP Note.&lt;/P&gt;&lt;P&gt;    If you have access to SAP Notes, carry out a search with the following&lt;/P&gt;&lt;P&gt;    keywords:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    "DBIF_DSQL2_SQL_ERROR" " "&lt;/P&gt;&lt;P&gt;    "ZTEST5" or "ZTEST5"&lt;/P&gt;&lt;P&gt;    "START-OF-SELECTION"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    If you cannot solve the problem yourself and want to send an error&lt;/P&gt;&lt;P&gt;    notification to SAP, include the following information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    1. The description of the current problem (short dump)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       To save the description, choose "System-&amp;gt;List-&amp;gt;Save-&amp;gt;Local File&lt;/P&gt;&lt;P&gt;    (Unconverted)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    2. Corresponding system log&lt;/P&gt;&lt;P&gt;       Display the system log by calling transaction&lt;/P&gt;&lt;P&gt;       Restrict the time interval to 10 minutes befor&lt;/P&gt;&lt;P&gt;    after the short dump. Then choose "System-&amp;gt;List-&amp;gt;&lt;/P&gt;&lt;P&gt;    (Unconverted)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    3. If the problem occurs in a problem of your own&lt;/P&gt;&lt;P&gt;    program: The source code of the program&lt;/P&gt;&lt;P&gt;       In the editor, choose "Utilities-&amp;gt;More&lt;/P&gt;&lt;P&gt;    Utilities-&amp;gt;Upload/Download-&amp;gt;Download".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    4. Details about the conditions under which the e&lt;/P&gt;&lt;P&gt;    actions and input led to the error.&lt;/P&gt;&lt;P&gt;System environment&lt;/P&gt;&lt;P&gt;    SAP-Release 700&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Application server... "lux01617"&lt;/P&gt;&lt;P&gt;    Network address...... "195.217.80.104"&lt;/P&gt;&lt;P&gt;    Operating system..... "Linux"&lt;/P&gt;&lt;P&gt;    Release.............. "2.6.5-7.283-smp"&lt;/P&gt;&lt;P&gt;    Hardware type........ "x86_64"&lt;/P&gt;&lt;P&gt;    Character length.... 16 Bits&lt;/P&gt;&lt;P&gt;    Pointer length....... 64 Bits&lt;/P&gt;&lt;P&gt;    Work process number.. 5&lt;/P&gt;&lt;P&gt;    Shortdump setting.... "full"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Database server... "lux09208"&lt;/P&gt;&lt;P&gt;    Database type..... "ORACLE"&lt;/P&gt;&lt;P&gt;    Database name..... "D10"&lt;/P&gt;&lt;P&gt;    Database user ID.. "SAPDAT"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Char.set.... "C"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SAP kernel....... 700&lt;/P&gt;&lt;P&gt;    created (date)... "Dec 2 2007 20:18:08"&lt;/P&gt;&lt;P&gt;    create on........ "Linux GNU SLES-9 x86_64 cc3.3.3"&lt;/P&gt;&lt;P&gt;    Database version. "OCI_102 (10.2.0.2.0) "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Patch level. 138&lt;/P&gt;&lt;P&gt;    Patch text.. " "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Database............. "ORACLE 9.2.0.&lt;STRONG&gt;.&lt;/STRONG&gt;, ORACLE 10.1.0.&lt;STRONG&gt;.&lt;/STRONG&gt;, ORACLE 1&lt;/P&gt;&lt;P&gt;    SAP database version. 700&lt;/P&gt;&lt;P&gt;    Operating system..... "Linux 2.6"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Memory consumption&lt;/P&gt;&lt;P&gt;    Roll.... 16192&lt;/P&gt;&lt;P&gt;    EM...... 16759392&lt;/P&gt;&lt;P&gt;    Heap.... 0&lt;/P&gt;&lt;P&gt;    Page.... 98304&lt;/P&gt;&lt;P&gt;    MM Used. 694160&lt;/P&gt;&lt;P&gt;    MM Free. 3493088&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User and Transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Client.............. 500&lt;/P&gt;&lt;P&gt;    User................ "Z0000D2P"&lt;/P&gt;&lt;P&gt;    Language key........ "E"&lt;/P&gt;&lt;P&gt;    Transaction......... "SE38 "&lt;/P&gt;&lt;P&gt;    Transactions ID..... "48FE92EB921F51C3E1000000C3D95068"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Program............. "ZTEST5"&lt;/P&gt;&lt;P&gt;    Screen.............. "SAPMSSY0 1000"&lt;/P&gt;&lt;P&gt;    Screen line......... 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Information on where terminated&lt;/P&gt;&lt;P&gt;    Termination occurred in the ABAP program "ZTEST5" - in "START-OF-SELECTION".&lt;/P&gt;&lt;P&gt;    The main program was "ZTEST5 ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    In the source code you have the termination point in line 16&lt;/P&gt;&lt;P&gt;    of the (Include) program "ZTEST5".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source Code Extract&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line  SourceCde&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    1 REPORT ztest LINE-SIZE 80 MESSAGE-ID 00.&lt;/P&gt;&lt;P&gt;    2&lt;/P&gt;&lt;P&gt;    3 TABLES: lfa1.&lt;/P&gt;&lt;P&gt;    4&lt;/P&gt;&lt;P&gt;    5 DATA: BEGIN OF xsl,&lt;/P&gt;&lt;P&gt;    6         lifnr TYPE lfa1-lifnr,&lt;/P&gt;&lt;P&gt;    7         name1 TYPE lfa1-name1,&lt;/P&gt;&lt;P&gt;    8         stras TYPE lfa1-stras,&lt;/P&gt;&lt;P&gt;    9       END   OF xsl.&lt;/P&gt;&lt;P&gt;   10&lt;/P&gt;&lt;P&gt;   11 DATA: xp_name1 TYPE lfa1-name1,&lt;/P&gt;&lt;P&gt;   12       xp_stras TYPE lfa1-stras.&lt;/P&gt;&lt;P&gt;   13&lt;/P&gt;&lt;P&gt;   14 TRY.&lt;/P&gt;&lt;P&gt;   15     EXEC SQL PERFORMING list.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;       SELECT LIFNR, NAME1, STRAS&lt;/P&gt;&lt;P&gt;   17       INTO :xsl&lt;/P&gt;&lt;P&gt;   18       FROM LFA1&lt;/P&gt;&lt;P&gt;   19       WHERE UPPER( NAME1 ) LIKE :xp_name1&lt;/P&gt;&lt;P&gt;   20       AND UPPER( STRAS ) LIKE :xp_stras.&lt;/P&gt;&lt;P&gt;   21     ENDEXEC.&lt;/P&gt;&lt;P&gt;   22&lt;/P&gt;&lt;P&gt;   23   CATCH cx_sy_native_sql_error.&lt;/P&gt;&lt;P&gt;   24     WRITE: /1 'CX_SY_NATIVE_SQL_ERROR'.&lt;/P&gt;&lt;P&gt;   25   CATCH cx_sy_sql_error.&lt;/P&gt;&lt;P&gt;   26     WRITE: /1 'CX_SY_SQL_ERROR'.&lt;/P&gt;&lt;P&gt;   27   CATCH cx_dynamic_check.&lt;/P&gt;&lt;P&gt;   28     WRITE: /1 'CX_DYNAMIC_CHECK'.&lt;/P&gt;&lt;P&gt;   29   CATCH cx_root.&lt;/P&gt;&lt;P&gt;   30     WRITE: /1 'CX_SY_ROOT'.&lt;/P&gt;&lt;P&gt;   31 ENDTRY.&lt;/P&gt;&lt;P&gt;   32&lt;/P&gt;&lt;P&gt;   33 &lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   34 *&amp;amp;      Form  LIST&lt;/P&gt;&lt;P&gt;   35 &lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Klaus Babl on Oct 22, 2008 6:42 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2008 04:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654900#M1095254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-22T04:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: TRY ... CATCH doesn't work with EXEC SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654901#M1095255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it worked in our system. It may be an Oracle issue rather than ABAP. We are on Oracle 09.01.0003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2008 13:44:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654901#M1095255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-22T13:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: TRY ... CATCH doesn't work with EXEC SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654902#M1095256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help. Rob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm watching coming SAP notes and hope to find a solution there. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of starting my vacation I can't watch this thread any longer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Klaus Babl on Oct 23, 2008 6:38 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 04:37:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654902#M1095256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T04:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: TRY ... CATCH doesn't work with EXEC SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654903#M1095257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you find out what is wrong with this no-exception short dump issue? I'm having the same problem. My ABAP program is doing an SELECT FOR UPDATE NOWAIT, and when the Oracle based table is locked by another process, a short dump is generated with no exception, DBIF_DSQL2_SQL_ERROR&lt;/P&gt;&lt;P&gt; error and "ORA-00054: resource busy and acquire with NOWAIT specified" Oracle error. Just as you, the exception cant be caught with try/catch/endcatch because it seems to be missing. I'm using Oracle 10.2.0.4.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards and thanks on advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 17:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654903#M1095257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-09T17:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: TRY ... CATCH doesn't work with EXEC SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654904#M1095258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;problem is 'performing' is not allowed for TRY-ENDCATCH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 08:13:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654904#M1095258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-19T08:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: TRY ... CATCH doesn't work with EXEC SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654905#M1095259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Klaus;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I look your code but as if I didnt see "Connect", "Set Connection" as commands.&lt;/P&gt;&lt;P&gt;I know; If we will use Native SQL and connect to different DB, We should use "Set Connection" and "Connect" commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe below link help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABAPEXEC_CONNECTION.htm" target="test_blank"&gt;http://help.sap.com/abapdocu_70/en/ABAPEXEC_CONNECTION.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 08:58:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-doesn-t-work-with-exec-sql/m-p/4654905#M1095259</guid>
      <dc:creator>former_member212713</dc:creator>
      <dc:date>2011-07-19T08:58:40Z</dc:date>
    </item>
  </channel>
</rss>

