How to use CX_BO_ACTION_CANCELLED with FM POPUP_TO_DECIDE_LIST ?

stephane s.bailleul at free.fr
Tue Oct 8 03:58:03 EDT 2013


Dear All, 

I am currently moving a BOR based workflow to ABAP OO workflow.
There is a step inside this workflow where the users have to make a
choice [using FM  POPUP_TO_DECIDE_LIST], however if they don't want to
do it at this moment, they can cancel the action.
The function module returns the answer 'A' at this moment. In the BOR
this answer was processed with the exit_cancelled macro, so the workitem
was not leaving the inbox of the user.

In ABAP OO, the exit_cancelled macro can not be used. 
I want to use the exception CX_BO_ACTION_CANCELLED but it needs a return
parameter and for the POPUP_TO_DECIDE_LIST function module I already
need to export the choice from the user to the workflow container... so
adding a return parameter is ... impossible .

I have read the following thread on SDN:
http://scn.sap.com/thread/3167431
At the end there is a small resume and I would like to know if my only
option is to go for step 3 ? WHich is =>

3.If the logic is written in a class method, 2nd option:-

  a) Make the task as asynchronous & specify the terminating events
  b) Terminating events appear as outcomes in the workflow step
  c) If user clicks Cancel/exit, no terminating events are raised, so
the workitem stays in the user
     inbox.

I would I liked to avoid the terminating event, so please tell me if you
know of any other option.

Best regards
Stephane



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20131008/1708c103/attachment.htm


More information about the SAP-WUG mailing list