<div>Michael,</div>
<div> </div>
<div>Yes, background = WF-BATCH. But you said your SendMail step wasn&#39;t background.</div>
<div> </div>
<div>regards</div>
<div>Rick Bakker</div>
<div>hanabi technology<br><br></div>
<div class="gmail_quote">On Fri, Feb 11, 2011 at 9:23 AM, <span dir="ltr">&lt;<a href="mailto:michael.mcley@daimler.com">michael.mcley@daimler.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><br><font size="2" face="sans-serif">Rick,</font><br><br><font size="2" face="sans-serif">Interesting thing is that I thought these tasks were running as WF_BATCH.  I changed them to background processing in one of our test systems, but still the authorizations failed (at least the containers were not written until I changed the auths of the agent in the previous steps)</font><br>

<br><font size="2" face="sans-serif">The only thing necessary to have a step run as WF_BATCH is to execute the work item in background, correct?</font><br><br><font size="2" face="sans-serif">Sorry to bother you, but no good deed should go unpunished...;-)<br>

</font><font color="#808000" size="4"><b></b></font>
<p>
<div class="im"><font color="#808000" size="4"><b>Michael McLey</b></font><font color="#808000" size="3"><b></b><br>MBUSI - IT Parts &amp; Administration </font><font color="#808000" size="2"><br>Mercedes-Benz US International, Inc.</font><font color="#808000" size="3"></font><font color="#808000" size="2"><br>

1 Mercedes Drive</font><font color="#808000" size="3"> </font><font color="#808000" size="2"><br>Vance, AL 35490</font><font color="#808000" size="3"> </font><font color="#808000" size="2"><br>PHONE:  (205) 462 - 5239</font><font color="#808000" size="3"> </font><font color="#808000" size="2"><br>

EMAIL:   <a href="mailto:michael.mcley@daimler.com" target="_blank">michael.mcley@daimler.com</a></font><font color="#808000" size="3">   </font><br><br><br></div>
<table width="100%">
<tbody>
<tr valign="top">
<td width="40%"><font size="1" face="sans-serif"><b><a href="mailto:rbakker@gmail.com" target="_blank">rbakker@gmail.com</a></b> </font><br><font size="1" face="sans-serif">Sent by: <a href="mailto:sap-wug-bounces@MIT.EDU" target="_blank">sap-wug-bounces@MIT.EDU</a></font> 
<p><font size="1" face="sans-serif">02/10/2011 04:18 PM</font> 
<table border="1">
<tbody>
<tr valign="top">
<td bgcolor="white">
<div align="center"><font size="1" face="sans-serif">Please respond to<br><a href="mailto:sap-wug@MIT.EDU" target="_blank">sap-wug@MIT.EDU</a></font></div></td></tr></tbody></table><br></p>
<td width="59%">
<table width="100%">
<tbody>
<tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">To</font></div>
<td><font size="1" face="sans-serif"><a href="mailto:sap-wug@MIT.EDU" target="_blank">sap-wug@MIT.EDU</a></font> 
<tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">cc</font></div>
<td>
<tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">Subject</font></div>
<td><font size="1" face="sans-serif">Re: Workflow -&gt; Task Bindings and user authorizations</font></td></td></tr></td></td></tr></td></td></tr></tbody></table><br>
<table>
<tbody>
<tr valign="top">
<td>
<td></td></td></tr></tbody></table><br></td>
<td><p></p></td></td></tr></tbody></table><br><br><br><font size="3">Hi Michael,</font><br><font size="3"> </font><br><font size="3">Surprising to me as well but then I try to run as much as possible as WF-BATCH, even putting in dummy wait steps to achieve this.</font><br>

<font size="3">I&#39;ve encountered similar authorization problems before.</font><br><font size="3"> </font><br><font size="3">regards</font><br><font size="3">Rick Bakker</font><br><font size="3">hanabi technology<br></font><br>

<font size="3">On Fri, Feb 11, 2011 at 8:28 AM, &lt;</font><a href="mailto:michael.mcley@daimler.com" target="_blank"><font color="blue" size="3"><u>michael.mcley@daimler.com</u></font></a><font size="3">&gt; wrote:</font><br>

<font size="2" face="sans-serif"><br>Thanks Rick,</font><font size="3"><br></font><font size="2" face="sans-serif"><br>This is just a follow-up.  </font><font size="3"><br></font><font size="2" face="sans-serif"><br>I bit the bullet and started testing to see if I could reproduce this problem.  As it turns out, bindings can be affected by user authorizations.  In this case it was a problem with the approvers reading infotype 0105 in the HR records for the trip requestor.</font><font size="3"><br>

