<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I remember there&nbsp;is database table that holds the substitue information...se tech help on create substitue screen...</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">regds,</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Sharath<BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: rina spector &lt;rina.spector@ness.com&gt;<BR>To: SAP Workflow Users' Group &lt;sap-wug@mit.edu&gt;<BR>Sent: Sunday, May 11, 2008 8:13:58 PM<BR>Subject: RE: Determine Agents and substitutes for a task<BR><BR>Hi Carol,<BR>I&nbsp; understand you have a dialogue step and you want to send remenders by email.<BR>Why&nbsp; not use&nbsp; the report RSWUWFML2 or&nbsp; configure the Extended Notification&nbsp; to take care of <BR>the substitions excluded agents etc.&nbsp; in this case and in&nbsp; your future workflows ?<BR>Hope it was Helpfull .<BR>Best Regards <BR><BR>Rina Spector <BR>Workflow Developper <BR>Ness Group <BR><BR><BR><BR>________________________________<BR><BR>מאת: <A href="mailto:sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A> בשם C L Gordon<BR>נשלח: ו 09/05/2008
 14:25<BR>אל: SAP Workflow Users' Group<BR>נושא: RE: Determine Agents and substitutes for a task<BR><BR><BR>Hi Zsolt,<BR><BR>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.<BR><BR>Thanks<BR>Carol<BR><BR><BR>________________________________<BR><BR>From: <A href="mailto:sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A> [mailto:<A href="mailto:sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A>] On Behalf Of M?rton Zsolt<BR>Sent: 09 May 2008 11:44<BR>To: SAP Workflow Users' Group<BR>Subject: RE: Determine Agents and substitutes for a task<BR><BR><BR><BR>&nbsp;&nbsp;&nbsp; Hi,<BR><BR>&nbsp;&nbsp;&nbsp; Try
 this:<BR><BR>&nbsp;&nbsp;&nbsp; RH_WI_AGENTS_GET&nbsp; &nbsp; &nbsp; <BR><BR>&nbsp;&nbsp;&nbsp; or<BR><BR>&nbsp;&nbsp;&nbsp; RH_WI_EXCLUDED_AGENTS<BR><BR>&nbsp;&nbsp;&nbsp; Or <BR><BR>&nbsp;&nbsp;&nbsp; RH_AGENTS_OF_TASK_GET<BR><BR>&nbsp;&nbsp;&nbsp; <BR><BR>&nbsp;&nbsp;&nbsp; Regards<BR><BR>&nbsp;&nbsp;&nbsp; Zsolt<BR><BR>&nbsp;&nbsp;&nbsp; <BR><BR>&nbsp;&nbsp;&nbsp; <BR>________________________________<BR><BR><BR>&nbsp;&nbsp;&nbsp; From: <A href="mailto:sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A> [mailto:<A href="mailto:sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A>] On Behalf Of C L Gordon<BR>&nbsp;&nbsp;&nbsp; Sent: Friday, May 09, 2008 12:29 PM<BR>&nbsp;&nbsp;&nbsp; To: <A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A><BR>&nbsp;&nbsp;&nbsp; Subject: Determine Agents and substitutes for a task<BR><BR>&nbsp;&nbsp;&nbsp;
 <BR><BR>&nbsp;&nbsp;&nbsp; Hi All,<BR><BR>&nbsp;&nbsp;&nbsp; <BR><BR>&nbsp;&nbsp;&nbsp; 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. <BR><BR>&nbsp;&nbsp;&nbsp; <BR><BR>&nbsp;&nbsp;&nbsp; I have a bespoke Expense Approval workflow sending reminder emails via a send mail step.<BR><BR>&nbsp;&nbsp;&nbsp; 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)!<BR><BR>&nbsp;&nbsp;&nbsp; <BR><BR>&nbsp;&nbsp;&nbsp; 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. <BR><BR>&nbsp;&nbsp;&nbsp;
 <BR><BR>&nbsp;&nbsp;&nbsp; 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.<BR><BR>&nbsp;&nbsp;&nbsp; <BR><BR>&nbsp;&nbsp;&nbsp; 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.<BR><BR>&nbsp;&nbsp;&nbsp; <BR><BR>&nbsp;&nbsp;&nbsp; Would this be a sensible approach, any advice would be appreciated,<BR><BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Thanks<BR><BR>&nbsp;&nbsp;&nbsp; Carol<BR><BR><BR><BR><BR><BR><BR><BR><BR>The information contained in this communication is intended solely for<BR>the use of the individual or entity to whom it is addressed and others <BR>authorized to receive
 it.&nbsp; It may contain confidential or legally <BR>privileged information.&nbsp; If you are not the intended recipient you are <BR>hereby notified that any disclosure, copying, distribution or taking any <BR>action in reliance on the contents of this information is strictly prohibited <BR>and may be unlawful. If you have received this communication in error, <BR>please notify us immediately by forwarding this email to <BR><A href="mailto:MailAdmin@ness.com" ymailto="mailto:MailAdmin@ness.com">MailAdmin@ness.com</A> and then delete it from your system.<BR><BR>Ness technologies is neither liable for the proper and complete <BR>transmission of the information contained in this communication nor for <BR>any delay in its receipt.<BR></DIV></div><br>

      </body></html>