<?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: How to submit a Program in Background without wait ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109565#M738255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need to look at the syntax of the SUBMIT statement, particularly the option VIA JOB.  This can be used to create a job running your program and immediately return to your calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2007 10:05:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-04T10:05:42Z</dc:date>
    <item>
      <title>How to submit a Program in Background without wait ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109562#M738252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;    I have one requirement in which i want to call another executable program from one program by passing some parameters to the calling program from called program. &amp;lt;b&amp;gt;I dont want to wait till the executatio of the calling program gets over.&amp;lt;/b&amp;gt;i just want to submit the program &amp;amp; &amp;lt;b&amp;gt;wants to continue with my calling program&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;i am not bothered with the results of the called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     How to do this...&lt;/P&gt;&lt;P&gt;if possible pl. send me the code. especially i am using some parameters &amp;amp; internal tables to be passed to the called program from calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 09:50:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109562#M738252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T09:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit a Program in Background without wait ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109563#M738253</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;This can be done by using SUBMIT.......RETURN stattement . By this ABAP statement you can execute the program from some other program . &lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;SUBMIT z_report&lt;/P&gt;&lt;P&gt;                      USING SELECTION-SET ps_variant " variant name of the report&lt;/P&gt;&lt;P&gt;                      AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this solve ur problem ...... Award points!!!!.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 09:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109563#M738253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T09:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit a Program in Background without wait ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109564#M738254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for this use immediate option whixh is their in SM36&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward points if helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 10:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109564#M738254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T10:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit a Program in Background without wait ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109565#M738255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need to look at the syntax of the SUBMIT statement, particularly the option VIA JOB.  This can be used to create a job running your program and immediately return to your calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 10:05:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109565#M738255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T10:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit a Program in Background without wait ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109566#M738256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what i read from help is the RETURN will only send back the control to the Calling program. But Actually it will wait till the execution of Called program gets over.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl. correct me if i am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want to wait till the execution of Called Program.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pl. suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 10:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109566#M738256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T10:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit a Program in Background without wait ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109567#M738257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick Youngs answer looks best of all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternative could be to put the functionality into a function. This function must be remote-enabled and called by your program using the addition STARTING NEW  TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just put a sample program for parallel processing in the WIKI code gallery.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="https://wiki.sdn.sap.com/wiki/display/Snippets/Easily&lt;EM&gt;implement&lt;/EM&gt;parallel&lt;EM&gt;processing&lt;/EM&gt;in&lt;EM&gt;online&lt;/EM&gt;and&lt;EM&gt;batch&lt;/EM&gt;processing"&amp;gt;parallel processing&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 10:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109567#M738257</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-12-04T10:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit a Program in Background without wait ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109568#M738258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can exectue the progrm directly by choosing option Execute in background in option Program at the top of ABAP Editor screen. After that it will ask the variant for which you want to execute the program . Give that and choose the option "Ececute immidiately". Now go to transaction SM36  and in job discription give your program name and check in job log and spool about the status of your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please award points if useful !!!!!!!!&lt;/P&gt;&lt;P&gt;Tahnks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Dipika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 10:36:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109568#M738258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T10:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit a Program in Background without wait ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109569#M738259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be achieved using&lt;/P&gt;&lt;P&gt;SUBMIT ... VIA JOB job NUMBER n statement and return.&lt;/P&gt;&lt;P&gt;This statement just schedules a job in background and returns the control to the calling program and does not wait for the called program's execution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereas in&lt;/P&gt;&lt;P&gt;SUBMIT...  ... and RETURN  (i.e. Without VIA JOB)&lt;/P&gt;&lt;P&gt;control is returned to the calling program after the execution of the called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 11:13:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109569#M738259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T11:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit a Program in Background without wait ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109570#M738260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uma &amp;amp; all,&lt;/P&gt;&lt;P&gt;     is it that i will have to create some job in SM36 &amp;amp; then schedule.&lt;/P&gt;&lt;P&gt;     My requirement is everytime it will be a new job with some different parameter to be passed depending on some logic in calling program. I will have to do this programatically. No manual job submission.&lt;/P&gt;&lt;P&gt;     Kindly tell me step by step how to do this. I am confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 04:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109570#M738260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T04:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit a Program in Background without wait ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109571#M738261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can schedule a job programatically .. Please find below the steps..&lt;/P&gt;&lt;P&gt;This will schedule a background job (and this you can view in Sm37) and returns control to the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: jobnumber TYPE tbtcjob-jobcount,&lt;/P&gt;&lt;P&gt;            jobname   TYPE tbtcjob-jobname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set the job name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; jobname = 'xxx'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            jobname  = jobname&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            jobcount = jobnumber&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS   = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT reportname USER sy-uname&lt;/P&gt;&lt;P&gt;                                VIA JOB jobname&lt;/P&gt;&lt;P&gt;                               NUMBER jobnumber&lt;/P&gt;&lt;P&gt;                               WITH  param1 =   "fill the parms/sel fields with new values&lt;/P&gt;&lt;P&gt;                               WITH  Param2=     "fill the parameters/sel fields&lt;/P&gt;&lt;P&gt;     AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            jobcount  = jobnumber&lt;/P&gt;&lt;P&gt;            jobname   =jobname&lt;/P&gt;&lt;P&gt;            strtimmed = 'X'&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;           OTHERS    = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thank You.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 05:20:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109571#M738261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T05:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit a Program in Background without wait ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109572#M738262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx a lot Uma...&lt;/P&gt;&lt;P&gt;you have understood my problem very well &amp;amp; suggested a soluation which i have used &amp;amp; my problem got solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have awarded some points to you...&lt;/P&gt;&lt;P&gt;Thanx a lot....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 09:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-submit-a-program-in-background-without-wait/m-p/3109572#M738262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T09:02:18Z</dc:date>
    </item>
  </channel>
</rss>

