Skip to Content
author's profile photo Former Member
Former Member

Kill background process

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 ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on May 05, 2011 at 02:33 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 05, 2011 at 02:19 PM

    Hi,

    Transaction SM50 is of no use?

    Regards,

    Ernesto.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.