<br><font size=2 face="sans-serif">Thanks for all the responses to my question.
&nbsp;They are very helpful and gives me an idea of what I can try.</font>
<br>
<br><font size=2 face="sans-serif">The &nbsp;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">&nbsp;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>&quot;Sue Doughty&quot;
&lt;Sue.Doughty@odfl.com&gt;</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>
&quot;SAP Workflow Users' Group&quot; &lt;sap-wug@mit.edu&gt;</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">&quot;SAP Workflow Users' Group&quot;
&lt;sap-wug@mit.edu&gt;</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">&nbsp;</font>
<br><font size=2 color=#000080 face="Arial">This might not be the best
way to handle this, but here goes. &nbsp;</font>
<br><font size=2 color=#000080 face="Arial">&nbsp;</font>
<br><font size=2 color=#000080 face="Arial">I have a workflow for Applicants/Applications
where sometimes multiple workflows will get started. &nbsp;The first step
in that workflow is a method I created that calls SAP_WAPI_WORKITEMS_TO_OBJECT.
&nbsp;I pass in the current Work item ID and look for all active work items
for the business object with the object key. &nbsp;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. &nbsp;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">&nbsp;</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: &nbsp;(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: &nbsp;</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">&nbsp;</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>
 &nbsp; &nbsp;When creating a recurring payment in HR, an SAP event of
CREATED (object recurrpay) &nbsp;is raised for each different wage type
used for an employee. <br>
 &nbsp; &nbsp;For instance, if there are 3 wage types, 3 events are raised
for the SAME employee. &nbsp;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.
&nbsp;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>
 &nbsp; &nbsp;</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>