</font><font size="2" face="sans-serif"><br>Without even read permissions, the binding will not pass the workflow container value into the task container and the method fails.  Maybe it is because the source container value was an attribute of a BOR object and these container objects are subject to authorizations, dunno...</font><font size="3"><br>

</font><font size="2" face="sans-serif"><br>This was a suprise to me, maybe it helps someone else with debugging.</font> 
<p><font color="#808000" size="4"><b>Michael McLey</b></font><font color="#808000" size="3"><br>MBUSI - IT Parts &amp; Administration </font><font color="#808000" size="2"><br>Mercedes-Benz US International, Inc.<br>1 Mercedes Drive</font><font color="#808000" size="3"> </font><font color="#808000" size="2"><br>

Vance, AL 35490</font><font color="#808000" size="3"> </font><font color="#808000" size="2"><br>PHONE:  (205) 462 - 5239</font><font color="#808000" size="3"> </font><font color="#808000" size="2"><br>EMAIL:   </font><a href="mailto:michael.mcley@daimler.com" target="_blank"><font color="blue" size="2"><u>michael.mcley@daimler.com</u></font></a><font color="#808000" size="3">   </font><font size="3"><br>

<br></font>
<p>
<table width="100%">
<tbody>
<tr valign="top">
<td width="36%"><a href="mailto:rbakker@gmail.com" target="_blank"><font color="blue" size="1" face="sans-serif"><b><u>rbakker@gmail.com</u></b></font></a><font size="1" face="sans-serif"><br>Sent by: </font><a href="mailto:sap-wug-bounces@mit.edu" target="_blank"><font color="blue" size="1" face="sans-serif"><u>sap-wug-bounces@mit.edu</u></font></a><font size="3"></font> 
<p><font size="1" face="sans-serif">02/09/2011 04:13 PM</font><font size="3"></font><br>
<table border="4">
<tbody>
<tr valign="top">
<td bgcolor="white">
<div align="center"><font size="1" face="sans-serif">Please respond to</font><font color="blue" size="1" face="sans-serif"><u><br></u></font><a href="mailto:sap-wug@mit.edu" target="_blank"><font color="blue" size="1" face="sans-serif"><u>sap-wug@mit.edu</u></font></a></div>

</td></tr></tbody></table>
<p></p>
<td width="62%"><br>
<table width="100%">
<tbody>
<tr valign="top">
<td width="12%">
<div align="right"><font size="1" face="sans-serif">To</font></div>
<td width="87%"><a href="mailto:sap-wug@mit.edu" target="_blank"><font color="blue" size="1" face="sans-serif"><u>sap-wug@mit.edu</u></font></a><font size="3"></font> 
<tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">cc</font></div>
<td>
<tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">Subject</font></div>
<td><font size="1" face="sans-serif">Re: Workflow -&gt; Task Bindings and user authorizations</font></td></td></tr></td></td></tr></td></td></tr></tbody></table><br><br>
<table>
<tbody>
<tr valign="top">
<td>
<td></td></td></tr></tbody></table><br>
<td width="1%"></td></td>
<td><p></p>
<p></p></td></p></td></tr></tbody></table>
<p><font size="3"><br><br></font><tt><font size="2"><br>Hi Michael,<br><br>This probably has nothing to do with your problem but so many keywords<br>match that I can&#39;t resist.<br><br>I was very surprised to find that including a position (S ....) which<br>

is empty in the list of recipients of a SendMail step causes the<br>workflow to go into error.<br>Maybe your problem is somehow related.<br><br>regards<br>Rick Bakker<br>hanabi technology<br><br>On Thu, Feb 10, 2011 at 4:20 AM,  &lt;</font></tt><a href="mailto:michael.mcley@daimler.com" target="_blank"><tt><font color="blue" size="2"><u>michael.mcley@daimler.com</u></font></tt></a><tt><font size="2">&gt; wrote:<br>

&gt;<br>&gt; Hello Wuggers,<br>&gt;<br>&gt; I&#39;m stumped.<br>&gt;<br>&gt; Background:<br>&gt; We are using a workflow for the approvals of travel requests.  One of the<br>&gt; steps is that if an approver rejects a travel request, an SAP mail is sent<br>

