<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<BR>Bjorn,<BR>
1. Create a WF container element 'last_agent" (wfsyst-agent).<BR>
2. In step A populate this variable with _WI_ACTUAL_AGENT in the task-&gt; workflow binding<BR>
3. Set the agent for Step B to Expression = &amp;last_agent&amp;<BR>
&nbsp;<BR>
Then no matter who executes Step A they will also get step B using Advance with dialog.&nbsp; I always assign follow on tasks to &amp;last_agent&amp; and it works very well.<BR>
&nbsp;<BR>
Caution: you&nbsp;will have a problem if the substitute is not one of the possible agents of Step B.<BR>
Ed<BR>
&nbsp;<BR>
<BLOCKQUOTE>
<HR>
Subject: RE: decision task - substitution<BR>Date: Tue, 11 Sep 2007 15:03:40 -0400<BR>From: keohan@ll.mit.edu<BR>To: sap-wug@mit.edu<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_shape
{;}
</STYLE>

<STYLE>
.ExternalClass EC_p.MsoNormal, .ExternalClass EC_li.MsoNormal, .ExternalClass EC_div.MsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass h3
{margin-right:0in;margin-left:0in;font-size:13.5pt;font-family:'Times New Roman','serif';color:navy;font-weight:bold;}
.ExternalClass a:link, .ExternalClass EC_span.MsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass EC_span.MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass EC_p.msochpdefault, .ExternalClass EC_li.msochpdefault, .ExternalClass EC_div.msochpdefault
{margin-right:0in;margin-left:0in;font-size:10.0pt;font-family:'Times New Roman','serif';}
.ExternalClass EC_span.emailstyle17
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass EC_span.EmailStyle19
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass EC_span.Heading3Char
{color:navy;font-weight:bold;}
.ExternalClass .EC_MsoChpDefault
{font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;}
.ExternalClass EC_div.Section1
{page:Section1;}
.ExternalClass ol
{margin-bottom:0in;}
.ExternalClass ul
{margin-bottom:0in;}

</STYLE>

