Triggering Events for HR

lynne.allen@kodak.com lynne.allen at kodak.com
Tue May 26 13:46:54 EDT 2009


Thanks for all the responses to my question.  They are very helpful and 
gives me an idea of what I can try.

The  FM SAP_WAPI_WORKITEMS_TO_OBJECT does seem to be a good solution since 
I am not raising my own event and using an SAP
 supplied event. One question I have does this only bring back the active 
workitems?

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 | 585-724-3556 Office | 
www.kodak.com 





"Sue Doughty" <Sue.Doughty at odfl.com> 
Sent by: sap-wug-bounces at mit.edu
05/21/2009 01:46 PM
Please respond to
"SAP Workflow Users' Group" <sap-wug at mit.edu>


To
"SAP Workflow Users' Group" <sap-wug at mit.edu>
cc

Subject
RE: Triggering Events for HR






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 | 585-724-3556 Office | 
www.kodak.com 
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20090526/170dbac6/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 826 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20090526/170dbac6/attachment.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 826 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20090526/170dbac6/attachment-0001.gif


More information about the SAP-WUG mailing list