Determine Agents and substitutes for a task

Márton Zsolt Marton.Zsolt at iqsys.hu
Fri May 9 06:44:02 EDT 2008


Hi,

Try this:

RH_WI_AGENTS_GET      

or

RH_WI_EXCLUDED_AGENTS

Or 

RH_AGENTS_OF_TASK_GET

 

Regards

Zsolt

 

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of C L Gordon
Sent: Friday, May 09, 2008 12:29 PM
To: sap-wug at mit.edu
Subject: Determine Agents and substitutes for a task

 

Hi All,

 

I'm new to this group (and workflow), but was wondering if anyone can tell me if there's any standard functionality to determine all possible agents for a task, or if not advise on the best way to provide this. 

 

I have a bespoke Expense Approval workflow sending reminder emails via a send mail step.

The agent for the task is determined programmatically within the workflow, held in a container defined as the agent against the task. There's also an excluded agent (the employee whose expense claim is being processed)!

 

The requirement is for the reminder mail to be sent to the agent as currently, and the same mail to go to all personal substitutes of the agent, but no mail for any excluded agents of the task. 

 

I've found substitutions are maintained in table HRUS_D2, and this table is interrogated when a user logs on to determine their worklist. I've also found FM SAP_WAPI_SUBSTITUTES_GET which accepts an Agent and returns all entries from HRUS-D2.

 

My thoughts so far are to write a wrapper round SAP_WAPI_SUBSTITUTES_GET which will handle the appropriate profiles, substitution validity periods, active flag etc. then to incorporate this FM in a method for use in the WF.

 

Would this be a sensible approach, any advice would be appreciated,


Thanks

Carol

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20080509/b7007633/attachment.htm


More information about the SAP-WUG mailing list