<?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: Background Process in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-process/m-p/2729800#M633628</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;1.In SM36; in Job wizard, execute your ABAP program to create the session in a job with other required parameters. This would create a session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use SM36 again to create a second job with a condition that this has to start after the first job. Use program RSBDCSUB with the session name which has been created in step 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murugesh AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2007 06:59:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-03T06:59:40Z</dc:date>
    <item>
      <title>Background Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-process/m-p/2729799#M633627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An ABAP program creates a batch input session. We need to submit the Program and the Batch Input Session in the Background. How to do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 06:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-process/m-p/2729799#M633627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T06:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Background Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-process/m-p/2729800#M633628</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;1.In SM36; in Job wizard, execute your ABAP program to create the session in a job with other required parameters. This would create a session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use SM36 again to create a second job with a condition that this has to start after the first job. Use program RSBDCSUB with the session name which has been created in step 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murugesh AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 06:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-process/m-p/2729800#M633628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T06:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Background Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-process/m-p/2729801#M633629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There are two ways for you to handle, &lt;/P&gt;&lt;P&gt;one manually setting up the job through SM36 which is better and convinient, &lt;/P&gt;&lt;P&gt;secondly through program using FM's JOB_OPEN, SUBMIT, JOB_CLOSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find below steps in doing both:&lt;/P&gt;&lt;P&gt;Procedure 1:&lt;/P&gt;&lt;P&gt;1. Goto Trans -&amp;gt; SM36&lt;/P&gt;&lt;P&gt;2. Define a job with the program and variant if any&lt;/P&gt;&lt;P&gt;3. Click on start condition in application tool bar&lt;/P&gt;&lt;P&gt;4. In the pop-up window, click on Date/Time&lt;/P&gt;&lt;P&gt;5. Below you can see a check box "Periodic Job"&lt;/P&gt;&lt;P&gt;6. Next click on Period Values&lt;/P&gt;&lt;P&gt;7. Select "Other Period"&lt;/P&gt;&lt;P&gt;8. Now give '15' for Minutes&lt;/P&gt;&lt;P&gt;9. Save the job&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure 2 via Program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a sample code for the same. Note the ZTEMP2 is the program i am scheduling with 15mins frequency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,&lt;/P&gt;&lt;P&gt;L_RELEASE(1) TYPE c.&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 = 'ZTEMP2' &lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;JOBCOUNT = P_JOBCNT&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;CANT_CREATE_JOB = 1&lt;/P&gt;&lt;P&gt;INVALID_JOB_DATA = 2&lt;/P&gt;&lt;P&gt;JOBNAME_MISSING = 3&lt;/P&gt;&lt;P&gt;OTHERS = 4.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT ZTEMP2 VIA JOB 'ZTEMP2' NUMBER P_JOBCNT&lt;/P&gt;&lt;P&gt;TO SAP-SPOOL WITHOUT SPOOL DYNPRO &lt;/P&gt;&lt;P&gt;WITH DESTINATION = 'HPMISPRT'&lt;/P&gt;&lt;P&gt;WITH IMMEDIATELY = SPACE&lt;/P&gt;&lt;P&gt;WITH KEEP_IN_SPOOL = 'X' 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 = P_JOBCNT&lt;/P&gt;&lt;P&gt;JOBNAME = 'ZTEMP2' &lt;/P&gt;&lt;P&gt;STRTIMMED = 'X'&lt;/P&gt;&lt;P&gt;PRDMINS = 15&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;JOB_WAS_RELEASED = L_RELEASE&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;CANT_START_IMMEDIATE = 1&lt;/P&gt;&lt;P&gt;INVALID_STARTDATE = 2&lt;/P&gt;&lt;P&gt;JOBNAME_MISSING = 3&lt;/P&gt;&lt;P&gt;JOB_CLOSE_FAILED = 4&lt;/P&gt;&lt;P&gt;JOB_NOSTEPS = 5&lt;/P&gt;&lt;P&gt;JOB_NOTEX = 6&lt;/P&gt;&lt;P&gt;LOCK_FAILED = 7&lt;/P&gt;&lt;P&gt;INVALID_TARGET = 8&lt;/P&gt;&lt;P&gt;OTHERS = 9.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the above helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If you want to run something immeidately in the background, then you can use the SUBMIT REPORT option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. IF you want to schedule the job, you can call the functions, JOB_OPEN, JOB_SUBMIT / SUBMIT REPORT THROUGHT JOB NUMBER, JOB_CLOSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;nagaraju.m&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 07:31:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-process/m-p/2729801#M633629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T07:31:41Z</dc:date>
    </item>
  </channel>
</rss>

