Application Development and Automation 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: 
Read only

Kill background process

Former Member
0 Likes
1,357

Hi Experts,

I have requirement where I need to find out by writing a program, whether XYZ background job is running for more than 600 Secs. If any, I need to kill that background process.

Any idea how to achieve this ?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
842

If you are looking for background job, you could analyze table TBTCO for records with status 'R'. then compare STRTDATE and STRTTIME to current date time, then use BP_JOB_ABORT to cancel active job.

(More complex you could select actual background process via system-functions, debug and SM30 on SM50...)

Regards,

Raymond

2 REPLIES 2
Read only

Former Member
0 Likes
842

Hi,

Transaction SM50 is of no use?

Regards,

Ernesto.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
843

If you are looking for background job, you could analyze table TBTCO for records with status 'R'. then compare STRTDATE and STRTTIME to current date time, then use BP_JOB_ABORT to cancel active job.

(More complex you could select actual background process via system-functions, debug and SM30 on SM50...)

Regards,

Raymond