cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with SAP_WAPI_WORKITEM_COMPLETE

former_member113010
Discoverer
0 Kudos

We have a workitem with an object type of EXTSRV. We are trying to call function

SAP_WAPI_WORKITEM_COMPLETE from web dynpro to get the workitem to complete. It doesn't work. We can't even get the function to work from SE37. We are passing the workitem ID and the agent. The workitem is in a status of "in process". We get a message back that the "function was carried out" but the workitem doesn't complete. The workflow log says that it is processed but it doesn't trigger the terminating event completed. Do we need to pass something in the container? Is there another function we should be using instead?

When we run function SAP_WAPI_RESERVE_WORKITEM that puts the workitem in a reserved status. We can also run function SAP_WAPI_WRITE_CONTAINER to update the container successfully.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member113010
Discoverer
0 Kudos

Changed from object EXTSRV to my own object and the function worked fine.

bhakti2
Active Participant
0 Kudos

hi Bob,

thanks a lot for your useful post

I am facing the same problem . When I force complete the workitem it does get completed but the workflow goes into error saying

Error when defining successor for node

kindly help

thanks

b