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

How to find out number of background work processe available in the system?

Hi All,

I have a FM that triggers a background job using JOB_OPEN, ABAP_SUBMIT and JOB_CLOSE. But the problem is if there are no background work processes available at that moment, it does not return error. Not sure whether the job is even scheduled!

Is there a way to find out if there are any background work processes available in the system? I know a FM SPBT_INITIALIZE which gives info about dialog work processes. Is there any other FM similar to this which gives info about background wp??

Regards,

Shailesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Dec 12, 2011 at 06:39 AM

    Check the fm TH_DISPLAY_WORKPROCESS_LIST without providing any input , there is a routine SET_LIST_WPLST which fetches the data . In the output the type BGD indicates the background work process.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 12, 2011 at 06:01 AM

    You can use the table TBTCO Status to determine the status of the Job.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2011 at 06:43 AM

    your Job will remain in a queue by message handler. once workprocess is free, your job gets scheduled

    by the way, you can use the functionality used in FM TH_DISPLAY_WORKPROCESS_LIST to read the workprocesses

    the command which gets you the workprocess is:

    CALL 'ThWpInfo' ID 'OPCODE' FIELD OPCODE_WP_LIST
                      ID 'TAB' FIELD LIST_STATE_WPLST-TABL
                      ID 'CPU' FIELD LIST_STATE_WPLST-CPU.

    check how its written in include LSDEBF01, form SET_LIST_WPLST

    Edited by: Soumyaprakash Mishra on Dec 12, 2011 12:17 PM

    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.