<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi</DIV>
<DIV>&nbsp;</DIV>
<DIV>You get the Completed instance also if you select the SELECTION_STATUS_VARIANT as 0000. By default it is 0001.</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>Thanks<BR><BR>Arghadip Kar<BR><BR>SAP Workflow Expert<BR><BR>IBM INDIA<BR><BR>--- On <B>Wed, 5/27/09, sap-wug-request@mit.edu <I>&lt;sap-wug-request@mit.edu&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: sap-wug-request@mit.edu &lt;sap-wug-request@mit.edu&gt;<BR>Subject: SAP-WUG Digest, Vol 54, Issue 31<BR>To: sap-wug@mit.edu<BR>Date: Wednesday, May 27, 2009, 12:14 AM<BR><BR>
<DIV class=plainMail>Send SAP-WUG mailing list submissions to<BR>&nbsp;&nbsp;&nbsp; <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A><BR><BR>To subscribe or unsubscribe via the World Wide Web, visit<BR>&nbsp;&nbsp;&nbsp; <A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR>or, via email, send a message with subject or body 'help' to<BR>&nbsp;&nbsp;&nbsp; <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug-request@mit.edu" ymailto="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</A><BR><BR>You can reach the person managing the list at<BR>&nbsp;&nbsp;&nbsp; <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug-owner@mit.edu" ymailto="mailto:sap-wug-owner@mit.edu">sap-wug-owner@mit.edu</A><BR><BR>When replying, please edit your Subject line so it is more specific<BR>than "Re: Contents
 of SAP-WUG digest..."<BR><BR><BR>Today's Topics:<BR><BR>&nbsp;&nbsp;&nbsp;1. RE: Triggering Events for HR (<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=lynne.allen@kodak.com" ymailto="mailto:lynne.allen@kodak.com">lynne.allen@kodak.com</A>)<BR>&nbsp;&nbsp;&nbsp;2. RE: Triggering Events for HR (Sue Doughty)<BR><BR><BR>----------------------------------------------------------------------<BR><BR>Message: 1<BR>Date: Tue, 26 May 2009 13:46:54 -0400<BR>From: <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=lynne.allen@kodak.com" ymailto="mailto:lynne.allen@kodak.com">lynne.allen@kodak.com</A><BR>Subject: RE: Triggering Events for HR<BR>To: "SAP Workflow Users' Group" &lt;<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp; &lt;<A
 href="http://us.mc503.mail.yahoo.com/mc/compose?to=OFE1C3B571.1477687B-ON852575C2.005FECBE-852575C2.0061ADBC@knotes.kodak.com" ymailto="mailto:OFE1C3B571.1477687B-ON852575C2.005FECBE-852575C2.0061ADBC@knotes.kodak.com">OFE1C3B571.1477687B-ON852575C2.005FECBE-852575C2.0061ADBC@knotes.kodak.com</A>&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>Content-Type: text/plain; charset="us-ascii"<BR><BR>Thanks for all the responses to my question.&nbsp; They are very helpful and <BR>gives me an idea of what I can try.<BR><BR>The&nbsp; FM SAP_WAPI_WORKITEMS_TO_OBJECT does seem to be a good solution since <BR>I am not raising my own event and using an SAP<BR>supplied event. One question I have does this only bring back the active <BR>workitems?<BR><BR>Lynne M. Allen | ERP Workflow Development | Worldwide Information Systems <BR>(WWIS) | <BR>Eastman Kodak Company | 343 State Street | Rochester, NY 14650-1221 | <BR><A
 href="http://us.mc503.mail.yahoo.com/mc/compose?to=lynne.allen@kodak.com" ymailto="mailto:lynne.allen@kodak.com">lynne.allen@kodak.com</A> | 585-724-3556 Office | <BR>www.kodak.com <BR><BR><BR><BR><BR><BR>"Sue Doughty" &lt;<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=Sue.Doughty@odfl.com" ymailto="mailto:Sue.Doughty@odfl.com">Sue.Doughty@odfl.com</A>&gt; <BR>Sent by: <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A><BR>05/21/2009 01:46 PM<BR>Please respond to<BR>"SAP Workflow Users' Group" &lt;<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR><BR><BR>To<BR>"SAP Workflow Users' Group" &lt;<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>cc<BR><BR>Subject<BR>RE: Triggering Events for
 HR<BR><BR><BR><BR><BR><BR><BR>Hi Lynne,<BR><BR>This might not be the best way to handle this, but here goes. <BR><BR>I have a workflow for Applicants/Applications where sometimes multiple <BR>workflows will get started.&nbsp; The first step in that workflow is a method I <BR>created that calls SAP_WAPI_WORKITEMS_TO_OBJECT.&nbsp; I pass in the current <BR>Work item ID and look for all active work items for the business object <BR>with the object key.&nbsp; In the method I loop through all the ones it finds <BR>and if the Work Item ID sent into the method does not match what it found, <BR>then I consider it a duplicate workflow and send out a flag from the <BR>method.&nbsp; If the flag = y, I do a process control step to cancel the <BR>current workflow in the next step.<BR><BR>Regards,<BR>Sue T. Doughty<BR>SAP Workflow Specialist<BR>Old Dominion Freight Line, Inc.<BR>500 Old Dominion Way<BR>Thomasville, NC 27360<BR>Phone:&nbsp; (336) 822-5189<BR>Toll Free
 (800 ) 432-6335, ext. 5189<BR>Email:&nbsp; <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sue.doughty@odfl.com" ymailto="mailto:sue.doughty@odfl.com">sue.doughty@odfl.com</A><BR><BR>From: <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A> [mailto:<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A>] On Behalf <BR>Of <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=lynne.allen@kodak.com" ymailto="mailto:lynne.allen@kodak.com">lynne.allen@kodak.com</A><BR>Sent: Thursday, May 21, 2009 11:54 AM<BR>To: <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A><BR>Subject: Triggering Events for HR<BR><BR><BR>This is a very basic question.... <BR>&nbsp; &nbsp; When creating a recurring payment in
 HR, an SAP event of CREATED <BR>(object recurrpay)&nbsp; is raised for each different wage type used for an <BR>employee. <BR>&nbsp; &nbsp; For instance, if there are 3 wage types, 3 events are raised for the <BR>SAME employee.&nbsp; After the creation of the payment and the save key is hit <BR>the event kicks off, so for each payment for the same employee we are <BR>getting 3 events. We do not want to start the WF 3x. <BR>We want to start a workflow ONE time, as long as one payment exists start <BR>the workflow, from there it does not matter how many payments are entered. <BR>Any thoughts on how this can be done without started the workflow for <BR>each time? <BR><BR><BR><BR>Lynne M. Allen | ERP Workflow Development | Worldwide Information Systems <BR>(WWIS) | <BR>Eastman Kodak Company | 343 State Street | Rochester, NY 14650-1221 | <BR><A href="http://us.mc503.mail.yahoo.com/mc/compose?to=lynne.allen@kodak.com"
 ymailto="mailto:lynne.allen@kodak.com">lynne.allen@kodak.com</A> | 585-724-3556 Office | <BR>www.kodak.com <BR>_______________________________________________<BR>SAP-WUG mailing list<BR><A href="http://us.mc503.mail.yahoo.com/mc/compose?to=SAP-WUG@mit.edu" ymailto="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: <A href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20090526/170dbac6/attachment-0001.htm" target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20090526/170dbac6/attachment-0001.htm</A><BR>-------------- next part --------------<BR>A non-text attachment was scrubbed...<BR>Name: not available<BR>Type: image/gif<BR>Size: 826 bytes<BR>Desc: not available<BR>Url : <A
 href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20090526/170dbac6/attachment-0002.gif" target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20090526/170dbac6/attachment-0002.gif</A><BR>-------------- next part --------------<BR>A non-text attachment was scrubbed...<BR>Name: not available<BR>Type: image/gif<BR>Size: 826 bytes<BR>Desc: not available<BR>Url : <A href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20090526/170dbac6/attachment-0003.gif" target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20090526/170dbac6/attachment-0003.gif</A><BR><BR>------------------------------<BR><BR>Message: 2<BR>Date: Tue, 26 May 2009 14:43:42 -0400<BR>From: "Sue Doughty" &lt;<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=Sue.Doughty@odfl.com" ymailto="mailto:Sue.Doughty@odfl.com">Sue.Doughty@odfl.com</A>&gt;<BR>Subject: RE: Triggering Events for HR<BR>To: "SAP Workflow Users' Group" &lt;<A
 href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp; &lt;<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=082C942F46528B44B5463D3C2A1FF0F41C06A1B7@corp-m-exch2.corp.odfl.com" ymailto="mailto:082C942F46528B44B5463D3C2A1FF0F41C06A1B7@corp-m-exch2.corp.odfl.com">082C942F46528B44B5463D3C2A1FF0F41C06A1B7@corp-m-exch2.corp.odfl.com</A>&gt;<BR>Content-Type: text/plain; charset="us-ascii"<BR><BR>Lynne,<BR><BR><BR><BR>Yes.&nbsp; Below is the code that I use in my method and I get only active<BR>workflows.&nbsp; Make sure that you loop the worklist[] and exclude the<BR>current workflow ID when looking for duplicates.<BR><BR><BR><BR>SWC_GET_ELEMENT CONTAINER 'CURRENTWIID' CURRENTWIID.<BR><BR>SWC_GET_ELEMENT CONTAINER 'WFTASKID' WFTASKID.&nbsp; &nbsp; &nbsp; (Current Workflow<BR>Name - WS########)<BR><BR><BR><BR>I_OBJTYPE = 'APPLICANT'.&nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<BR><BR>I_OBJKEY = OBJECT-KEY-APPLICANTNUMBER.<BR><BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR><BR>call function 'SAP_WAPI_WORKITEMS_TO_OBJECT' <BR><BR>&nbsp; EXPORTING&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR><BR>&nbsp; &nbsp; objtype&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = I_OBJTYPE&nbsp; &nbsp;&nbsp;&nbsp;<BR><BR>&nbsp; &nbsp; objkey&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;= I_OBJKEY&nbsp; &nbsp; &nbsp; <BR><BR>&nbsp; &nbsp; top_level_items&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 'X'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<BR><BR>&nbsp; &nbsp; selection_status_variant = '0001'&nbsp; &nbsp; &nbsp; &nbsp; <BR><BR>&nbsp; &nbsp;
 output_only_top_level&nbsp; &nbsp; = 'X'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<BR><BR>&nbsp; TABLES&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<BR><BR>&nbsp; &nbsp; worklist&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;= worklist[].&nbsp;&nbsp;&nbsp;<BR><BR><BR><BR>ACTIVE_WF_FOUND = 'N'.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<BR><BR>IF worklist[] IS INITIAL.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR><BR>ELSE.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR><BR>&nbsp; LOOP AT WORKLIST.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR><BR>&nbsp; &nbsp; IF WORKLIST-WI_ID = CURRENTWIID.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<BR><BR>&nbsp; &nbsp; &nbsp; ACTIVE_WF_FOUND = 'N'.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<BR><BR>&nbsp; &nbsp; else.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR><BR>&nbsp; &nbsp; &nbsp; IF WORKLIST-WI_RH_TASK EQ WFTASKID.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; ACTIVE_WF_FOUND = 'Y'.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<BR><BR>&nbsp; &nbsp; &nbsp; &nbsp;
 DUPLICATEWIID = WORKLIST-WI_ID.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; DUPLICATETASKID = WORKLIST-WI_RH_TASK.&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; EXIT.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR><BR>&nbsp; &nbsp; &nbsp; endif.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<BR><BR>&nbsp; &nbsp; endif.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<BR><BR>&nbsp; ENDLOOP.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<BR><BR><BR><BR>Regards,<BR><BR>Sue T.
 Doughty<BR><BR>SAP Workflow Specialist<BR><BR>Old Dominion Freight Line, Inc.<BR><BR>500 Old Dominion Way<BR><BR>Thomasville, NC 27360<BR><BR>Phone:&nbsp; (336) 822-5189<BR><BR>Toll Free (800 ) 432-6335, ext. 5189<BR><BR>Email:&nbsp; <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sue.doughty@odfl.com" ymailto="mailto:sue.doughty@odfl.com">sue.doughty@odfl.com</A><BR><BR>________________________________<BR><BR>From: <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A> [mailto:<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A>] On Behalf<BR>Of <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=lynne.allen@kodak.com" ymailto="mailto:lynne.allen@kodak.com">lynne.allen@kodak.com</A><BR>Sent: Tuesday, May 26, 2009 1:47 PM<BR>To: SAP Workflow Users'
 Group<BR>Subject: RE: Triggering Events for HR<BR><BR><BR><BR><BR>Thanks for all the responses to my question.&nbsp; They are very helpful and<BR>gives me an idea of what I can try. <BR><BR>The&nbsp; FM SAP_WAPI_WORKITEMS_TO_OBJECT does seem to be a good solution<BR>since I am not raising my own event and using an SAP <BR>supplied event. One question I have does this only bring back the<BR>active workitems?<BR><BR>Lynne M. Allen | ERP Workflow Development | Worldwide Information<BR>Systems (WWIS) | <BR>Eastman Kodak Company | 343 State Street | Rochester, NY 14650-1221 | <BR><A href="http://us.mc503.mail.yahoo.com/mc/compose?to=lynne.allen@kodak.com" ymailto="mailto:lynne.allen@kodak.com">lynne.allen@kodak.com</A> &lt;mailto:<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=lynne.allen@kodak.com" ymailto="mailto:lynne.allen@kodak.com">lynne.allen@kodak.com</A>&gt;&nbsp; | 585-724-3556<BR>Office | <BR>www.kodak.com &lt;<A href="http://www.kodak.com/"
 target=_blank>http://www.kodak.com/</A>&gt;&nbsp; <BR><BR><BR><BR><BR><BR><BR>"Sue Doughty" &lt;<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=Sue.Doughty@odfl.com" ymailto="mailto:Sue.Doughty@odfl.com">Sue.Doughty@odfl.com</A>&gt; <BR>Sent by: <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A> <BR><BR>05/21/2009 01:46 PM <BR><BR>Please respond to<BR>"SAP Workflow Users' Group" &lt;<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR><BR>To<BR><BR>"SAP Workflow Users' Group" &lt;<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt; <BR><BR>cc<BR><BR><BR><BR>Subject<BR><BR>RE: Triggering Events for HR<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>Hi Lynne, <BR>&nbsp; <BR>This might not be the best way to
 handle this, but here goes.&nbsp;&nbsp;&nbsp;<BR>&nbsp; <BR>I have a workflow for Applicants/Applications where sometimes multiple<BR>workflows will get started.&nbsp; The first step in that workflow is a method<BR>I created that calls SAP_WAPI_WORKITEMS_TO_OBJECT.&nbsp; I pass in the<BR>current Work item ID and look for all active work items for the business<BR>object with the object key.&nbsp; In the method I loop through all the ones<BR>it finds and if the Work Item ID sent into the method does not match<BR>what it found, then I consider it a duplicate workflow and send out a<BR>flag from the method.&nbsp; If the flag = y, I do a process control step to<BR>cancel the current workflow in the next step. <BR>&nbsp; <BR>Regards, <BR>Sue T. Doughty <BR>SAP Workflow Specialist <BR>Old Dominion Freight Line, Inc. <BR>500 Old Dominion Way <BR>Thomasville, NC 27360 <BR>Phone:&nbsp; (336) 822-5189 <BR>Toll Free (800 ) 432-6335, ext. 5189 <BR>Email:&nbsp; <A
 href="http://us.mc503.mail.yahoo.com/mc/compose?to=sue.doughty@odfl.com" ymailto="mailto:sue.doughty@odfl.com">sue.doughty@odfl.com</A> &lt;mailto:<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sue.doughty@odfl.com" ymailto="mailto:sue.doughty@odfl.com">sue.doughty@odfl.com</A>&gt;&nbsp; <BR><BR><BR><BR>________________________________<BR><BR><BR>From: <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A> [mailto:<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A>] On Behalf<BR>Of <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=lynne.allen@kodak.com" ymailto="mailto:lynne.allen@kodak.com">lynne.allen@kodak.com</A><BR>Sent: Thursday, May 21, 2009 11:54 AM<BR>To: <A href="http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug@mit.edu"
 ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A><BR>Subject: Triggering Events for HR <BR>&nbsp; <BR><BR>This is a very basic question.... <BR>&nbsp;&nbsp;&nbsp;When creating a recurring payment in HR, an SAP event of CREATED<BR>(object recurrpay)&nbsp; is raised for each different wage type used for an<BR>employee. <BR>&nbsp;&nbsp;&nbsp;For instance, if there are 3 wage types, 3 events are raised for the<BR>SAME employee.&nbsp; After the creation of the payment and the save key is<BR>hit the event kicks off, so for each payment for the same employee we<BR>are getting 3 events. We do not want to start the WF 3x. <BR>We want to start a workflow ONE time, as long as one payment exists<BR>start the workflow, from there it does not matter how many payments are<BR>entered.&nbsp; Any thoughts on how this can be done without started the<BR>workflow for each time? <BR><BR><BR>&nbsp; &nbsp; <BR><BR>Lynne M. Allen | ERP Workflow Development | Worldwide
 Information<BR>Systems (WWIS) | <BR>Eastman Kodak Company | 343 State Street | Rochester, NY 14650-1221 | <BR><A href="http://us.mc503.mail.yahoo.com/mc/compose?to=lynne.allen@kodak.com" ymailto="mailto:lynne.allen@kodak.com">lynne.allen@kodak.com</A> &lt;mailto:<A href="http://us.mc503.mail.yahoo.com/mc/compose?to=lynne.allen@kodak.com" ymailto="mailto:lynne.allen@kodak.com">lynne.allen@kodak.com</A>&gt;&nbsp; | 585-724-3556<BR>Office | <BR>www.kodak.com &lt;<A href="http://www.kodak.com/" target=_blank>http://www.kodak.com/</A>&gt;&nbsp; <BR>_______________________________________________<BR>SAP-WUG mailing list<BR><A href="http://us.mc503.mail.yahoo.com/mc/compose?to=SAP-WUG@mit.edu" ymailto="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR>-------------- next part --------------<BR>An HTML attachment was
 scrubbed...<BR>URL: <A href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20090526/2ab35cf0/attachment.htm" target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20090526/2ab35cf0/attachment.htm</A><BR>-------------- next part --------------<BR>A non-text attachment was scrubbed...<BR>Name: not available<BR>Type: image/gif<BR>Size: 826 bytes<BR>Desc: image001.gif<BR>Url : <A href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20090526/2ab35cf0/attachment.gif" target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20090526/2ab35cf0/attachment.gif</A><BR><BR>------------------------------<BR><BR>_______________________________________________<BR>SAP-WUG mailing list<BR><A href="http://us.mc503.mail.yahoo.com/mc/compose?to=SAP-WUG@mit.edu" ymailto="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug"
 target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR><BR>End of SAP-WUG Digest, Vol 54, Issue 31<BR>***************************************<BR></DIV></BLOCKQUOTE></td></tr></table><br>