<?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 Second user's background program in a queue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/second-user-s-background-program-in-a-queue/m-p/3063971#M725983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SDN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a user executes one zprogram in background and in the same time if another user executes this zprogram in the background  then how can we maintain programatically the second user's program in a queue and make it execute after completion of the first one rather than executing simultaneously. &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;Regards&lt;/P&gt;&lt;P&gt;Basha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Nov 2007 07:03:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-30T07:03:25Z</dc:date>
    <item>
      <title>Second user's background program in a queue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/second-user-s-background-program-in-a-queue/m-p/3063971#M725983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SDN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a user executes one zprogram in background and in the same time if another user executes this zprogram in the background  then how can we maintain programatically the second user's program in a queue and make it execute after completion of the first one rather than executing simultaneously. &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;Regards&lt;/P&gt;&lt;P&gt;Basha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 07:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/second-user-s-background-program-in-a-queue/m-p/3063971#M725983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T07:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Second user's background program in a queue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/second-user-s-background-program-in-a-queue/m-p/3063972#M725984</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 use the below function module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="29" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;open backgroundjob&lt;/P&gt;&lt;P&gt;*****************************&lt;/P&gt;&lt;P&gt;********Declare parameters of function module accordingly&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;CANT_CREATE_JOB = 01&lt;/P&gt;&lt;P&gt;INVALID_JOB_DATA = 02&lt;/P&gt;&lt;P&gt;JOBNAME_MISSING = 03&lt;/P&gt;&lt;P&gt;OTHERS = 99.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************************&lt;/P&gt;&lt;P&gt;submit ranges table to program &lt;/P&gt;&lt;P&gt;*****************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT REPORTNAME AND RETURN&lt;/P&gt;&lt;P&gt;with &amp;lt;select-options field of Z_REQUEST_BUSINESS_PARTNER_R3 program&amp;gt; in r_range&lt;/P&gt;&lt;P&gt;USER SY-UNAME " User for runtime authorizations &lt;/P&gt;&lt;P&gt;VIA JOB JOBNAME " Job name from job_open function module&lt;/P&gt;&lt;P&gt;NUMBER JOBNUMBER "job number from job_open&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************&lt;/P&gt;&lt;P&gt;close the job so that it gets released &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;&lt;/P&gt;&lt;P&gt;JOBCOUNT = JOBNUMBER&lt;/P&gt;&lt;P&gt;JOBNAME = JOBNAME&lt;/P&gt;&lt;P&gt;strtimmed = 'X' " check this field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 07:20:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/second-user-s-background-program-in-a-queue/m-p/3063972#M725984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T07:20:20Z</dc:date>
    </item>
  </channel>
</rss>

