<?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 job in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/3220603#M768069</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 schedule backgroung job using SM36.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAckgroung job is scheduling a program in backgroung means if you want a program to run at a specific time and at a certain frequency you can do that in SM36.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we also schedule programs in backgroung which time out due to there long execution time in foreground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mandeep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mandeep Sindhu on Jan 4, 2008 1:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2008 08:05:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-04T08:05:57Z</dc:date>
    <item>
      <title>background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/3220602#M768068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the meaning of background job pl expalin in simple language&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 08:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/3220602#M768068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T08:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/3220603#M768069</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 schedule backgroung job using SM36.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAckgroung job is scheduling a program in backgroung means if you want a program to run at a specific time and at a certain frequency you can do that in SM36.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we also schedule programs in backgroung which time out due to there long execution time in foreground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mandeep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mandeep Sindhu on Jan 4, 2008 1:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 08:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/3220603#M768069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T08:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/3220604#M768070</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;when u need to run a code daily at some specific time schedule it as a background job........it ll run daily and spool ll be created where u can find the results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 08:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/3220604#M768070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T08:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/3220605#M768071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krupa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;running something in the "background" means executing code with no user interaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means there is no user interaction...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u wanna execute one report daily at night 12 PM so u can schedule this report for background job... where enduser interaction is not needed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Foreground means the report need the user interaction,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve ur problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if useful..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 08:08:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/3220605#M768071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T08:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/3220606#M768072</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;There are various types of work processes that will serve different types of requests. They are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dialog Work Process&lt;/P&gt;&lt;P&gt;Dialog work processes deal with requests from an active user to execute dialog steps (see also Dialog Programming).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update Work Process&lt;/P&gt;&lt;P&gt;Update work processes execute database update requests. Update requests are part of an SAP LUW that bundle the database operations resulting from the dialog in a database LUW for processing in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Background Work Process&lt;/P&gt;&lt;P&gt;Background work processes process programs that can be executed without user interaction (background jobs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enqueue Work Process&lt;/P&gt;&lt;P&gt;The enqueue work process administers a lock table in the shared memory area. The lock table contains the logical database locks for NetWeaver AS ABAP and is an important part of the SAP LUW concept. In NW AS, you may only have one lock table. You may therefore also only have one ABAP application server with enqueue work processes. Normally, a single enqueue work process is sufficient to perform the required tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spool Work Process&lt;/P&gt;&lt;P&gt;The spool work process passes sequential datasets to a printer or to optical archiving. Each ABAP application server may contain only one spool work process.&lt;/P&gt;&lt;P&gt;Background jobs run in a background work process that is different from dialog work processes. Background processing lets you move long running or resource-intensive program runs to times when the system load is low.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the few points for consideration: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Limited Run Time: The Dialog work process has a run-time limit that prevents users from interactively running especially long reports. By default, the system terminates any dialog work process in a transaction that exceeds 300 seconds. Although this limit can be changed by Basis consultants but this is recommended. And if we talk about Background work process, there is no such limit applies to it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  Background work processes allocate memory differently than dialog work processes so that background work processes can become as large as they need to in allocated memory to allow for processing large volumes of data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 08:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/3220606#M768072</guid>
      <dc:creator>i048168</dc:creator>
      <dc:date>2008-01-04T08:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/3220607#M768073</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;All the Non-dialog and time consuming programs can be executed in the background using background workprocess provided by R/3 system using variants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SM36 is the tcode to create BG job .&lt;/P&gt;&lt;P&gt;To schedule a background job (BG job) ,you basically need to privide job name,job class,target host name,start date and time and processing step information.&lt;/P&gt;&lt;P&gt;the job class entry decides the job execution priority.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class A jobs have the highest priorities.these jobs ensure the functioning of R/3 and are time critical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class B jobs have medium pririty. these are periodoc jobs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class C jobs have normal priority.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can  create a back ground job for our program using job_open,submit,job_close function modules  by passing corresponding parameters without specifying in SM36 tcode( as we use to chedule job thru SM36 and SM37 tcodes ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple steps are .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) open Sm36 .provide job name like Zreport_sch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ) Job class  ( A , B,C )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)  Target server (where you want to execute this BG job )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ) press enter button provide abap program name and variant name and save.&lt;/P&gt;&lt;P&gt;go back to initial screen of sm36 press start conition button .Provide when you want to execute immeduately / date &amp;amp; time / , select check box if it periodic job..etc.&lt;/P&gt;&lt;P&gt;Press save button every time you do some changes .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;) goto sm37 tcode and provide your job name entered in sm36 tcode initially.&lt;/P&gt;&lt;P&gt;provide corresponding values and press execute button.so the job will be executed in the time specified in sm36.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Sivaparvathi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 08:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/3220607#M768073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T08:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/3220608#M768074</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;With Release 4.0, there are now two ways to schedule external programs or commands in a job step. These are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#9679;      External commands -- pre-defined symbolic names for commands or programs at the operating system level. External commands are intended for ordinary users. Because they are pre-defined in the SAP system and are authorizations-tested, the administrator has control over what users can do at the operating system level through background jobs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#9679;      External programs -- OS commands that are directly entered into the job step specifications and for which no specific authorization test is carried out in the SAP system. Use of external programs is restricted to administrators (a special authorization is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can schedule either an external command or an external program in a single job step, but not both. To schedule an external command, you use the COMMANDNAME and OPERATING SYSTEM parameters. To schedule an external program, you use the EXTPGM_NAME parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both external commands and external programs share the EXTPGM-parameters other than EXTPGM_NAME.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, search for &amp;#147;External Programs&amp;#148; in the CCMS Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add a job step: external program &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'JOB_SUBMIT' &lt;/P&gt;&lt;P&gt;   EXPORTING &lt;/P&gt;&lt;P&gt;     AUTHCKNAM      = SY-UNAME             &amp;#147; User for runtime &lt;/P&gt;&lt;P&gt;                                           &amp;#147; authorizations&lt;/P&gt;&lt;P&gt;     JOBCOUNT       = JOBNUMBER            &amp;#147; From JOB_OPEN&lt;/P&gt;&lt;P&gt;     JOBNAME        = JOBNAME              &amp;#147; From JOB_OPEN&lt;/P&gt;&lt;P&gt;     COMMANDNAME    = EXTERNAL_COMMAND     &amp;#147; Name of a pre-defined &lt;/P&gt;&lt;P&gt;                                           &amp;#147; external command.  &lt;/P&gt;&lt;P&gt;                                           &amp;#147; COMMANDNAME and &lt;/P&gt;&lt;P&gt;                                           &amp;#147; EXTPGM_NAME are &lt;/P&gt;&lt;P&gt;                                           &amp;#147; mutually-exclusive &lt;/P&gt;&lt;P&gt;                                           &amp;#147; alternatives.&lt;/P&gt;&lt;P&gt;                                           &amp;#147; Both &lt;/P&gt;&lt;P&gt;                                           &amp;#147; use the EXTPGM &lt;/P&gt;&lt;P&gt;                                           &amp;#147; parameters.&lt;/P&gt;&lt;P&gt;     OPERATINGSYSTEM= 'AIX'                &amp;#147; Operating system for &lt;/P&gt;&lt;P&gt;                                           &amp;#147; choosing COMMANDNAME&lt;/P&gt;&lt;P&gt;                                           &amp;#147; variant.   &lt;/P&gt;&lt;P&gt;     EXTPGM_NAME    = '/usr/exe/myexe'     &amp;#147; Pathname of an &lt;/P&gt;&lt;P&gt;                                           &amp;#147; external program;  &lt;/P&gt;&lt;P&gt;                                           &amp;#147; an authorization &lt;/P&gt;&lt;P&gt;                                           &amp;#147; for S_RZL_ADM (CC&lt;/P&gt;&lt;P&gt;                                           &amp;#147; Control Center:&lt;/P&gt;&lt;P&gt;                                           &amp;#147; System Administration)&lt;/P&gt;&lt;P&gt;                                           &amp;#147; is required.  &lt;/P&gt;&lt;P&gt;     EXTPGM_PARAM   = '&amp;lt;Parameter String&amp;gt;' &amp;#147; Program parameters&lt;/P&gt;&lt;P&gt;     EXTPGM_SYSTEM      = 'host01'         &amp;#147; Host for execution &lt;/P&gt;&lt;P&gt;     EXTPGM_WAIT_FOR_TERMINATION = 'X'     &amp;#147; Control flags for &lt;/P&gt;&lt;P&gt;     EXTPGM_STDOUT_IN_JOBLOG = 'X'         &amp;#147; external programs: &lt;/P&gt;&lt;P&gt;     EXTPGM_SET_TRACE_ON     = 'X'         &amp;#147; see RSXPGDEF&lt;/P&gt;&lt;P&gt;     EXTPGM_STDERR_IN_JOBLOG = 'X'         &amp;#147; documentation for &lt;/P&gt;&lt;P&gt;                                           &amp;#147; EXTPGM options &lt;/P&gt;&lt;P&gt;   EXCEPTIONS &lt;/P&gt;&lt;P&gt;     INVALID_JOBDATA         = 02 &lt;/P&gt;&lt;P&gt;     JOBNAME_MISSING         = 03 &lt;/P&gt;&lt;P&gt;     JOB_NOTEX               = 04 &lt;/P&gt;&lt;P&gt;     JOB_SUBMIT_FAILED       = 05 &lt;/P&gt;&lt;P&gt;     LOCK_FAILED             = 06 &lt;/P&gt;&lt;P&gt;     PROGRAM_MISSING         = 07 &lt;/P&gt;&lt;P&gt;     PROG_ABAP_AND_EXTPG_SET = 08 &lt;/P&gt;&lt;P&gt;     BAD_XPGFLAGS            = 09 &lt;/P&gt;&lt;P&gt;     OTHERS                  = 99. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;gt; 0. &lt;/P&gt;&lt;P&gt;    &amp;lt;Error processing&amp;gt; &lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 10:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/3220608#M768074</guid>
      <dc:creator>mahaboob_pathan</dc:creator>
      <dc:date>2008-01-04T10:40:49Z</dc:date>
    </item>
  </channel>
</rss>

