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:

  1. Job Start section. Here choose event – SAP_SYSTEM_START. Inside be sure to check the Event Periodic checkbox
  2. Job Frequency – will set itself up automatically after step 1
  3. 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:

  1. Take jobname from BTCEVTJOB table.
  2. Go to SM37 -> paste job name -> don’t forget to write Your event in the job start condition section.

Copyright © 2024. SAPBasisWorld.com Privacy Policy