<?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 2 questions about submit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-questions-about-submit/m-p/6344738#M1397961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts, i have two questions about submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- How to know that a program was called by "Submit"? I find in SND that is not possible with SYST fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2-  I am calling a report with 'SUBMIT' statement (Submit and Return), the called program has some error message ( MESSAGE e....). When the error occurs in the called program, an error message is displayed in the screen without coming back to calling program. I want that the called program be executed and when the error occurs, I get back  to calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct answers will be greatly appreciated!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2009 14:53:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-29T14:53:13Z</dc:date>
    <item>
      <title>2 questions about submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-questions-about-submit/m-p/6344738#M1397961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts, i have two questions about submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- How to know that a program was called by "Submit"? I find in SND that is not possible with SYST fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2-  I am calling a report with 'SUBMIT' statement (Submit and Return), the called program has some error message ( MESSAGE e....). When the error occurs in the called program, an error message is displayed in the screen without coming back to calling program. I want that the called program be executed and when the error occurs, I get back  to calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct answers will be greatly appreciated!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 14:53:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-questions-about-submit/m-p/6344738#M1397961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-29T14:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: 2 questions about submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-questions-about-submit/m-p/6344739#M1397962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; 1- How to know that a program was called by "Submit"? I find in SND that is not possible with SYST fields.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;=== export a variable from calling program and import it in the called progra,, if you find the same value as exported.. you know that its been called from that program.&lt;/P&gt;&lt;P&gt;for more information.. press F1 on EXPORT or IMPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; 2-  I am calling a report with 'SUBMIT' statement (Submit and Return), the called program has some error message ( MESSAGE e....). When the error occurs in the called program, an error message is displayed in the screen without coming back to calling program. I want that the called program be executed and when the error occurs, I get back  to calling program. &lt;/P&gt;&lt;P&gt;&amp;gt; How can I do that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;yes you can... dont populate the message in the called program... (remove the error message) rather than that... use same export import method as i said above.. export a error flag variable from called program and import the error value in the calling program.. then do what ever you want..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 15:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-questions-about-submit/m-p/6344739#M1397962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-29T15:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: 2 questions about submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-questions-about-submit/m-p/6344740#M1397963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Before passing control to the called program, store the calling program's name in a memory id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And compare the memory id variable and the sy-repid, if there are different, then the program is called by a SUBMIT stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When sy-subrc is not zero, do not display the error message using MESSAGE, instead assign the error message to the standard variables sy-msgid, sy-msgno, sy-msgv1..sy-msgv4 and RETURN.&lt;/P&gt;&lt;P&gt;Hopefully, when you come back to the calling program, all these variables will still be available until it is overridden by any other message (success or failure).&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;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 15:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-questions-about-submit/m-p/6344740#M1397963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-29T15:17:49Z</dc:date>
    </item>
  </channel>
</rss>

