How to use CX_BO_ACTION_CANCELLED with FM POPUP_TO_DECIDE_LIST ?

stephane s.bailleul at free.fr
Thu Oct 17 08:45:59 EDT 2013


Hi Mike, 

You are right it is much more simple to use than described on the SCN
link I provided.
No need for the returning parameter, no need for a terminating event,
wonderful. 
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 

Cheers
Stephane

> 
> Message: 3
> Date: Thu, 17 Oct 2013 12:02:25 +0100
> From: Mike Pokraka <wug at workflowconnections.com>
> Subject: Re: How to use CX_BO_ACTION_CANCELLED with FM
> 	POPUP_TO_DECIDE_LIST ?
> To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
> Cc: "sap-wug at mit.edu" <sap-wug at mit.edu>
> Message-ID:
> 	<3B0B4B8B-F7D2-4A7B-9320-EBB5B73D7417 at workflowconnections.com>
> Content-Type: text/plain; charset="us-ascii"
> 
> 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 <s.bailleul at free.fr> 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: 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
> 
> 
> 
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20131017/00bfc477/attachment.htm
> 
> ------------------------------
> 
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
> 
> 
> End of SAP-WUG Digest, Vol 107, Issue 22
> ****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20131017/50115914/attachment.htm


More information about the SAP-WUG mailing list