Triggering Events for HR
Sue Doughty
Sue.Doughty at odfl.com
Thu May 21 13:46:35 EDT 2009
Hi Lynne,
This might not be the best way to handle this, but here goes.
I have a workflow for Applicants/Applications where sometimes multiple
workflows will get started. The first step in that workflow is a method
I created that calls SAP_WAPI_WORKITEMS_TO_OBJECT. I pass in the
current Work item ID and look for all active work items for the business
object with the object key. In the method I loop through all the ones
it finds and if the Work Item ID sent into the method does not match
what it found, then I consider it a duplicate workflow and send out a
flag from the method. If the flag = y, I do a process control step to
cancel the current workflow in the next step.
Regards,
Sue T. Doughty
SAP Workflow Specialist
Old Dominion Freight Line, Inc.
500 Old Dominion Way
Thomasville, NC 27360
Phone: (336) 822-5189
Toll Free (800 ) 432-6335, ext. 5189
Email: sue.doughty at odfl.com
________________________________
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of lynne.allen at kodak.com
Sent: Thursday, May 21, 2009 11:54 AM
To: sap-wug at mit.edu
Subject: Triggering Events for HR
This is a very basic question....
When creating a recurring payment in HR, an SAP event of CREATED
(object recurrpay) is raised for each different wage type used for an
employee.
For instance, if there are 3 wage types, 3 events are raised for the
SAME employee. After the creation of the payment and the save key is
hit the event kicks off, so for each payment for the same employee we
are getting 3 events. We do not want to start the WF 3x.
We want to start a workflow ONE time, as long as one payment exists
start the workflow, from there it does not matter how many payments are
entered. Any thoughts on how this can be done without started the
workflow for each time?
Lynne M. Allen | ERP Workflow Development | Worldwide Information
Systems (WWIS) |
Eastman Kodak Company | 343 State Street | Rochester, NY 14650-1221 |
lynne.allen at kodak.com <mailto:lynne.allen at kodak.com> | 585-724-3556
Office |
www.kodak.com <http://www.kodak.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20090521/f2df541d/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 826 bytes
Desc: image001.gif
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20090521/f2df541d/attachment.gif
More information about the SAP-WUG
mailing list