How to autostart job in SM37 after system restart
Sometimes You may need to automatically run a job after a reboot of Your SAP system. Here’s a quick tip on how to do this.
What do You need to set in SM36/SM37, look at the below screen:
- Job Start section. Here choose event – SAP_SYSTEM_START. Inside be sure to check the Event Periodic checkbox
- Job Frequency – will set itself up automatically after step 1
- Set Your Job Name and appropriate program in the Step tab
Useful transaction in this case: SM62/SM64 where You can check event history and all background events. Also note the table: BTCEVTJOB – here is a list of all the tasks waiting for events…
How do I find the background job properties depending on an event id?
It’s simple:
- Take jobname from BTCEVTJOB table.
- Go to SM37 -> paste job name -> don’t forget to write Your event in the job start condition section.