Terminating events for created objects

Flavio Oliveira oliveiraflavio at hotmail.com
Tue Dec 10 08:54:56 EST 2002


As I have an approval process after the creation, I need to terminate the
task... so I will try to use the Function Module...
 
Thank you all for the help.
 
 
Flavio.
 
 
 
 
>From: "Dart, Jocelyn" <jocelyn.dart at sap.com>
>Reply-To: SAP Workflow Users' Group <SAP-WUG at MITVMA.MIT.EDU>
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Re: Terminating events for created objects
>Date: Tue, 10 Dec 2002 10:37:23 +0100
>
>Hi Flavio,
>Sergey is absolutely correct.  If you really need to terminate the task
>when creating the object outside, you could try adding a receiver type
>function module to the terminating event linkage that compares the details
>in the event container with the details in the work item container
>and then decides which work item will be the receiver.
>Regards,
>         Jocelyn Dart
>Consultant (SRM, EBP, Workflow)
>and co-author of the book
>"Practical Workflow for SAP"
>SAP Australia
>email: jocelyn.dart at sap.com
>phone: +61 412 390 267
>fax:   +61 2 9935 4880
>
>
>
>
>
>-----Original Message-----
>From: Breslavets, Sergey [mailto:Sergey.Breslavets at anheuser-busch.com]
>Sent: Tuesday, 10 December 2002 6:21 AM
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Re: Terminating events for created objects
>
>
>Hi Flavio,
>
>you're absolutely right - your task is not terminated because you're
>creating a
>new object outside of the workflow.
>
>When the asynchronous task creates a new object instance, instance linkage
>is
>setup for the workitem id, object key field is left blank (it's not known
>yet).
>Therefore, when you create the object outside of the workflow, workitem id
>is
>not passed to the event manager, and it does not know what
>workitem/workflow it
>relates to.
>
>e.g.: if you have two workitems from two separate instances of your
>workflow in
>your inbox, and you've created document using FK01... which workitem should
>be
>terminated?
>
>Regards,
>Sergey
>
>
>-----Original Message-----
>From: Flavio Oliveira [mailto:oliveiraflavio at hotmail.com]
>Sent: Monday, December 09, 2002 12:17 PM
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Terminating events for created objects
>
>
>Hi all:
>
>I have an asynchronous task that creates an object (Vendor master data -
>Financial view). If I run my task from workflow (executing the message),
>the
>event generated (because of the vendor creation) is terminating my task
>correctly (what I was expecting)...
>
>The problem is when I create the object outside workflow (directly via the
>transaction FK01). When I do this, the event is raised correctly, but my
>task is not terminated. What can be wrong??
>
>I think that this is because I am creating a new object and not updating
>one, but I am not sure.
>
>Is there anything to be done??
>
>Thanks for the help.
>
>Flavio.
>
>
>
>_________________________________________________________________
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
 
 
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 


More information about the SAP-WUG mailing list