Checking for duplicate WFs for an Applicant object

Sue Doughty Sue.Doughty at odfl.com
Thu Oct 19 15:25:46 EDT 2006


I did this (clicking the debug tools), but don't know how to debug.  It
just shows me the event trace.  Is there a way to see it going through
the check module code?

 

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

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Alon Raskin
Sent: Thursday, October 19, 2006 2:44 PM
To: SAP Workflow Users' Group
Subject: RE: Checking for duplicate WFs for an Applicant object

 

raise the event in Tx SWUE and debug...

 

 

 

________________________________

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

I implemented this as a Check function module.  When I test the actual
function module, it raises an exception when it should.  But, after I
update SWETYPV with the check function module and then I create the
event, the check function module does not have any errors and the
workflow is started.

 

Any one have any advice?

 

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

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Alon Raskin
Sent: Thursday, October 19, 2006 10:07 AM
To: SAP Workflow Users' Group
Subject: RE: Checking for duplicate WFs for an Applicant object

 

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 --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20061019/714d4275/attachment.htm


More information about the SAP-WUG mailing list