Determine Agents and substitutes for a task

rina spector rina.spector at ness.com
Sun May 11 23:13:58 EDT 2008


Hi Carol,
I  understand you have a dialogue step and you want to send remenders by email.
 Why  not use  the report RSWUWFML2 or   configure the Extended Notification  to take care of 
 the substitions excluded agents etc.  in this case and in  your future workflows ?
 Hope it was Helpfull .
Best Regards 
 
Rina Spector 
Workflow Developper 
Ness Group 
 

 
________________________________

מאת: sap-wug-bounces at mit.edu בשם C L Gordon
נשלח: ו 09/05/2008 14:25
אל: SAP Workflow Users' Group
נושא: RE: Determine Agents and substitutes for a task


Hi Zsolt,
 
Thanks for this, RH_WI_AGENTS_GET and RH_WI_EXCLUDED_AGENTS return the agent and excluded agent for my task ID correctly (and good to know), but I need to to determine the personal substitutes for the agent i.e. everyone who could potentially process the task to ensure they all get reminder emails.
 
Thanks
Carol
 
 
________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of M?rton Zsolt
Sent: 09 May 2008 11:44
To: SAP Workflow Users' Group
Subject: RE: Determine Agents and substitutes for a task



	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








The information contained in this communication is intended solely for
the use of the individual or entity to whom it is addressed and others 
authorized to receive it.   It may contain confidential or legally 
privileged information.   If you are not the intended recipient you are 
hereby notified that any disclosure, copying, distribution or taking any 
action in reliance on the contents of this information is strictly prohibited 
and may be unlawful. If you have received this communication in error, 
please notify us immediately by forwarding this email to 
MailAdmin at ness.com and then delete it from your system.

Ness technologies is neither liable for the proper and complete 
transmission of the information contained in this communication nor for 
any delay in its receipt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 9532 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20080512/cbea13f6/attachment.bin


More information about the SAP-WUG mailing list