<br><font size=2 face="sans-serif">Thanks for all the responses to my question.
They are very helpful and gives me an idea of what I can try.</font>
<br>
<br><font size=2 face="sans-serif">The FM </font><font size=2 color=#000080 face="Arial">SAP_WAPI_WORKITEMS_TO_OBJECT</font><font size=2 face="sans-serif">
does seem to be a good solution since I am not raising my own event and
using an SAP</font>
<br><font size=2 face="sans-serif"> supplied event. One question I
have does this only bring back the active workitems?<br>
</font>
<p><font size=1 color=#00008b face="Arial"><b>Lynne M. Allen</b></font><font size=1 face="Arial">
| ERP Workflow Development | Worldwide Information Systems (WWIS) | <br>
Eastman Kodak Company | 343 State Street | Rochester, NY 14650-1221 | </font><font size=1 color=blue face="Arial"><u><br>
</u></font><a href=mailto:lynne.allen@kodak.com><font size=1 color=blue face="Arial"><u>lynne.allen@kodak.com</u></font></a><font size=1 face="Arial">
| 585-724-3556 Office | </font><font size=1 color=blue face="Arial"><u><br>
</u></font><a href=http://www.kodak.com/><font size=1 color=blue face="Arial"><u>www.kodak.com</u></font></a><font size=1 face="Arial">
<br>
</font><img src=cid:_1_063F7548063F6E6C0061ADB5852575C2>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Sue Doughty"
<Sue.Doughty@odfl.com></b> </font>
<br><font size=1 face="sans-serif">Sent by: sap-wug-bounces@mit.edu</font>
<p><font size=1 face="sans-serif">05/21/2009 01:46 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
"SAP Workflow Users' Group" <sap-wug@mit.edu></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">"SAP Workflow Users' Group"
<sap-wug@mit.edu></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">RE: Triggering Events for HR</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 color=#000080 face="Arial">Hi Lynne,</font>
<br><font size=2 color=#000080 face="Arial"> </font>
<br><font size=2 color=#000080 face="Arial">This might not be the best
way to handle this, but here goes. </font>
<br><font size=2 color=#000080 face="Arial"> </font>
<br><font size=2 color=#000080 face="Arial">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.</font>
<br><font size=2 color=#000080 face="Arial"> </font>
<br><font size=2 face="Arial">Regards,</font>
<br><font size=5 color=#008000 face="Monotype Corsiva"><b><i>Sue T. Doughty</i></b></font>
<br><font size=1 color=#000080 face="Arial">SAP Workflow Specialist</font>
<br><font size=1 color=#000080 face="Arial">Old Dominion Freight Line,
Inc.</font>
<br><font size=1 color=#000080 face="Arial">500 Old Dominion Way</font>
<br><font size=1 color=#000080 face="Arial">Thomasville, NC 27360</font>
<br><font size=1 color=#000080 face="Arial">Phone: (336) 822-5189</font>
<br><font size=1 color=#000080 face="Arial">Toll Free (800 ) 432-6335,
ext. 5189</font>
<br><font size=1 color=#000080 face="Arial">Email: </font><a href=mailto:sue.doughty@odfl.com><font size=1 color=blue face="Arial"><u>sue.doughty@odfl.com</u></font></a>
<div align=center>
<br>
<hr></div>
<br><font size=2 face="Tahoma"><b>From:</b> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu]
<b>On Behalf Of </b>lynne.allen@kodak.com<b><br>
Sent:</b> Thursday, May 21, 2009 11:54 AM<b><br>
To:</b> sap-wug@mit.edu<b><br>
Subject:</b> Triggering Events for HR</font>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=2 face="sans-serif"><br>
This is a very basic question....</font><font size=3 face="Times New Roman">
</font><font size=2 face="sans-serif"><br>
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. <br>
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.</font><font size=3 face="Times New Roman">
</font><font size=2 face="sans-serif"><br>
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?</font><font size=3 face="Times New Roman"> <br>
<br>
</font><font size=2 face="sans-serif"><br>
</font>
<p><font size=1 color=#00008b face="Arial"><b>Lynne M. Allen</b></font><font size=1 face="Arial">
| ERP Workflow Development | Worldwide Information Systems (WWIS) | <br>
Eastman Kodak Company | 343 State Street | Rochester, NY 14650-1221 | </font><font size=3 color=blue face="Times New Roman"><u><br>
</u></font><a href=mailto:lynne.allen@kodak.com><font size=1 color=blue face="Arial"><u>lynne.allen@kodak.com</u></font></a><font size=1 face="Arial">
| 585-724-3556 Office | </font><font size=3 color=blue face="Times New Roman"><u><br>
</u></font><a href=http://www.kodak.com/><font size=1 color=blue face="Arial"><u>www.kodak.com</u></font></a><font size=1 face="Arial">
</font><font size=3 face="Times New Roman"><br>
</font><img src=cid:_1_05D3B7B005D3ADB40061ADB5852575C2><font size=2><tt>_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
</tt></font>
<p>