‎2007 Jul 05 12:57 PM
Hi ,
There is an terminating event of a task in a workflow builder which is activated .
Can someone please suggest some tcodes from where the terminating events are displayed and can be deactivated .
Also please let me know does the tcode SWETYPV display only triggering events
Thanks
Ankita
‎2007 Jul 06 12:25 PM
Hi Ankita,
The transaction SWETYPV only shows the Triggering Events for a workflow. This has got no check for the terminating events. I am pretty sure on this statement.
Regarding the first question: I am also searching for same, if i get a clue i shall reply.
Thanks,
Goutham
‎2007 Jul 10 8:18 AM
Hi there
Your question is a bit unclear. What do you want to do exactly.
For example say you have defined a task Change sales Order as ASYNCHRONOUS. This means that the workflow task won't complete until you raise a terminating event -- this event will be defined in the workflow.
So say a user OUTSIDE the workflow changes a sales order via VA02 you (or the transaction) needs to set an event SALES ORDER CHANGED.
This can be done via Change docs SWEC (not my favorite way but can be useful), or for a lot of standard SAP business objects via SWE3.
If you are lucky you might find an event already defined in the appropriate business object (look at transaction SWE3 as stated above) in which case just call the method you want to execute when the terminating event is raised by the transaction.
For custom (i.e non SAP standard transactions) you can raise an event quite easily using Function Module SAP_WAPI_CREATE_EVENT.
So when the action occurs that you want to use to terminate the workflow just include that FM in your method in a Business object or class.
Without knowing what you want to do it's a bit hard to be more helpful - if you explain the problem more clearly we can give some code examples.
Cheers
Jimbo
‎2007 Jul 11 12:23 PM
Hi jimbo ,
I just want to de activate a terminating event of a single step standard task ,but i am not able to .
i have removed the event linkage in tcode SWEINST , but still it is activated when checked in SWU0 .
PLzz let me know some tcode or program where in I can <b>de activate a terminating event .</b>.
Thanks
Sheetal
‎2008 Jun 23 3:34 PM
Hello,
You can deactivate the terminating event in the task definition screen PFTC. SAP specifically mentions that you should not deactivate the linkage using SWE3 or SWEISNT.
So, go to PFTC and display the task. Then, under the "Terminating Events" tab, deactivate the linkage. This should take care of it.
Regards,
Abdullah