Background Job Introduction
What is Background job?
A Background job is a job that runs in background without effecting the normal operations of the system.
Advantages of Background Jobs
- It reduces manual effort & automates the task.
- It can be scheduled as per user’s choice.
- It reduces user interaction and can run seamlessly in the background without user input
- Once you define the variant for background job, the user doesn’t have to worry about value input in the field. Thus, user confusion is also reduced.
- Ideal for time- consuming/resource intensive programs which can be scheduled to run in the night(when system load is low).
Background jobs are classified into three categories –
- Class A (High/critical Priority): – Some tasks are urgent or critical and must be scheduled with class A priority job. Class A priority reserves one or more background work processes. Users have to decide how many background work processes should be assigned to Class A priority job. Suppose a user chooses 2 background work processes for this category then available background work processes for class B and C = (Total number of work processes set in operation modes RZ03)- (Background work processes allowed to class A category).
- Class B(Medium Priority): – Once Class A jobs are completed , Class B job will start executing in the background before class C jobs.
- Class C(Low Priority): -It runs after both class A and class B jobs are completed.
Possible status of background jobs
- Scheduled: – You have defined the program name and variant but not defined start condition like Start Date, End Date, Frequency etc. That means you have not defined when a job should be scheduled in system.
- Released: – All required criteria are fulfilled for job definition. Start condition is must for the job to be in release status.
- Ready: – All the required conditions are met to run the job in a background workprocess. But job scheduler has put the job in the queue because it is waiting for background workprocess to be free.
- Active: – Job has started running in the background. We cannot change the status of the job once it is in Active status.
- Finished: – Job is executed successfully. It means the desired task is competed without any error.
- Cancelled: – There are two possibilities for this. The Administrator has forcefully canceled the job or there might be some issue with job. You can investigate this from Job logs.
1.Go to T-Code 'SM36'.
2.lick on 'Job Wizard'.
3.click on continue.
4.Enter Job Name.
5.Click on continue.
6.click on continue.
7.Enter Program name.
8.Enter Variant.
9.click on continue.
10.click on continue.
12.if want to send job info to mail address click on E-mail Notification and enter mail.
13.click on continue.
14.select radio button 'Immediately'.
15.click on continue.
16.select periodic job if job needs run periodically.
17.click on continue.
18.select radio button 'none of the above'.
19.click on other jobs.
20.enter job period.(Ex:Running job for every 10 min)
21.click on create
22.click on continue.
23.click on complete.
Getting the success message 'Job ZVB_E070' saved with status: Released'.
Analyzing the Background Job:
1.Go-to T-code 'SM37'.
2.Enter job name
3.click on execute
4.select the job and click on 'job log'
Comments
Post a Comment