Triggering Events for HR
Ramki Maley
rmaley at erpworkflow.com
Thu May 21 14:18:47 EDT 2009
Another way would be to create an Event Receiver FM that updates a Z
table and then a periodic job that triggers the Workflow once for Each
Employee (your own event queue). SAP_WAPI_WORKITEMS_TO_OBJECT may have
timing/db update issues since all the Workflows are starting in the same
LUW.
Regards,
Ramki.
Sue Doughty wrote:
> 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 <mailto: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/>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
More information about the SAP-WUG
mailing list