<!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>
<BR>
Hi Mike, <BR>
<BR>
You are right it is much more simple to use than described on the SCN link I provided.<BR>
No need for the returning parameter, no need for a terminating event, wonderful. <BR>
Thanks for replying I should have made the test before reading the SCN, unfortunately I was in a hurry... But not today so thanks again <BR>
<BR>
Cheers<BR>
Stephane
<BLOCKQUOTE TYPE=CITE>
<PRE>

Message: 3
Date: Thu, 17 Oct 2013 12:02:25 +0100
From: Mike Pokraka &lt;<A HREF="mailto:wug@workflowconnections.com">wug@workflowconnections.com</A>&gt;
Subject: Re: How to use CX_BO_ACTION_CANCELLED with FM
        POPUP_TO_DECIDE_LIST ?
To: &quot;SAP Workflow Users' Group&quot; &lt;<A HREF="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;
Cc: &quot;<A HREF="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&quot; &lt;<A HREF="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;
Message-ID:
        &lt;<A HREF="mailto:3B0B4B8B-F7D2-4A7B-9320-EBB5B73D7417@workflowconnections.com">3B0B4B8B-F7D2-4A7B-9320-EBB5B73D7417@workflowconnections.com</A>&gt;
Content-Type: text/plain; charset=&quot;us-ascii&quot;

Hi Stephane, 

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.

Regards, 
Mike

On 8 Oct 2013, at 08:58, stephane &lt;<A HREF="mailto:s.bailleul@free.fr">s.bailleul@free.fr</A>&gt; wrote:

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: <A HREF="http://scn.sap.com/thread/3167431">http://scn.sap.com/thread/3167431</A>
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;

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

  a) Make the task as asynchronous &amp; 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



_______________________________________________
SAP-WUG mailing list
<A HREF="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A>
<A HREF="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://mailman.mit.edu/pipermail/sap-wug/attachments/20131017/00bfc477/attachment.htm">http://mailman.mit.edu/pipermail/sap-wug/attachments/20131017/00bfc477/attachment.htm</A>

------------------------------

_______________________________________________
SAP-WUG mailing list
<A HREF="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A>
<A HREF="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A>


End of SAP-WUG Digest, Vol 107, Issue 22
****************************************
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>