<?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: Regarding SUBMIT Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776111#M334779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUBMIT REPORT2 VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;WITH SELECTION-TABLE RSPARM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2006 11:30:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-04T11:30:33Z</dc:date>
    <item>
      <title>Regarding SUBMIT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776110#M334778</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 have issue with SUBMIT Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am submitting &amp;lt;b&amp;gt;Report2&amp;lt;/b&amp;gt; from &amp;lt;b&amp;gt;Report1&amp;lt;/b&amp;gt;  but it is stopping at the selection screen of &amp;lt;b&amp;gt;REPORT2&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Statement is written as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  SUBMIT REPORT2 VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;         WITH SELECTION-TABLE RSPARM.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my requirement i will &amp;lt;b&amp;gt;REPORT2's&amp;lt;/b&amp;gt; selection screen from &amp;lt;b&amp;gt;RSPARM&amp;lt;/b&amp;gt; in &amp;lt;b&amp;gt;Report1&amp;lt;/b&amp;gt; and after submitting &amp;lt;b&amp;gt;Report2&amp;lt;/b&amp;gt; it should process &amp;lt;b&amp;gt;Report2&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me why it is stopping at &amp;lt;b&amp;gt;Selection-Screen&amp;lt;/b&amp;gt; of &amp;lt;b&amp;gt;Report2&amp;lt;/b&amp;gt; and what can be the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i have one more issue in &amp;lt;b&amp;gt;Report2&amp;lt;/b&amp;gt; that is &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;'i need to check if this is a batch run(sy-batch)'&amp;lt;/b&amp;gt; if it is true i need to send email to some users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i write the same condition. Can anybody give how to go about it!&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;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Deep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 11:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776110#M334778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T11:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SUBMIT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776111#M334779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUBMIT REPORT2 VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;WITH SELECTION-TABLE RSPARM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 11:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776111#M334779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T11:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SUBMIT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776112#M334780</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;take away the addition via selection-screen and that will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this additon instead ... WITH sel1 value1 WITH sel2 value2 ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 11:30:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776112#M334780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T11:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SUBMIT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776113#M334781</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;Add the bold one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT REPORT2 VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;WITH SELECTION-TABLE RSPARM &amp;lt;b&amp;gt;AND RETURN&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to know the Report2 is a batch program, then make use a Function module BP_JOB_SELECT_SM37B to get the Job name, and read the table with your job name then you com eto know the result &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 11:33:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776113#M334781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T11:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SUBMIT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776114#M334782</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;If we give AND RETURN option to existing SUBMIT it will come back to calling program na! &lt;/P&gt;&lt;P&gt;In our example if we submit REPORT2 from REPORT1 it will come back to REPORT1 na!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want that to happen, My code just need to submit REPORT2 from REPORT1 and execute REPORT2 without coming back to REPORT1.&lt;/P&gt;&lt;P&gt;I should show output of REPOR2 only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For second query what we exactly need to pass to know if it is a batch run[SY-BATCH]!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for those replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 11:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776114#M334782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T11:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SUBMIT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776115#M334783</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;Any sujjestions!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 12:28:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776115#M334783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T12:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SUBMIT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776116#M334784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;If u dont want to return to the REPORT1 back then no need of AND RETURN statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 12:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776116#M334784</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2006-12-04T12:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SUBMIT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776117#M334785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Just a try. As far as your query goes it seems that you run report2 always from report1. So if the user runs the report: REPORT1 in back ground we know that sy-batch will be set to 'X', in this case must set a Flag some thing like GV_FLAG to 'X'.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; And SAY: EXPORT gv_flag TO MEMORY ID ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and in REPORT2, in the initialization event say &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IMPORT gv_flag FROM MEMORY ID ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and check if this flag is set and send a mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please let me know if this solved your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goutham.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 12:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit-statement/m-p/1776117#M334785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T12:52:38Z</dc:date>
    </item>
  </channel>
</rss>

