<?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 Background jobs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419777#M201633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After creating the 1st step. Click on Step button again. This will take you to the Step list overview. On this screen click Create to create the next step. Give the program and variant name. Similarly create the subsequent steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;P&gt;*Please reward useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2006 10:11:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-06T10:11:04Z</dc:date>
    <item>
      <title>Regarding Background jobs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419771#M201627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai All,&lt;/P&gt;&lt;P&gt;          I want to schedule the multiple jobs at a time.&lt;/P&gt;&lt;P&gt;At the time of schedule i have to check prv job has completed or not. when prev job completed then only next job is to be run . Sothat there is no max load on the system i.e. one after one i have to execute in background. Please give the solution. I succeded to set multiple jobs in back ground but all jobs r executing at the same time which i don't want and which leads to more load on system. So i want to execute one after other by checking previous job has finifshed or not. &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 09:01:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419771#M201627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T09:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Background jobs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419772#M201628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create 1 job with multiple steps. 1st step will execute the 1st program, 2nd step will execute the 2nd program and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each step is started after the preceding step is completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;P&gt;*Please reward useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 09:03:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419772#M201628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T09:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Background jobs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419773#M201629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi prashanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Simple&lt;/P&gt;&lt;P&gt;use like below when writing code FOR SECOND JOB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ;&lt;/P&gt;&lt;P&gt;jobname = 1st jobname&lt;/P&gt;&lt;P&gt;jobcount =1st job count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt; Data Declaration&lt;/P&gt;&lt;P&gt;DATA : eventparm LIKE tbtcjob-eventparm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eventparm = jobname.&lt;/P&gt;&lt;P&gt;eventparm+32 = jobcount.&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 = jobcount_sen&lt;/P&gt;&lt;P&gt;jobname = jobname_sen&lt;/P&gt;&lt;P&gt;predjob_checkstat = ''&lt;/P&gt;&lt;P&gt;event_id = 'SAP_END_OF_JOB'&lt;/P&gt;&lt;P&gt;event_param = eventparm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------" /&gt;&lt;P&gt;1. Important thing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. FIRST CLOSE THE SECOND JOB. (Dependent Job)&lt;/P&gt;&lt;P&gt;THEN&lt;/P&gt;&lt;P&gt;CLOSE THE 1ST JOB.&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;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 09:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419773#M201629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T09:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Background jobs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419774#M201630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;       Please give some example . How can i create step for each program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 09:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419774#M201630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T09:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Background jobs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419775#M201631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is a detailed explanation&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a7f05505211d189550000e829fbbd/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a7f05505211d189550000e829fbbd/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 09:36:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419775#M201631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T09:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Background jobs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419776#M201632</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;U can use fallowing funcation modules for background job by checking previous job has finished or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOB_OPEN- Open Job Scheduling Without Dialog (Including COMMIT WORK)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOB_SUBMIT-Insert Background Task in Background Request With COMMIT WORK  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOB_CLOSE - Close Background Request With COMMIT WORK  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use the transactions SM36 and SM37&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Creating a Background Job (SM36).&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149;	Press the Job Wizard button and step through the screens as follows:  &lt;/P&gt;&lt;P&gt;&amp;#149;	Screen 1:   Continue &lt;/P&gt;&lt;P&gt;&amp;#149;	Screen 2:   Enter a name for your job. Continue. &lt;/P&gt;&lt;P&gt;&amp;#149;	Screen 3:   Continue with ABAP Program Step selected  &lt;/P&gt;&lt;P&gt;&amp;#149;	Screen 4:   Enter the ABAP Program Name and variant name. &lt;/P&gt;&lt;P&gt;Press the Print Parameters button, specify the required printer and set the "Time of Print" to "Send to Print Spooler for now". &lt;/P&gt;&lt;P&gt;Press green tick &lt;/P&gt;&lt;P&gt;Continue &lt;/P&gt;&lt;P&gt;&amp;#149;	Screen 5:   If more reports need to be added to the job tick the checkbox, press continue and repeat screens 3 and 4. &lt;/P&gt;&lt;P&gt;&amp;#149;	Screen 6:   Select how the job is to scheduled (eg Date and Time) &lt;/P&gt;&lt;P&gt;&amp;#149;	Screen 7:   Enter the required scheduling information ( eg Date and Time) and if required tick "Periodic Jobs" &lt;/P&gt;&lt;P&gt;&amp;#149;	Screen 8:   If "Periodic Job" was selected select the frequency (eg Monthly) &lt;/P&gt;&lt;P&gt;&amp;#149;	Screen 9:   Check the job details and press Complete &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Viewing Background Jobs(SM37)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149;	From the main menu select System&amp;gt;Services&amp;gt;Jobs&amp;gt;Job Overview (transaction SM37). &lt;/P&gt;&lt;P&gt;&amp;#149;	Enter the required selection criteria and press Execute &lt;/P&gt;&lt;P&gt;&amp;#149;	To view the job log, tick the required job and press the "Job Log" button. &lt;/P&gt;&lt;P&gt;&amp;#149;	To view the output from the job, tick the required job and press the "Spool" button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh Yadla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 10:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419776#M201632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T10:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Background jobs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419777#M201633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After creating the 1st step. Click on Step button again. This will take you to the Step list overview. On this screen click Create to create the next step. Give the program and variant name. Similarly create the subsequent steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;P&gt;*Please reward useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 10:11:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419777#M201633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T10:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Background jobs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419778#M201634</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;Check the import parameters PRED_JOBCOUNT and PRED_JOBNAME in the function 'JOB_CLOSE'. You need to populate these values properly. For 2nd job you need to pass the job parameters of the 1st job, For 3rd job you need to pass the job parameters of the 2nd job and so on.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Also I would recommend using JOB_SUBMIT instead of the command SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;P&gt;*Please mark useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 14:53:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-background-jobs/m-p/1419778#M201634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T14:53:23Z</dc:date>
    </item>
  </channel>
</rss>

