cancel
Showing results for 
Search instead for 
Did you mean: 

Forwarding 'Wait Step'work items using SWIA

Former Member
0 Kudos

Hi,

I need to forward work items of one user A to another user B urgently, using SWIA.

The work items are in executed state. This is after a fork step in the workflow, where the executed work item is one branch of the fork.

As these items are executed, we will have to forward the work items that are in ready state.

The work item for the other branch of the fork is in ready state. However this is a wait step, and hence I am not able to forward this item.

Kindly advise as to how should I forward these items.

Best Regards,

Smruthi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can not forward the 'Wait for Event' workitem. You can you only forward the dialog workitem.

As the dialog workitem is in executed status...

First set the status in 'READY through Tcode SWIA.

Run the tocde SWIA..

Enter workitem id and then press F8.

Now select workitems...

Click on button "Replace Manually" button.

Workitem will be in 'READY' status.

Then forward to desired person.

Thanks and regards,

SNJY

Former Member
0 Kudos

Hi Sanjay,

Thank you for your guidance.

I did exactly as you told, and my issue is resolved now.

Best Regards,

Smruthi Acharya

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Smruthi,

Dont confuse with the wait for events and dialog work item. There is no direct link between the wait for events and the work item.

Only dialog work items needs the user action and dialog work item's only can be forwarded to other user's.

For this, the work item should have the status of 'Ready'. If the work item has the status 'In process' that means, the user opened the work item and still he didnt take ant action on it.

In this case, using SWIA you can manually change the status as 'Ready' and then you can forward the work item to the other user's.

To forward the work item use the function module 'SAP_WAPI_FORWARD_WORKITEM' or use the SWIA transaction.

Thanks,

Viji.