Cancelling the previous workitem

Kjetil Kilhavn KJETILK at statoil.com
Thu Jun 2 05:51:13 EDT 2005


It's a bit late I guess, but I would recommend using a check function instead. Then you prevent starting the second instance by looking for existing workflows related to your purchase order (function SAP_WAPI_WORKITEMS_TO_OBJECT). 
 
The fewer workflows started, the better - unless your salary depends on the number of started workflows.
-- 
Kjetil Kilhavn, Statoil KTJ IT BKS
 


________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Amit Moghe
Sent: 2. juni 2005 10:32
To: sap-wug at mit.edu
Subject: AW: Cancelling the previous workitem



Hi Michael,

  Thanks a lot for the help. It works perfectly...  

Regards,
Amit

--------
  Hi Amit,

  You can built a parallel processing in Your workflow, which ends,  
  if one of the both branches is completed. One branch includes Your 
  current workflow and the other consits of a Wait Step , which waits 
  for the event 'CHANGED' of BUS2012.


  Best regards
  Michael Ludwig
  rku.it GmbH

     -----Ursprüngliche Nachricht-----
     Von: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] Im Auftrag von Amit Moghe
     Gesendet: Donnerstag, 2. Juni 2005 08:34
     An: sap-wug at mit.edu
     Cc: amitpmoghe at rediffmail.com
     Betreff: Cancelling the previous workitem
     
     

     Hi Workflow Gurus,
     
     I am new to workflow and need some help.
     
     I have a workflow for which I am using 'CHANGED' event of the business object BUS2012 (Purchase Order) as the triggering event. When a user changes a particular PO, this workflow starts. But before it is completed if there is another change to the same PO, then, one more workitem is started.
     
     My requirement is that if there is change to the PO, then, it should delete the previous workitem and start a new workitem. Can you please advise me as to how this can be achieved?
     
     Thanks in advance.
     
     Regards,
     Amit




-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20050602/a30b2ed1/attachment.htm


More information about the SAP-WUG mailing list