<!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"> &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. The way we determine 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. 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. 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"> &nb=
sp; This goes back to the fundamental question you asked. =
Can anybody also advise if you have any idea. 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"> </FONT>
</P>
<UL>
<P><FONT SIZE=3D1 FACE=3D"Arial">-----Original Message-----</FONT>
<BR><B><FONT SIZE=3D1 FACE=3D"Arial">From: </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: </FONT></B> <FONT =
SIZE=3D1 FACE=3D"Arial">13 September, 2001 6:35 PM</FONT>
<BR><B><FONT SIZE=3D1 =
FACE=3D"Arial">To: </FONT></B> <FONT SIZE=3D1 =
FACE=3D"Arial">SAP-WUG@MITVMA.MIT.EDU</FONT>
<BR><B><FONT SIZE=3D1 =
FACE=3D"Arial">Subject: </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"> =
ACTUALLYPROCBY LIKE WFSYST-ACT_AGENT,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> USER =
TYPE SWC_OBJECT,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> bname =
like usr01-bname.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial"> SWC_GET_ELEMENT CONTAINER =
'ActuallyProcBy' ACTUALLYPROCBY.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> bname =3D =
ACTUALLYPROCBY+2(12).</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial"> SWC_CREATE_OBJECT user 'USR01' =
bname.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial"> 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 =
&ACTUALUSER.NAME&</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">>From: "Roland Chan =
(EPA)" <Roland.Chan@ericsson.com.au></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>Reply-To: SAP Workflow Users' =
Group <SAP-WUG@MITVMA.MIT.EDU></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>To: SAP-WUG@MITVMA.MIT.EDU</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>Subject: Workflow Mail to have =
information outside the selection fields</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>Date: Thu, 13 Sep 2001 16:07:38 =
+1000</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>Hi,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">>  =
; We have developed a workflow application for =
Travel</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>Accounting</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>Approval and we have special =
routine built to base on the travel nature to</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>determine who the approver for =
this travel. Everything is working and the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>correct approver is receiving the =
workflow mail to conduct the approval and</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>if the travel is rejected, the =
traveler is being advised.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">>  =
; Yet the business wants an =
additional mail to go back to the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>traveler on the progress of that =
travel claim AND in the mail content, we</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>want the actual approver's =
name. Since such information is outside all</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>selection fields available, =
how can I pass back the name of the approver</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>into the workflow so that I can =
display the name in the mail content ?</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">>Has anybody come across such =
request ? Please advise.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">> =
Regards,</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">> =
Roland Chan</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > 03 9301 3523</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > Ericsson Business =
Applications Team</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > Level 38.29, 360 Elizabeth =
St</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > Melbourne 3000</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> ></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> ></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>