<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
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>
</BODY>
</HTML>