<DIV class=EC_Section1>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Hi Bjorn,</SPAN></P>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;</SPAN></P>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">So I think that the issue here is that task A and/or task B has the Advance with Dialog box ticked on the Step Properties.&nbsp; When User A executes Task A, the next task is automagically delivered to User A.&nbsp; It’s worth looking through the WUG Archives for Advance with Dialog – but meanwhile, if you un-tick this box, things ought to look better.</SPAN></P>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;</SPAN></P>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">(Extract from help on Advance with Dialog</SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: Wingdings">J</SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"></SPAN></P>
<H3><SPAN style="FONT-FAMILY: 'Arial','sans-serif'">Advance With Immediate Dialog</SPAN></H3>
<SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">Indicator denoting that <A target=_blank><B>advancing with immediate dialog</B></A> is activated.</SPAN><BR>
<H3><SPAN style="FONT-FAMILY: 'Arial','sans-serif'">Use</SPAN></H3>
<SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">Advancing with immediate dialog is activated for this step.</SPAN><BR>
<H3><SPAN style="FONT-FAMILY: 'Arial','sans-serif'">Examples</SPAN></H3>
<SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">You deactivate advancing on the step level,</SPAN><BR>
<UL type=disc>
<LI class=EC_MsoNormal style="COLOR: black"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Arial','sans-serif'">if between the previous step and this step an interuption makes business sense or is required, although both steps can be carried out by the same employee.</SPAN> </LI></UL>
<UL type=disc>
<LI class=EC_MsoNormal style="COLOR: black"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Arial','sans-serif'">if this step is to be available to <B>all</B> recipients in their Business Workplaces, although the agent of the previous step is also a recipient of this step.</SPAN> </LI></UL>
<H3><SPAN style="FONT-FAMILY: 'Arial','sans-serif'">Dependencies</SPAN></H3>
<SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">If you are unable to select this indicator, advancing with immediate dialog has been deactivated in the basic data of this workflow definition for the entire process.</SPAN><BR>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;</SPAN></P>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;</SPAN></P>
<DIV>
<DIV style="PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; PADDING-TOP: 3pt; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none">
<P class=EC_MsoNormal><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Bjorn Demol<BR><B>Sent:</B> Tuesday, September 11, 2007 2:26 PM<BR><B>To:</B> SAP Workflow Users' Group<BR><B>Subject:</B> RE: decision task - substitution</SPAN></P></DIV></DIV>
<P class=EC_MsoNormal>&nbsp;</P>
<DIV id=EC_idOWAReplyText60139>
<DIV>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">Hi Sue,</SPAN></P></DIV>
<DIV>
<P class=EC_MsoNormal>&nbsp;</P></DIV>
<DIV>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">thanks for the answer. I must say that I don't completely understand your answer (my fault,&nbsp;I'm working now for 4 months with workflows, so I'm still learning things)</SPAN></P></DIV>
<DIV>
<P class=EC_MsoNormal>&nbsp;</P></DIV>
<DIV>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">The user decision is not related to the outcome of a previous dialog task. </SPAN></P></DIV>
<DIV>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Excuseme for giving a childish example, but that's the easiest way for me to explain : </SPAN></P></DIV>
<DIV>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">there's step A (dialog task), and there's step B (user decision). Both tasks are classified under the same task class.</SPAN></P></DIV>
<DIV>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">We activate the substitution from user A to user B.When the substitution is active, step A is routed, step B not. After the execution of step A, step B appears in the inbox of user A...</SPAN></P></DIV>
<DIV>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Hope I'm a bit clear...</SPAN></P></DIV>
<DIV>
<P class=EC_MsoNormal>&nbsp;</P></DIV>
<DIV>
<P class=EC_MsoNormal>&nbsp;</P></DIV>
<DIV>
<P class=EC_MsoNormal>&nbsp;</P></DIV></DIV>
<DIV>
<P class=EC_MsoNormal>&nbsp;</P>
<DIV class=EC_MsoNormal style="TEXT-ALIGN: center" align=center>
<HR align=center width="100%" SIZE=2>
</DIV>
<P class=EC_MsoNormal style="MARGIN-BOTTOM: 12pt"><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Van:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> sap-wug-bounces@mit.edu namens Keohan, Susan<BR><B>Verzonden:</B> di 11/09/2007 19:26<BR><B>Aan:</B> SAP Workflow Users' Group<BR><B>Onderwerp:</B> RE: decision task - substitution</SPAN></P></DIV>
<DIV>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Hi Bjorn,</SPAN></P>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><BR>Assuming that the user decision is not related to the outcome of a previous dialog task (and does not have advance with dialog ticked on) are your substitute users active ?&nbsp;&nbsp; In HRUS_D2 if the Active box is not ticked, then workflow will not route a task to a substitute.&nbsp; It’s up to the substitute to reach in and grab the workitem from the person whose work they are doing.&nbsp; Who is the task being delivered to ?<BR><BR>Sue</SPAN></P>
<P class=EC_MsoNormal>&nbsp;</P>
<DIV>
<DIV style="PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; PADDING-TOP: 3pt; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none">
<P class=EC_MsoNormal><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Bjorn Demol<BR><B>Sent:</B> Tuesday, September 11, 2007 12:01 PM<BR><B>To:</B> sap-wug@mit.edu<BR><B>Subject:</B> decision task - substitution</SPAN></P></DIV></DIV>
<P class=EC_MsoNormal>&nbsp;</P>
<DIV>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">Hi everyone,</SPAN></P></DIV>
<DIV>
<P class=EC_MsoNormal>&nbsp;</P></DIV>
<DIV>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">We're setting up user substitution, but the system behaves weird when there's a generic user decision step in the flow. The system refuses to pass the decision task to the substituion-user. I classified the generic task, just to see if it works, but without any result.&nbsp; Is there someone who knows how we can solve this ? </SPAN></P></DIV>
<DIV>
<P class=EC_MsoNormal>&nbsp;</P></DIV>
<DIV>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">thanks in advance !</SPAN></P></DIV>
<DIV>
<P class=EC_MsoNormal>&nbsp;</P></DIV>
<DIV>
<P class=EC_MsoNormal>&nbsp;</P></DIV></DIV></DIV></BLOCKQUOTE></body>
</html>