<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Stephane,&nbsp;</div><div><br></div><div>No terminating events necessary. I don't know what you mean that the exception needs a parameter? If the FM returns 'A' the just raise the exception and it stays in the inbox.</div><div><br></div><div>Regards,&nbsp;</div><div>Mike</div><div><br>On 8 Oct 2013, at 08:58, stephane &lt;<a href="mailto:s.bailleul@free.fr">s.bailleul@free.fr</a>&gt; wrote:<br><br></div><div>


  <meta http-equiv="Content-Type" content="text/html; CHARSET=UTF-8">
  <meta name="GENERATOR" content="GtkHTML/3.30.3">


Dear All, <br>
<br>
I am currently moving a BOR based workflow to ABAP OO workflow.<br>
There is a step inside this workflow where the users have to make a choice [using FM&nbsp; POPUP_TO_DECIDE_LIST], however if they don't want to do it at this moment, they can cancel the action.<br>
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.<br>
<br>
In ABAP OO, the exit_cancelled macro can not be used. <br>
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 .<br>
<br>
I have read the following thread on SDN: <a href="http://scn.sap.com/thread/3167431">http://scn.sap.com/thread/3167431</a><br>
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 =&gt;<br>
<br>
3.If the logic is written in a class method, 2nd option:-<br>
<br>
&nbsp; a) Make the task as asynchronous &amp; specify the terminating events<br>
&nbsp; b) Terminating events appear as outcomes in the workflow step<br>
&nbsp; c) If user clicks Cancel/exit, no terminating events are raised, so the workitem stays in the user<br>
&nbsp;&nbsp;&nbsp;&nbsp; inbox.<br>
<br>
I would I liked to avoid the terminating event, so please tell me if you know of any other option.<br>
<br>
Best regards<br>
Stephane<br>
<br>
<br>
<br>


</div><div><span>_______________________________________________</span><br><span>SAP-WUG mailing list</span><br><span><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a></span><br><span><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a></span><br></div></body></html>