Skip to Content
0

Automatic replacement of Work Items

Dec 02, 2016 at 01:50 PM

121

avatar image
Former Member

Hello WF experts!

We have a Workitem who calls a Modulpool Dynpro application. Inside of the functionality of the Dynpro, we manage some user-decision buttons, in order to send them back to the WI through TERMINATING EVENTS.

Then, for each of those events, a Workflow brach exist. Now, we want to add a new button inside of the Dynpro, to be able to put the Workitem status(let´s say, after some user checks), back to "READY" (the WI is in "IN PROCESS" status when the user gets it from his inbox).

Initially, we thought about to use function module SAP_WAPI_SET_WORKITEM_STATUS. For that, we programed a Workitem EXIT, but it does not work, it returns that "SAP_WAPI function can not be used in that context".

Our current scenario for that Workitem is as follows:

An ASYNCHRONOUS task, with some TERMINATING EVENTS that we manage from the Dynpro application.

WI calls a Method from a custom ABAP Class (not BOR). Do you have any suggestions of what can be happening or what can WE do to set the WI Status back to "READY" again?

Thanks in advance!

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

3 Answers

Rob Dielemans Dec 02, 2016 at 02:01 PM
0

Hi,

Try if SAP_WAPI_PUT_BACK_WORKITEM will work in your scenario.

Kind regards, Rob Dielemans

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 05, 2016 at 11:07 AM
0

Hi Rob, ok, I will try it. Thank you for your answer!

Currently, I am trying to switch the task as a "SYNCHRONOUS" modus... But when doing, I found that WF, does not react to the previous "Terminating events"...

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 07, 2016 at 03:11 PM
0

Hi,

finally we agreed to look for a workaround about this topic, since we do not see very clear how to adapt the initial requirements...

The Workitem, it is going to set back to "READY" status by doing the standard functionality that is into the Business Workplace (it is, by clicking on the Workitem, press right button, click on "Replace"). In this way, WI goes back to "READY".

Share
10 |10000 characters needed characters left characters exceeded