cancel
Showing results for 
Search instead for 
Did you mean: 

i have one question could you plz answer of answer my question

Former Member
0 Kudos

hi sap gurus,

i am testing the report in background- my question is how many background jobs can be run at a time.

thanks in advance

samsd

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

It depends on how many Backgound workprocesses are set by your Basis.

Cheers..

Santosh

Former Member
0 Kudos

HI Samsd

BACKGROUND PROCESSING IN SAP R/3

1.What the scheduler can do

Many steps within a job: A job can consist of many steps, each running a different program. Each step waits for the previous step to run before it starts.

Periodic jobs: A job can be scheduled to run every minute, hour, day, week, month, or any other specified time frame.

Dependent jobs: A jobs can be scheduled to wait for another job to finish before it executes.

2.What the scheduler cannot do

Periodic dependent jobs: If you have a job that runs every night and another that depends on it, the dependent job will run the first time, but not again after that.

Continuing a job that has crashed: If a job crashes on step 1, the whole job stops, and there is no way to continue processing.

Re-running from certain job steps: If your job crashes at step 2, there is no facility to re-run, without changing the job and removing step 1 so it does not run again.

Waiting for a Batch Input Session: If you run a job which runs RSBDCSUB, the second step will not wait for the batch input session to process, as it is executing in a separate job.

3.Suggested methods for processing

Using a self-scheduling job: A program can be set up to re-schedule itself in a job after a specified time. This is more flexible than a periodic job.

Jobs that create other jobs: An alternative to dependent jobs, is to run a program in the first job which will create the next job.

Jobs that wait for other jobs: A program can be set up that will wait for a specified job, and runs a batch input session. Use this as a step in your job after a batch input session has run.

4. System messaging

Information and Success messages: Write the message text to the job log. Program and job continues as normal

Error and Abend messages: Write the message text to the job log. Stop the current program from running. Cancel the entire job.

-> any dependent programs must be scheduled in a different job

5.Suggested methods for error handling & reprocessing

If subsequent steps in a job are not dependent on the first one finishing successfully, the first program should be set up to crash using a success message followed by the ‘STOP’ statement.

  • Before every error message, call a routine which notifies the ‘Operations Center’ of error type, severity, action, etc.

6. Transactions used for Background JOBS:

SM36 - Define Background Jobs

SM37 - Background Jobs Overview

How to define Periodic Jobs

Execute transaction SM36

Define Job name, Job class, Target server

Click on 'START CONDITION' button

Click on 'Date/Time' button

Enter Scheduled start DATE & TIME. Check mark 'Periodic Job' field. Click on 'Period values' button and select 'Hourly' or 'Dialy' or 'Weekly' or 'Monthly' or Other period and SAVE. Go back to main screen.

Click on 'STEPS' button and enter Program name and Variant under box 'ABAP Program'. Click on 'Print Specification' button and enter Printer name under 'Output device' and SAVE

Click on SAVE button until you get message on bottom of the screen that describes 'Job XYZ saved with status: Scheduled'.

Click on 'Job overview' button or execute SM37 transaction.

Select the appropriate 'Job name', 'User name', 'Job Status' & Schedule date under 'Job start condition' and click on 'Execute' button or press F8.

You will now see all your scheduled JOBS.

Background processing:

First, when you run a report in the background, the SAP System is not tied up or blocked. However, if you run the process in the interactive session, the SAP session, in which the process is running, is always blocked for any further inputs. On the other hand, in a non-interactive mode, the R/3 system starts the report in the background. Running the report in this manner has no influence on your interactive work with the R/3 system.

Second, in background processing of the system you can schedule the processes, i.e. a report or external program can run at any scheduled time when R/3 system is active, during the night or other periods of low load on the R/3 system. Automatic periodic repetition of the jobs can be scheduled using background-processing system.

Third, background processing is an efficient way to execute long-running jobs. For interactive sessions, the SAP System has a built-in time limit. Therefore, whenever a report exceeds that specified limit, the R/3 system terminates the processing of the report automatically. This is the only way to run long-running ABAP/4 reports. Mostly ABAP/ 4 reports do not require any scheduling, since such reports are automatically scheduled for execution in the background system.

Reward if useful to u

Message was edited by:

narendran vajravelu

Former Member
0 Kudos

Hi

Refer the link below

<a href="http://www.planetsap.com/Jobs_main_page.htm">BACKGROUND PROCESSING IN SAP R/3</a>

former_member183879
Active Contributor
0 Kudos

Hi Sam,

There is no such limit on the number of background jobs which can run at a time.

But their scheduling should be in such a way that no 2background jobs, access the same object for processing at the same time. In this case, both the jobs may get cancelled.

Hope this helps you.

Reward if this helps.