Checking for duplicate WFs for an Applicant object

Alon Raskin araskin at 3i-consulting.com
Thu Oct 19 10:06:35 EDT 2006


Hi Sue,
 
Use Function Module SAP_WAPI_WORKITEMS_TO_OBJECT. I haven't used it but I think it will do the trick.
 
To prevent superfluous triggering, you should implement this in a Check Function Module rather then the workflow itself.
 
Alon

________________________________

From: sap-wug-bounces at mit.edu on behalf of Sue Doughty
Sent: Thu 10/19/2006 09:44
To: SAP Workflow Users' Group
Subject: Checking for duplicate WFs for an Applicant object



We are on 4.7, 620.

 

We have a workflow that begins when an Applicant/application is created (via an event).  Our users have a tendency of creating additional applications (which creates additional workflows) when they don't see the first workflow right away.  I want to add a step to the beginning of the Applicant workflow that checks to see if a workflow has already been started (and is active) for an applicant.  If there is already an active workflow, then I'll complete the current workflow.

 

I need to create a method that reads all workflows for the applicant object (like SWI6).  Is there a function module that does this?  What is the best way to determine if a duplicate workflow has been started for an applicant?

 

Any help would be greatly appreciated.

Regards, 

Sue T. Doughty 
SAP Workflow Specialist

OLD DOMINION FREIGHT LINE, INC.

500 Old Dominion Way, Thomasville, NC 27360

Toll Free :(800)432-6335, ext.5189 
Phone :(336)822-5189 Fax :(336)822-5149 
sue.doughty at odfl.com

 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 6359 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20061019/96444cdb/attachment.bin


More information about the SAP-WUG mailing list