How to use CX_BO_ACTION_CANCELLED with FM POPUP_TO_DECIDE_LIST ?
Mike Pokraka
wug at workflowconnections.com
Thu Oct 17 07:02:25 EDT 2013
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-0001.htm
More information about the SAP-WUG
mailing list