Skip to Content

Background workitem stuck with READY status

Hi,

I have JUST one activity step which runs a background method to fetch a value.

now I am testing the Workflow directly by passing the PO as instance-object.

WF on reaching this background method, workitem is created which is stuck at status 'READY'.

Now there is no dump in ST22, this method doesnt update any table nothing.

If I run the BOR method thru SWO1, it fetches the value perfect.

What could be the reason that its stuck with this status?

Thanks,

Aditya V

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Feb 07, 2017 at 04:26 PM

    Hi,

    How are you testing your workflow? Is it started from an event? Also make sure that it is a background job and not a dialog workitem (can you execute it from SWIA).

    Kind regards, Rob Dielemans

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 08, 2017 at 06:11 AM

    hi Rob,

    thanks for reply.

    I just tested it thru SWUS (not from an event). its a very normal WF with just 1 step which is set background (not dialog).

    I ran it in SWIA (manually) and it logically deleted.

    Has this something to do with tRFC?

    Aditya V

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      Sometimes user parameters are used to influence behaviour of methods/function modules.

      compare your user with the Wf-batch user. What does the method do? For instance if it sends an email and it wants to use the sy-uname as sender and your batch user doesn't have an email maintained in SU01 then it won't work ofcourse.

      Kind regards, Rob Dielemans

  • Feb 10, 2017 at 08:57 AM

    Hi,

    Check the role of WF_user . Do it has proper authorization profile.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 13, 2017 at 12:32 PM

    Hi,

    its related to tRFC issue, workaround found, by running the LUW for workflow tRFC.

    Thanks,

    Aditya V

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 13, 2017 at 06:35 PM

    Please double-check the definition of the background task. If it is sitting in the READY status, it might be related to how the task has been defined.

    Add comment
    10|10000 characters needed characters exceeded