SAP Background Jobs
Trainer email ID – Vjtelkar@gmail.com
We can schedule ABAP programs, tasks, commands to be executed in the background. SAP uses
background work processors to execute these tasks.
Tcode: SM36 is used to schedule the background job.
Before scheduling BG job, let us create a ABAP program and schedule to execute in the BG.
Go to Tcode: SE38 – ABAP Editor
Specify the program name and click on “Create” button
Specify the title, type, status and application of the program as in the below screen
Trainer email ID – Vjtelkar@gmail.com
Click on the “Local Object” and see the below screen and click on Save
In the ABAP editor, start the program coding.
Trainer email ID – Vjtelkar@gmail.com
In the below example – write command is for printing the text
CTRL + S ---- For saving the program
CTRL + F2 ----- Syntax checking
CTRL + F3 ----- For program activation
F8 – to see the program output
Scheduling the Program in the Background:
Go to T-code: SM36 and click on “Job Wizard” – for creating a new batch job
Batch job creation:
Specify the batch job name, Priority, target server name as below:
Select the – ABAP program step
Specify the ABAP program name:
Schedule the program time for execution:
SM37 / SM39 – Use to monitor the scheduled job status – like finished job status, Cancelled job status
etc…
SM65 – Analysis tool for Background processing