<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.19">
<TITLE>RE: Workflow Mail to have information outside the selection =
fields</TITLE>
</HEAD>
<BODY>
 
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">Hello Mark,</FONT>
</P>
 
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; Thanks for the advise - I understand what you're trying to achieve =
but I have concerns about sequence of event before the value of =
approver's name is returned.&nbsp;&nbsp; The way we determine&nbsp; the =
approver is to build a custom routine of responsible person in the =
Approval Step which is a decision process to either accept or reject =
the travel.&nbsp;&nbsp; The routine returns the approver ID and is =
stored in the Table ACTOR_TAB which is used by the Approval Step to =
continue the workflow.&nbsp;&nbsp;&nbsp; My question is how the value =
stored in the Table ACTOR_TAB would be able to pass to the next step =
which is executing the new method you suggested to create as below and =
populate the correct value in the container.</FONT></P>
 
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; This goes back to the fundamental question you asked.&nbsp;&nbsp; =
Can anybody also advise if you have any idea.&nbsp;&nbsp; Thank you in =
advance.</FONT></P>
 
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">Regards,</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">Roland Chan.</FONT>
</P>
<BR>
 
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">&nbsp;</FONT>
</P>
<UL>
<P><FONT SIZE=3D1 FACE=3D"Arial">-----Original Message-----</FONT>
<BR><B><FONT SIZE=3D1 FACE=3D"Arial">From:&nbsp;&nbsp;</FONT></B> <FONT =
SIZE=3D1 FACE=3D"Arial">Mark Pyc Workflow =
[SMTP:pyc_workflow@hotmail.com]</FONT>
<BR><B><FONT SIZE=3D1 FACE=3D"Arial">Sent:&nbsp;&nbsp;</FONT></B> <FONT =
SIZE=3D1 FACE=3D"Arial">13 September, 2001 6:35 PM</FONT>
<BR><B><FONT SIZE=3D1 =
FACE=3D"Arial">To:&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT SIZE=3D1 =
FACE=3D"Arial">SAP-WUG@MITVMA.MIT.EDU</FONT>
<BR><B><FONT SIZE=3D1 =
FACE=3D"Arial">Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>=
</B> <FONT SIZE=3D1 FACE=3D"Arial">Re: Workflow Mail to have =
information outside the selection fields</FONT>
</P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">G'day Roland,</FONT>
</P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">I'm sure there will be a more elegant =
solution, but I did just get this to</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">work.</FONT>
</P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">Firstly create a WF container element =
based on WFSYST-ACT_AGENT and in the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">binding of the approval step include =
this to hold the actual agent.</FONT>
</P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">I then created a subtype of USR01 and =
created an instance independant method</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">that has an import parameter based on =
WFSYST-ACT_AGENT and an export</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">parameter based on object USR01. The =
code for this method is as follows:</FONT>
</P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">BEGIN_METHOD RETURNUSEROBECT CHANGING =
CONTAINER.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">DATA:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
ACTUALLYPROCBY LIKE WFSYST-ACT_AGENT,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; USER =
TYPE SWC_OBJECT,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bname =
like usr01-bname.</FONT>
</P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">&nbsp; SWC_GET_ELEMENT CONTAINER =
'ActuallyProcBy' ACTUALLYPROCBY.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp; bname =3D =
ACTUALLYPROCBY+2(12).</FONT>
</P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">&nbsp; SWC_CREATE_OBJECT user 'USR01' =
bname.</FONT>
</P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">&nbsp; SWC_SET_ELEMENT CONTAINER =
'User' USER.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">END_METHOD.</FONT>
</P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">After the approval step create a new =
step including a task which calls this</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">method. You will obviously also need =
a WF container element based on object</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">USR01 to store the return =
value.</FONT>
</P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">With this object in the container you =
can then create a send mail step and</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">include the =
&amp;ACTUALUSER.NAME&amp;</FONT>
</P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">As I say I'm sure there will be a =
better solution, but I hope this helps.</FONT>
</P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">My question:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Along these lines I have a more =
fundamental question. Is it possible to</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">include the actual agent in the =
Notification text message. My testing seems</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">to indicate that this standard =
container element is not resolved until after</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">the notification is sent. Is this =
correct??</FONT>
</P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Mark</FONT>
</P>
<BR>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">&gt;From: &quot;Roland Chan =
(EPA)&quot; &lt;Roland.Chan@ericsson.com.au&gt;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;Reply-To: SAP Workflow Users' =
Group &lt;SAP-WUG@MITVMA.MIT.EDU&gt;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;To: SAP-WUG@MITVMA.MIT.EDU</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;Subject: Workflow Mail to have =
information outside the selection fields</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;Date: Thu, 13 Sep 2001 16:07:38 =
+1000</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;Hi,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp; We have developed a workflow application for =
Travel</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;Accounting</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;Approval and we have special =
routine built to base on the travel nature to</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;determine who the approver for =
this travel.&nbsp;&nbsp; Everything is working and the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;correct approver is receiving the =
workflow mail to conduct the approval and</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;if the travel is rejected, the =
traveler is being advised.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Yet the business wants an =
additional mail to go back to the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;traveler on the progress of that =
travel claim AND in the mail content, we</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;want the actual approver's =
name.&nbsp;&nbsp; Since such information is outside all</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;selection fields available,&nbsp; =
how can I pass back the name of the approver</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;into the workflow so that I can =
display the name in the mail content ?</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;Has anybody come across such =
request ?&nbsp; Please advise.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Regards,</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Roland Chan</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; 03 9301 3523</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; Ericsson Business =
Applications Team</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; Level 38.29, 360 Elizabeth =
St</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; Melbourne 3000</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;</FONT>
</P>
<BR>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">_______________________________________=
__________________________</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Get your FREE download of MSN =
Explorer at <A HREF=3D"http://explorer.msn.com/intl.asp" =
TARGET=3D"_blank">http://explorer.msn.com/intl.asp</A></FONT>
</P>
</UL>
</BODY>
</HTML>