Create A Backgrounf Job in SAP

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

Create a background job in SAP

- This background job will execute the program or the transaction in the backend without any
manual intervention on a daily/ hourly basis to update the tables. So instead of executing
each time the program/transaction in foreground we have the option to create a background
job that going to execute this transaction/program in background as per our input
parameters.
- The steps are:
1. Know the program name

There are 3 different ways to know a transaction’s program name

Example of job we are going to schedume: Create a background job that execute depreciation daily
starting from 10.10.2023 et 00:05

2. Create a variant:

Note: Variant can be created manually from the transaction selection screen or via tcode SE38

- On the transaction “AFAB”, enter the selection criteria then click on save.
Enter the name and significance of the variant.

1. Define and schedule the background job Tcode SM36:

Enter the job name


Click on « Condition de lancement » pour paramétrer les jobs de lancement

Click on “Cliquer”,“Contrôler” puis sauvegarder.

Click on “Etape”.
Entrer le nom du programme et la variante d’exécution

Cliquer en sauvegarder pour planifier le job


2. Monitor the job :Tcode SM37
Cliquer sur le job crée
 Job terminé avec succès

Cliquer sur la liste pour afficher le spool

 Liste des amortissements


Additional notes: Schedule job hourly

Tcode SM37
We are going to schedule the job hourly starting from 00:05:00 and ending in 12:05:00
Résultat è Un nouveau job avec le même nom est lancé

After 1 hour go Tcode SM37 again and check the job

 Job finished successfully, and a new job was scheduled automatically.

You might also like