&gt; to the requestor with some text explaining why.<br>&gt;<br>&gt; Issue:<br>&gt; The SAP Mail reciepient is the user ID of the requestor, which is contained<br>&gt; in a WORKFLOW container element at the start of the workflow.  This WORKFLOW<br>

&gt; container element is passed into the TASK container through a standard<br>&gt; binding.  So far a no-brainer.<br>&gt;<br>&gt; As of about August last year, most of these send mail tasks started going<br>&gt; into error (most - not all).  A review of the logs of successful and<br>

&gt; error-ed tasks (and the task program, etc...) shows the reason for the error<br>&gt; is that the task container element which is used in the task to determine<br>&gt; the reciepient of the mail is not being populated, although the source<br>

&gt; element in the workflow container has a value.<br>&gt;<br>&gt; Some Hints:<br>&gt; At about exactly the same time, we underwent a complete overhaul of our user<br>&gt; authorization scheme.  Additionally, the send mail task (for some strange<br>

&gt; reason) is not a background task, although there is no user interface.<br>&gt;<br>&gt; ----------------------------<br>&gt; It seems to me that our authorization project has somehow caused this<br>&gt; binding to break in most (but not all) instances, but up to this point, I<br>

&gt; did not think that user auths had any effect on workflow -&gt; task bindings,<br>&gt; even if the step is not background.  Am I wrong to assume this?<br>&gt;<br>&gt; Any help or hints would be appreciated.  Thx.<br>
&gt;<br>
&gt;<br>&gt; Michael McLey<br>&gt; MBUSI - IT Parts &amp; Administration<br>&gt; Mercedes-Benz US International, Inc.<br>&gt; 1 Mercedes Drive<br>&gt; Vance, AL 35490<br>&gt; PHONE:  (205) 462 - 5239<br>&gt; EMAIL:   </font></tt><a href="mailto:michael.mcley@daimler.com" target="_blank"><tt><font color="blue" size="2"><u>michael.mcley@daimler.com</u></font></tt></a><tt><font size="2"><br>

&gt; If you are not the intended addressee, please inform us immediately that you<br>&gt; have received this e-mail in error, and delete it. We thank you for your<br>&gt; cooperation.<br>&gt;<br>&gt; _______________________________________________<br>

&gt; SAP-WUG mailing list<br>&gt; </font></tt><a href="mailto:SAP-WUG@mit.edu" target="_blank"><tt><font color="blue" size="2"><u>SAP-WUG@mit.edu</u></font></tt></a><tt><font size="2"><br>&gt; </font></tt><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank"><tt><font color="blue" size="2"><u>http://mailman.mit.edu/mailman/listinfo/sap-wug</u></font></tt></a><tt><font size="2"><br>

&gt;<br>&gt;<br><br>_______________________________________________<br>SAP-WUG mailing list</font></tt><tt><font color="blue" size="2"><u><br></u></font></tt><a href="mailto:SAP-WUG@mit.edu" target="_blank"><tt><font color="blue" size="2"><u>SAP-WUG@mit.edu</u></font></tt></a><tt><font color="blue" size="2"><u><br>

</u></font></tt><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank"><tt><font color="blue" size="2"><u>http://mailman.mit.edu/mailman/listinfo/sap-wug</u></font></tt></a><font size="3"><br></font><font color="#808080" size="2" face="sans-serif"><br>

<br>If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. </font>
<p><font size="3"><br>_______________________________________________<br>SAP-WUG mailing list</font><font color="blue" size="3"><u><br></u></font><a href="mailto:SAP-WUG@mit.edu" target="_blank"><font color="blue" size="3"><u>SAP-WUG@mit.edu</u></font></a><font color="blue" size="3"><u><br>

</u></font><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank"><font color="blue" size="3"><u>http://mailman.mit.edu/mailman/listinfo/sap-wug</u></font></a><font size="3"><br></font>
<p><tt><font size="2">_______________________________________________<br>SAP-WUG mailing list<br><a href="mailto:SAP-WUG@mit.edu" target="_blank">SAP-WUG@mit.edu</a><br><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>

</font></tt>
<p><font face="sans-serif"><font color="#808080" size="-1" face="sans-serif, Arial, Helvetica"><br>If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. <br>

</font></font></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p><br>_______________________________________________<br>SAP-WUG mailing list<br><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>

<br></p></p></p></p></p></p></blockquote></div><br>