Monitor the step in the job

Dear all,
I want know the function that can monitor the step in a job. I have a program that generates a job within steps. I want to abort the job if a step is cancelled. Can you share the ideas with me? Thank you!

Hi,
if you are in the loop and and executing the job within the loop... then in that case you can use the following logic...
loop at......
...............        processing steps....
call function bp_jobvariant_schedule....      " to schedule the job....
if sy-subrc <> 0.    " if there was any error then it will exit from the loop which means no other jobs can *be executed
  exit.         
endif.
endloop.
Regards,
Siddarth

Similar Messages

Maybe you are looking for