Skip to Content
avatar image
Former Member

Automatic replacement of Work Items

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 02, 2016 at 02:01 PM

    Hi,

    Try if SAP_WAPI_PUT_BACK_WORKITEM will work in your scenario.

    Kind regards, Rob Dielemans

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 05, 2016 at 11:07 AM

    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"...

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 07, 2016 at 03:11 PM

    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".

    Add comment
    10|10000 characters needed characters exceeded