Skip to Content

Job to maintenance plan is running endlessly

Hi Guru,

I have created a job to schedule my maintenance plan (SAP PM) to create automatically the maintenance orders using the t-code SM36 using a variable of IP30.

This job executes daily at 3 AM. However sometimes this job keeps running infinitely without finish. When this happens is necessary cancel manually.

I don't have any idea what can be causing that because sometimes working fine and other not!

Does anyone have any suggest about this issue?


Wagner Silva

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 24, 2016 at 01:14 PM
    Add comment
    10|10000 characters needed characters exceeded

  • Oct 21, 2016 at 09:44 AM


    There is probably a plan or a number of plans causing the delay. Due to unrealistic measurement readings or annual estimate values a plan can trigger very many calls long into the future. This takes a long time and causes the long processing time. One way to try and narrow down the problem to specific plans is to split the scheduling job into multiple smaller jobs. Run job A for plans 1 to 1000, Job B for plans 1001 to 2000, etc. If one job takes much longer than the others it can be identified which set of plans are affected. This set of plans can be further divided to narrow down to a small set of plans that can be examined individually.

    Note 2140915 outlines this problem and gives some hints on identifying problem plans through debugging.


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 24, 2016 at 05:34 PM


    • Check in SM51 transaction to see if the execution is stuck on any Z-development programs/modules.
    • Check also SM12 entries if there exist any lock entries that are preventing the job execution to complete in reasonable time.
    • Try checking with your BASIS team to switch trace for a time on the batch job (trace can be applied outside business hours) before it executes and analysis the log.
    • Check if you have any test systems that are replica of production environment and can able to reproduce the issue in test.
    • Check with your developer. They can help in debugging it and understand the reason behind it for longer run execution.


    Add comment
    10|10000 characters needed characters exceeded