Skip to Content
author's profile photo
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

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 comment
    10|10000 characters needed characters exceeded

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

    Hi,

    Transaction SM50 is of no use?

    Regards,

    Ernesto.

    Add comment
    10|10000 characters needed characters exceeded