Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Cancel an active batch job

Former Member
0 Kudos

Hi,

I need to cancel an active batch job. Using SM50, tried to cancel the active job. It does not let me do. It gave a message 'An error occured when exiting the process'. It is job related to time evaluation (RPTIME00). We need to stop this job to run the payroll and it needs to be done today. How can this be resolved? It's been running for a long time. Any thoughts?

Thanks in advance,

VG

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

Ask your basis team to cancel the process via SM50 or otherwise via the operation system.

Afterwards don't forget to check the status (option in SM37) of your job because it will still have the status Active in stead of cancelled.

In SM37 the option 'Check status' will effectively check the status for a batch job, if there is no longer a process in SM50 for an active batch job the status will be reset from Active to Cancelled.

Wim

4 REPLIES 4

Former Member
0 Kudos

Hello,

Ask your basis team to cancel the process via SM50 or otherwise via the operation system.

Afterwards don't forget to check the status (option in SM37) of your job because it will still have the status Active in stead of cancelled.

In SM37 the option 'Check status' will effectively check the status for a batch job, if there is no longer a process in SM50 for an active batch job the status will be reset from Active to Cancelled.

Wim

0 Kudos

Thanks,

I asked the basis guy and he told me he would do the same procedure as I did. Go to SM50. Do you mean to say there is another way to do kill the job? I selected the 'Cancel with core' option to do it and did nto work. what can be the reason? we do this job run every week without any problem. it is basically the time evaluation job run before the actual payroll runs. Please let me know.

Can you elaborate if there is a way to kill this job outside SM50 and sm37?

Thanks in advance,

VG

0 Kudos

Hello,

You can get the OS process ID in SM50 and then kill the job at the OS level. As a basis admin I really really hate doing that but it can be done. I'd try seeing if you can get into the job in debug mode (SM50) first and see if you can fix the problem.

Regards,

Michael

0 Kudos

Thanks folks for the timely help.

VG