<?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: A question About SUBMIT statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-submit-statement/m-p/4621097#M1088544</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;you can catch this kind of error or exeption from the respective report &lt;/P&gt;&lt;P&gt;then pass this error or exeception to the calling report &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through the  example I  am giving , ti have done it like this only   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT zgurep03 AND RETURN WITH SELECTION-TABLE li_seltab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in the called reprot&lt;/P&gt;&lt;P&gt;*Check ledger&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM t881 WHERE rldnr = p_rldnr.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    SET CURSOR FIELD 'P_RLDNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     MESSAGE e448 WITH p_rldnr&lt;/P&gt;&lt;P&gt;      MESSAGE e446 INTO lv_text .&lt;/P&gt;&lt;P&gt;      lv_type = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Capturing the error messages.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXPORT lv_text TO MEMORY ID 'TX'(004).&lt;/P&gt;&lt;P&gt;EXPORT lv_type TO MEMORY ID 'TP'(005).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in calling report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IMPORT gv_type1 TO gv_type FROM MEMORY  ID 'TP'.&lt;/P&gt;&lt;P&gt;  IMPORT gv_text1 TO gv_text FROM MEMORY ID 'TX'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;preparing error message in the callge report for the calling report&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM prepare_message&lt;/P&gt;&lt;P&gt;        USING sy-msgid&lt;/P&gt;&lt;P&gt;              lv_msgno&lt;/P&gt;&lt;P&gt;              lv_msgv1&lt;/P&gt;&lt;P&gt;              lv_msgv2&lt;/P&gt;&lt;P&gt;              lv_msgv3&lt;/P&gt;&lt;P&gt;              lv_msgv4&lt;/P&gt;&lt;P&gt;        CHANGING gv_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;preparing  error message &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM prepare_message  USING    p_sy_msgid&lt;/P&gt;&lt;P&gt;                               p_sy_msgno&lt;/P&gt;&lt;P&gt;                               p_sy_msgv1&lt;/P&gt;&lt;P&gt;                               p_sy_msgv2&lt;/P&gt;&lt;P&gt;                               p_sy_msgv3&lt;/P&gt;&lt;P&gt;                               p_sy_msgv4&lt;/P&gt;&lt;P&gt;                      CHANGING p_gv_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      id        = p_sy_msgid&lt;/P&gt;&lt;P&gt;      lang      = 'EN'&lt;/P&gt;&lt;P&gt;      no        = p_sy_msgno&lt;/P&gt;&lt;P&gt;      v1        = p_sy_msgv1&lt;/P&gt;&lt;P&gt;      v2        = p_sy_msgv2&lt;/P&gt;&lt;P&gt;      v3        = p_sy_msgv3&lt;/P&gt;&lt;P&gt;      v4        = p_sy_msgv4&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      msg       = gv_text&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found = 1&lt;/P&gt;&lt;P&gt;      OTHERS    = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Oct 2008 08:19:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-21T08:19:38Z</dc:date>
    <item>
      <title>A question About SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-submit-statement/m-p/4621094#M1088541</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;By SUBMIT statement, i can trigger another report. If the called report runs into dump, how can i detech/catch the dump in the calling report? I tested. It seems impossible to catch the dump. The calling report will also dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, if the called report runs into dump, how to detect the dump and avoid dump in calling report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, Johnney.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 08:08:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-submit-statement/m-p/4621094#M1088541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T08:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: A question About SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-submit-statement/m-p/4621095#M1088542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello friend,&lt;/P&gt;&lt;P&gt;check the submit program is present in ut system r not ....&lt;/P&gt;&lt;P&gt;and by using ST22 tcode for dump Analysis ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank u,&lt;/P&gt;&lt;P&gt;santhosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 08:13:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-submit-statement/m-p/4621095#M1088542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T08:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: A question About SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-submit-statement/m-p/4621096#M1088543</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;Good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think it is possible to detach/catch the the error of the SUBMIT report when you are running the main report in the foreground. You can catch the error of the SUBMIT program if you run the main program in background, and debug the main program in background using the tcode sm50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 08:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-submit-statement/m-p/4621096#M1088543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T08:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: A question About SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-submit-statement/m-p/4621097#M1088544</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;you can catch this kind of error or exeption from the respective report &lt;/P&gt;&lt;P&gt;then pass this error or exeception to the calling report &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through the  example I  am giving , ti have done it like this only   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT zgurep03 AND RETURN WITH SELECTION-TABLE li_seltab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in the called reprot&lt;/P&gt;&lt;P&gt;*Check ledger&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM t881 WHERE rldnr = p_rldnr.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    SET CURSOR FIELD 'P_RLDNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     MESSAGE e448 WITH p_rldnr&lt;/P&gt;&lt;P&gt;      MESSAGE e446 INTO lv_text .&lt;/P&gt;&lt;P&gt;      lv_type = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Capturing the error messages.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXPORT lv_text TO MEMORY ID 'TX'(004).&lt;/P&gt;&lt;P&gt;EXPORT lv_type TO MEMORY ID 'TP'(005).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in calling report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IMPORT gv_type1 TO gv_type FROM MEMORY  ID 'TP'.&lt;/P&gt;&lt;P&gt;  IMPORT gv_text1 TO gv_text FROM MEMORY ID 'TX'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;preparing error message in the callge report for the calling report&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM prepare_message&lt;/P&gt;&lt;P&gt;        USING sy-msgid&lt;/P&gt;&lt;P&gt;              lv_msgno&lt;/P&gt;&lt;P&gt;              lv_msgv1&lt;/P&gt;&lt;P&gt;              lv_msgv2&lt;/P&gt;&lt;P&gt;              lv_msgv3&lt;/P&gt;&lt;P&gt;              lv_msgv4&lt;/P&gt;&lt;P&gt;        CHANGING gv_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;preparing  error message &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM prepare_message  USING    p_sy_msgid&lt;/P&gt;&lt;P&gt;                               p_sy_msgno&lt;/P&gt;&lt;P&gt;                               p_sy_msgv1&lt;/P&gt;&lt;P&gt;                               p_sy_msgv2&lt;/P&gt;&lt;P&gt;                               p_sy_msgv3&lt;/P&gt;&lt;P&gt;                               p_sy_msgv4&lt;/P&gt;&lt;P&gt;                      CHANGING p_gv_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      id        = p_sy_msgid&lt;/P&gt;&lt;P&gt;      lang      = 'EN'&lt;/P&gt;&lt;P&gt;      no        = p_sy_msgno&lt;/P&gt;&lt;P&gt;      v1        = p_sy_msgv1&lt;/P&gt;&lt;P&gt;      v2        = p_sy_msgv2&lt;/P&gt;&lt;P&gt;      v3        = p_sy_msgv3&lt;/P&gt;&lt;P&gt;      v4        = p_sy_msgv4&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      msg       = gv_text&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found = 1&lt;/P&gt;&lt;P&gt;      OTHERS    = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 08:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-submit-statement/m-p/4621097#M1088544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T08:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: A question About SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-submit-statement/m-p/4621098#M1088545</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>Tue, 21 Oct 2008 08:31:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-submit-statement/m-p/4621098#M1088545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T08:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: A question About SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-submit-statement/m-p/4621099#M1088546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;This is only untested suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TRY.
    submit....
    catch exeption .....
ENDTRY.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statements TRY...ENDTRY is used to handle the Exceptions at the Runtime so the program will not go into the Dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J.S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: John Smith on Oct 21, 2008 12:26 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: John Smith on Oct 21, 2008 12:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 08:49:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-submit-statement/m-p/4621099#M1088546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T08:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: A question About SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-submit-statement/m-p/4621100#M1088547</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;i have same problem. how did you solve this problem? Can you help me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Feb 2010 15:47:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-submit-statement/m-p/4621100#M1088547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-27T15:47:54Z</dc:date>
    </item>
  </channel>
</rss>

