<?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>Question Re: SUBMIT and RETURN not working when run in background in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaa-p/609767#M146243</link>
    <description>&lt;P&gt;Hi Roberto, &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;thanks for your reply. Apparently, I do not want to run the 2nd program in the foreground but in background. Using the above it is taking me to Selection screen of 2nd program where i could see a button to schedule in background. &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Once gain thanks for the reply.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Aditya&lt;/P&gt;</description>
    <pubDate>Sun, 15 Apr 2018 07:34:43 GMT</pubDate>
    <dc:creator>kjyothiraditya</dc:creator>
    <dc:date>2018-04-15T07:34:43Z</dc:date>
    <item>
      <title>SUBMIT and RETURN not working when run in background</title>
      <link>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaq-p/609762</link>
      <description>&lt;P&gt;Hi Experts, &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I am trying to schedule a report B via BG job from report A using SUBMIT AND RETURN along with using FM JOB_OPEN and JOB_CLOSE. The program runs fine in foreground, but when we try to schedule report B as BG job from program A, it is not getting executed. i have debugged and found that the program is not going to START-OF-SELECTION but validating selection screen events. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;My submit statement looks like below: &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;SUBMIT REPORT2 WITH paramters_in_B = parameters_in_A &lt;/P&gt;
  &lt;P&gt; WITH selectoptions_in_B IN selectoptions_in_B&lt;/P&gt;
  &lt;P&gt; USER 'XXXX'&lt;/P&gt;
  &lt;P&gt; VIA JOB 'JOBNAME'&lt;/P&gt;
  &lt;P&gt; NUMBER 'XXXX' AND RETURN&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 15:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaq-p/609762</guid>
      <dc:creator>kjyothiraditya</dc:creator>
      <dc:date>2018-04-13T15:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT and RETURN not working when run in background</title>
      <link>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaa-p/609763#M146239</link>
      <description>&lt;P&gt;Hi Jyothir,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Also implement the below code in your submit statement regarding SAP link. &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;USING SELECTION-SCREEN dynnr &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/abapsubmit_interface.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/abapsubmit_interface.htm&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 22:47:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaa-p/609763#M146239</guid>
      <dc:creator>roberto_forti</dc:creator>
      <dc:date>2018-04-13T22:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT and RETURN not working when run in background</title>
      <link>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaa-p/609764#M146240</link>
      <description>&lt;P&gt;Yes, at the time of the SUBMIT (my remark is about before JOB_CLOSE is executed, i.e. not during the background job, although it's executed at that moment too), it always go through the selection-screen validation : if there's an error and the submission runs in dialog mode, then the SUBMIT VIA JOB displays the selection screen along with the error message (yes, during the job submission). Anyway, your question is more about the job NOT being launched.&lt;/P&gt;
  &lt;P&gt;BUT did you check the return codes of JOB_OPEN, SUBMIT and CLOSE, and is the job really NOT scheduled in SM37 -&amp;gt; don't forget to also display the jobs with a missing start condition, i.e. planned/preliminary status)?&lt;/P&gt;
  &lt;P&gt;If everything is fine, then check the SAP notes, and if you find nothing then open a ticket at SAP support.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Apr 2018 06:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaa-p/609764#M146240</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2018-04-14T06:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT and RETURN not working when run in background</title>
      <link>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaa-p/609765#M146241</link>
      <description>&lt;P&gt;In fact, the füll behavior is explained here:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abapsubmit_via_job.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abapsubmit_via_job.htm&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Especially, see step 1 ...&lt;/P&gt;</description>
      <pubDate>Sat, 14 Apr 2018 10:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaa-p/609765#M146241</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-04-14T10:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT and RETURN not working when run in background</title>
      <link>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaa-p/609766#M146242</link>
      <description>&lt;P&gt;Hi Sandra, &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks for your reply. There is no error message in JOB_OPEN, SUBMIT and CLOSE, also sy-subrc is 0. Could it be that the job was not started? &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Sun, 15 Apr 2018 07:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaa-p/609766#M146242</guid>
      <dc:creator>kjyothiraditya</dc:creator>
      <dc:date>2018-04-15T07:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT and RETURN not working when run in background</title>
      <link>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaa-p/609767#M146243</link>
      <description>&lt;P&gt;Hi Roberto, &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;thanks for your reply. Apparently, I do not want to run the 2nd program in the foreground but in background. Using the above it is taking me to Selection screen of 2nd program where i could see a button to schedule in background. &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Once gain thanks for the reply.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Sun, 15 Apr 2018 07:34:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaa-p/609767#M146243</guid>
      <dc:creator>kjyothiraditya</dc:creator>
      <dc:date>2018-04-15T07:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT and RETURN not working when run in background</title>
      <link>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaa-p/609768#M146244</link>
      <description>&lt;P&gt;If there's no error, then it should work. As I said, check in SM37 (if you closed the job without any start condition then it has a status with value planned/preliminary, you may still see it in SM37); otherwise check SAP notes, if none can be applied then open a ticket.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Apr 2018 14:51:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaa-p/609768#M146244</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2018-04-15T14:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT and RETURN not working when run in background</title>
      <link>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaa-p/609769#M146245</link>
      <description>&lt;P&gt;Hi Jyothir,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Check if the USER has authorization - object S_BTCH_NAM.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;"USING SELECTION-SCREEN dynnr" works fine considering yours submit via JOB (background).&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Below SAP explain.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Addition 1&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;... USING SELECTION-SCREEN dynnr &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Effect&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;This addition defines which selection screen is called. dynnr is a data object that must contain the dynpro number of a selection screen defined in the called program when the statement SUBMIT is executed.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;If the addition USING SELECTION-SCREEN is omitted or the dynpro number 1000 is entered, the standard selection screen is called. If no standard selection screen is defined in the called program, no selection screen is called. &lt;/LI&gt; 
   &lt;LI&gt;If a dynpro number other than 1000 is entered in the addition USING SELECTION-SCREEN, the corresponding standalone selection screen is called. If no selection screen with this dynpro number is defined in the called program, a non-handleable exception is raised.&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Addition 2 &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;... VIA SELECTION-SCREEN &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Effect &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;If this addition is specified, the selection screen is "displayed" on the screen. Otherwise, background selection screen processing takes place. In background selection screen processing, the selection screen events are raised without the selection screen being displayed. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Sun, 15 Apr 2018 16:48:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/submit-and-return-not-working-when-run-in-background/qaa-p/609769#M146245</guid>
      <dc:creator>roberto_forti</dc:creator>
      <dc:date>2018-04-15T16:48:29Z</dc:date>
    </item>
  </channel>
</rss>

