cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a job

Former Member
0 Kudos

Hi Gurus,

Can you give me the steps on how to create a job?

Thanks,

Paul

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

sm36

Former Member
0 Kudos

Hi

A background job is created and associated for a progam and is scheduled to run for a specified time interval. For example if the deliveries are to be automated, the program resopnsible for creating the delivery is associated with the batch job and scheduled for a time interval, say 10 mins. For every ten mins the batch job runs and picks up all the orders to be delivered and creates the delivery.

SM36 Define Background Job

SM37 Background Job Overview

SM39 Job Analysis

For scheduling background processing, you have to direct the system to process an ABAP/4 or external program in the background. This is a two-step process:

• Scheduling the program

• Releasing the job

This needs to have a special authorization for releasing and scheduling the job. Generally, the system administrator, who organizes and monitors background processing, supervises the release of these jobs. Many users are also authorized to schedule background processing of reports. You cannot schedule a job unless and until you have a release authorization. If a user is authorized and has specified a start date or selected "start immediately," he or she can release the job.

Authorized users can change start time. A program can be scheduled as a separate job or you can append it to an existing job, which has not yet been processed. Background process can be run while doing some other online work. However, this can adversely affect online operation and should be avoided. For example, if you run a program that locks the database, the work of online users will be hampered or stopped. Often, long-running reports are scheduled automatically or semi-automatically for background processing.

First Step

Initiate the job scheduling function. Standard job scheduling must be used in case of scheduling of an external command or external program as a background job and ABAP job¬ scheduling function can be used to schedule ABAP programs. For starting a standard job scheduling function choose the following:

Administration menu bar option à CCMS option à Jobs option à Definition option.

For starting ABAP job scheduling function, navigate to ABAP Editor and choose Program menu bar option execute option à Background option.

Second Step

now define a job. Using the Job Wizard you can define your job. From the Application toolbar, choose the wizard button. After this, the initial screen of the SAP Job Wizard appears. The Job Wizard is available only from the standard job scheduling function.

Third Step

Now, you have to save the job. When it displays the message "Job saved" it means the job has been successfully scheduled. We know that a job must be released before it is scheduled. Only authorized users can release the job, otherwise your system administrator will release your job.

Fourth Step

this is the last step of scheduling. In this step you have to check the status of your job. For this you need to choose System menu bar option à Own jobs option.

In SAP System, the background processing runs according to your instructions. In case a list is generated by the report, the report either prints directly or waits for you in the SAP output controller. The status of background processing can be checked for its correctness

Reward points if information helps

Former Member
0 Kudos

HI John,

Go to trans sm36. Enter program name for which u want to define backgrond job.Press start conditon enter time and frequency of the same. U can enter the vriant created for the program after clicking on the step.

Reward if useful.

Regards,

Pramod

Former Member
0 Kudos

Hi,

To create a new batch job you can go to transaction Sm36,wherein you can define the job name,job class and target server..then you can go to start condition and select whether it is a periodic job,or immediate job and accordingly you can schedule the job..Also the very important thing is in the Step funtion you should have valid ABAP program or any external program which should be used at the background...

If you know the program then you can go to SE38 and create a variant for that program which can be later used in the newly created job.You can also copy an existing job and modify it according to the requirement by checking the job details in SM37.

Just to summarise the Key transactions are : SM36 and SE38.

Reward points pls.

Regards,

Govind.