Skip to Content
0

Background workitem stuck with READY status

Feb 07, 2017 at 12:45 PM

508

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

5 Answers

Rob Dielemans Feb 07, 2017 at 04:26 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Aditya Varrier Feb 08, 2017 at 06:11 AM
0

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi,

Please check if the system is correctly set up for using workflow with SWU3, if this is new for you there are blogs on this subject.

Kind regards, Rob Dielemans

0

Hi Rob,

no dumps in ST22, no issues in SWU3, no binding issue.

I happened to check SM58 and I could see that for Workflow_LOCAL_XXX, the status text is 'Transaction recorded'.

Hence I have asked BASIS to check.

Hope it will get resolved from BASIS end.

Aditya V

0

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

0
Anjan Paul Feb 10, 2017 at 08:57 AM
0

Hi,

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

Share
10 |10000 characters needed characters left characters exceeded
Aditya Varrier Feb 13, 2017 at 12:32 PM
0

Hi,

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

Thanks,

Aditya V

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Feb 13, 2017 at 06:35 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded