<?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 ABAP INSERT and SUBMIT REPORT --&amp;gt; Catch SYNTAX_ERROR in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755363#M1876148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote an ABAP to create dynamically another ABAP and SUBMIT it.&lt;/P&gt;&lt;P&gt;When the is an SYNTAX_ERROR I would like to catch this exception.&lt;/P&gt;&lt;P&gt;Does anybody know how to catch an SYNTAX_ERROR exception to avoid the short dump?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2014 06:51:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-11-27T06:51:27Z</dc:date>
    <item>
      <title>ABAP INSERT and SUBMIT REPORT --&gt; Catch SYNTAX_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755363#M1876148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote an ABAP to create dynamically another ABAP and SUBMIT it.&lt;/P&gt;&lt;P&gt;When the is an SYNTAX_ERROR I would like to catch this exception.&lt;/P&gt;&lt;P&gt;Does anybody know how to catch an SYNTAX_ERROR exception to avoid the short dump?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 06:51:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755363#M1876148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-27T06:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP INSERT and SUBMIT REPORT --&gt; Catch SYNTAX_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755364#M1876149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 07:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755364#M1876149</guid>
      <dc:creator>Nawazuddin</dc:creator>
      <dc:date>2014-11-27T07:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP INSERT and SUBMIT REPORT --&gt; Catch SYNTAX_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755365#M1876150</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;Keep the submit statement in try endtry block. The exception to catch is : CX_SY_SYNTAX_ERROR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH CX_SY_SYNTAX_ERROR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE 'syntax error' TYPE 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 07:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755365#M1876150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-27T07:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP INSERT and SUBMIT REPORT --&gt; Catch SYNTAX_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755366#M1876151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi &lt;SPAN class="j-status-levels"&gt;&lt;IMG alt="Bronze" class="jiveImage" src="https://community.sap.com/resources/sbs_static/1/z_bronze.png" title="Bronze" /&gt;&lt;/SPAN&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="14228" data-externalid="" data-presence="null" data-userid="576154" data-username="er.ashishrawat" href="https://answers.sap.com/people/er.ashishrawat"&gt;Ashish &lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your coding. But it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 07:16:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755366#M1876151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-27T07:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP INSERT and SUBMIT REPORT --&gt; Catch SYNTAX_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755367#M1876152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;I think there is no catchable exceptions for the SUBMIT statement so you are going to have to instead do something with sy-subrc instead. For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;REPORT ZPROGRAM1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;data: rc type sy-subrc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;SUBMIT ZPROGRAM2 and return.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;import rc from memory-id Z_PROG2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;if rc is not initial.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: -18pt;"&gt;&lt;SPAN style="font-family: Symbol; color: black;"&gt;&lt;SPAN class="pasted-list-info"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;error handling here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;else.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;* normal processing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;endif.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;now:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;REPORT ZPROGRAM2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;data: rc type sy-subrc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;do all your program stuff here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;catch errors and move value to rc, or, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;rc = sy-subrc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'MS Shell Dlg 2','sans-serif'; color: black;"&gt;EXPORT rc to memory id ‘Z_PROG2’.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 07:54:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755367#M1876152</guid>
      <dc:creator>former_member201275</dc:creator>
      <dc:date>2014-11-27T07:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP INSERT and SUBMIT REPORT --&gt; Catch SYNTAX_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755368#M1876153</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;Please replace the exception name CX_SY_SYNTAX_ERROR with the one you are getting in the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 08:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755368#M1876153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-27T08:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP INSERT and SUBMIT REPORT --&gt; Catch SYNTAX_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755369#M1876154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Exception is:&amp;nbsp; SYNTAX_ERROR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this. Bit this does also not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 09:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755369#M1876154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-27T09:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP INSERT and SUBMIT REPORT --&gt; Catch SYNTAX_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755370#M1876155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will not work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'MS Shell Dlg 2','sans-serif';"&gt;SUBMIT ZPROGRAM2 and return.&amp;nbsp; --&amp;gt; Throws an error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'MS Shell Dlg 2','sans-serif';"&gt;Than the line&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'MS Shell Dlg 2','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import rc from memory-id Z_PROG2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'MS Shell Dlg 2','sans-serif';"&gt;will not be processed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'MS Shell Dlg 2','sans-serif';"&gt;Thx, Mario&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 09:07:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755370#M1876155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-27T09:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP INSERT and SUBMIT REPORT --&gt; Catch SYNTAX_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755371#M1876156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is the exception name, there will also be an exception class mentioned...CX_ or CY_ something....use that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 09:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755371#M1876156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-27T09:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP INSERT and SUBMIT REPORT --&gt; Catch SYNTAX_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755372#M1876157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you "catch" the error correctly in Program 2 then it will.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 09:37:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/10755372#M1876157</guid>
      <dc:creator>former_member201275</dc:creator>
      <dc:date>2014-11-27T09:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP INSERT and SUBMIT REPORT --&gt; Catch SYNTAX_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/13993022#M2038331</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;try to use '&lt;!--  StartFragment   --&gt;&lt;SPAN&gt;cl_abap_typedescr&lt;SPAN class=""&gt;=&amp;gt;&lt;/SPAN&gt;describe_by_name&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;)'&lt;BR /&gt;and '&lt;!--  StartFragment   --&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;CATCH&amp;nbsp;&lt;/SPAN&gt;cx_sy_rtti_syntax_error'&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 10:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-insert-and-submit-report-gt-catch-syntax-error/m-p/13993022#M2038331</guid>
      <dc:creator>C5269009</dc:creator>
      <dc:date>2025-01-22T10:48:40Z</dc:date>
    </item>
  </channel>
</rss>

