cancel
Showing results for 
Search instead for 
Did you mean: 

Forwarding workitem to different user

12-31-2009 1:06 PM
18746 views 13 comments
0 Likes
SAP Managed Tags
Subscribe

there is a workflow which is in error failed due to agent assignment but we need to forward the workitem to a new user after restarting workitem as the previous user got terminated . Can anyone please suggest how to do that

0 Likes

Accepted Solutions (0)

Answers (9)

Answers (9)

Former Member
0 Likes

this we have achieved by replacing the holder of the position who was a terminate user with the new user and then restartiing the workflow .. thanks all for looking into it

Former Member
0 Likes

Hi,

Please follow the following steps

Copy the Work-item id of the error step

Create a new session & go to se37

Enter the FM u201CSWL_WI_CONTAINER_MANIPULATEu201D & Click on execute button

Enter the work- item id in WI_ID field

Remove the u201CXu201D from the Display field & click on execute button

Enter the missing details like, address string, manager name etc.

.

Use Tcode - SWPR

Give the workitem id of the top node of workflow and date in the creation date field & click on Execute button

Select the concern workflow from the list (with respect to the workflow key)

& click on select the error workflow from the list & click on button

Go to workflow log and check for the last work item id.

Create a new session & use Tcode u2013 SWIA

Copy the paste the last workitem id you just got & click on Execute button

click on forwarding button, one pop up screen opens.

Enter the user & press enter key. (a success message will be displayed)

Open the new session & use se37 (for confirmation)

Execute the FM u201CRH_LOCAL_INBOX_GETu201D

Enter the USER_ID, LANGUAGE

Click on Execute button.

you should now see the workitem in users inbox.

Many Thanks!

Ritin

Edited by: Ritin Jain on Jan 12, 2010 1:00 PM

Former Member
0 Likes

I guess i was unable to explain you my problem A workitem was scheduled to go to a user via a rule . That rule is determining the user . But the workitem is not with that user as the workflow went to error in that step because the user was not maintained in infotype 105 . But now the user has been terminated . Now the workitem needs to be routed to a new user but the workflow is still in error . While trying to restart the workflow , the workflow is trying to route it to that terminated user and it is failing . So what can we do for it .

i tried manually replacing the workitem and then forwarding it . but it gave me a message that the workitem is in completed state . I took the Workitem id or the instance of that task only .

please suggest .

Former Member
0 Likes

Hi Thirtankar,

Try changing the value in the agent container manually using the function module

SAP_WAPI_WRITE_CONTAINER.

After doing this try restarting the workflow using SWPR transaction.

Hope it helps.

Regards,

Raj

Former Member
0 Likes

do we need to maintain the deleted user in the infotype and then from his user id do we need to forward the workitem

Former Member
0 Likes

Hi Tirthankar,

It actually works. I think you have passed the workflow id. Expand all the nodes in the workflow log and then click on the step which is gone in error.

Then pass that workitem ID.

Try forwarding it. It works.

Hope it helps.

Regards,

Raj

Former Member
0 Likes

no sir it is not working

Former Member
0 Likes

tried but didnot work as it said cannot execute a completed workitem but actually workitem is in error

bpawanchand
Active Contributor
0 Likes

From workflow log get the actual workitem which is going to error state and from swia replace the workitem (SHIFT + CTRL + 0)which is going into error state. and then try to forward the workitem by using shift + f12.

Former Member
0 Likes

thanks but even after restarting its going into error as the previous employee got terminated and he cannot be placed in it new user we are not getting

Former Member
0 Likes

Hi,

Go to SWIA tcode. Enter the workitem no. Execute. Click on the admin forward icon. Enter the username to whom you want to forward the workitem.

This you can do even without restarting your workflow, i mean you can forward the error workitem as well.

I just tried the same in my system and it worked.

Hope it helps you as well.

All the best and wish you a very happy new year. (hope moderators won't mind it.)

Regards,

Raj

Former Member
0 Likes

Hi,

How the agent was determined earlier. Was is done using some rule?

because i believe even if you restart, the workflow will again go into error as the agent determination failed.

If its done through rule, see if you can use SWI1_RULE.

Or see if you can use the tcode SWI2_ADM1 / SWI2_ADM2 to get the workitems with deleted agents.

you can forward WI via SWIA tcode or by using the fm SWW_WI_FORWARD.

Hope it helps.

Regards,

Raj

Edited by: Raj Karunanidhi on Dec 31, 2009 5:56 PM

bpawanchand
Active Contributor
0 Likes

You can use the txn SWPR from which you can restart the error workitems....