<div> </div>
<div>I&#39;ve seen this in SRM. Authorisation that it was failing on was a PLOG or PLOGI thing!  </div>
<div> </div>
<div>Andy</div>
<div><br> </div>
<div class="gmail_quote">
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><br>---------- Forwarded message ----------<br>From: &quot;Mike Pokraka&quot; &lt;<a href="mailto:wug@workflowconnections.com">wug@workflowconnections.com</a>&gt;<br>
To: &quot;SAP Workflow Users&#39; Group&quot; &lt;<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>&gt;<br>Date: Tue, 16 Mar 2010 13:00:34 -0000 (GMT)<br>Subject: Re: Workitems being created under different usernames<br>
Interesting!<br>Well in that case I&#39;d suggest two alternatives:<br><br>- Use a &#39;determine agents&#39; step that calls RH_GET_ACTORS in background<br>instead of using a rule on the step.<br><br>- If you want to avoid a background step you could cde the agent<br>
determination as a functional method that bypasses auth checks (e.g. by<br>doing direct table reads, possibly calling the rule thereafter) and insert<br>that as an agent expression on your step. If you haven&#39;t used WF-OO, don&#39;t<br>
worry because there&#39;s no need for the any of the workflow-specific stuff<br>for classes/objects aren&#39;t stored in the container. Just code a static<br>method that returns your agent parameter and plug it into the expression.<br>
<br>Cheers,<br>Mike<br><br><br>On Tue, March 16, 2010 3:32 am, Rick Bakker wrote:<br>&gt; Hi Mike,<br>&gt;<br>&gt; I made sure Advance with Dialog was turned off both for the step in<br>&gt; question and the preceding step. I also turned off Advance with Dialog<br>
&gt; at the workflow header. And I looked at &#39;User context&#39; in the classic<br>&gt; view. It still says the step is being created by the actual agent of<br>&gt; the previous step.<br>&gt;<br>&gt; I then changed the agent determination to a test fm which does nothing<br>
&gt; but check SY-UNAME and determine the agent based on that. Again, the<br>&gt; result was as expected - the preceding actual agent is executing the<br>&gt; rule. It could be that SAP is overwriting SY-UNAME but I did notice<br>
&gt; before that the authorization problems that certain users were having<br>&gt; with the AC rule disappeared when authorizations were added, and<br>&gt; reappeared when they were taken away again.<br>&gt;<br>&gt; So I conclude that the rule is run by the preceding actual agent, even<br>
&gt; without advance with dialog.<br>&gt;<br>&gt; cheers<br>&gt; Rick Bakker<br>&gt; Hanabi Technology<br>&gt;<br>&gt; On Tue, Mar 16, 2010 at 12:20 AM, Mike Pokraka<br>&gt; &lt;<a href="mailto:wug@workflowconnections.com">wug@workflowconnections.com</a>&gt; wrote:<br>
&gt;&gt; Just to state the obvious: did you switch it off for the previous step?<br>&gt;&gt; Failing that, try disabling it at the workflow header just to test.<br>&gt;&gt; I vaguely remember having problems in this area before - but that was<br>
&gt;&gt; some<br>&gt;&gt; time ago.<br>&gt;&gt;<br>&gt;&gt; Another thing: Don&#39;t take the log at face value. It will show you the<br>&gt;&gt; user<br>&gt;&gt; under which it pretends to execute, even though the actual session may<br>
&gt;&gt; differ. Look at the technical log and switch to the old-style technical<br>&gt;&gt; log &amp; expand the steps. Then scroll all the way across to the right and<br>&gt;&gt; the column &#39;User context&#39; will show you the real user.<br>
&gt;&gt;<br>&gt;&gt; To further confuse, some bits are workflow aware and will perform auth<br>&gt;&gt; checks according to the current workflow agent, whereas others will use<br>&gt;&gt; SY-UNAME, which may be different. (But don&#39;t always trust SY-UNAME<br>
&gt;&gt; either,<br>&gt;&gt; because I&#39;ve seen SAP code occasionally overwrite SY-UNAME in order to<br>&gt;&gt; impersonate dialog users in a bacground process).<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; On Mon, March 15, 2010 10:59 am, Rick Bakker wrote:<br>
&gt;&gt;&gt; Thanks Ramki and Mike, I admit I didn&#39;t think of that. But, it doesn&#39;t<br>&gt;&gt;&gt; work!<br>&gt;&gt;&gt; Workitems are still created by the actual agent of the previous<br>&gt;&gt;&gt; workitem, even after SWU_OBUF.<br>
&gt;&gt;&gt;<br>&gt;&gt;&gt; On Mon, Mar 15, 2010 at 8:40 PM, Mike Pokraka<br>&gt;&gt;&gt; &lt;<a href="mailto:wug@workflowconnections.com">wug@workflowconnections.com</a>&gt; wrote:<br>&gt;&gt;&gt;&gt; Rick,<br>&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Creating the next work item within the current user&#39;s context<br>&gt;&gt;&gt;&gt; facilitates<br>&gt;&gt;&gt;&gt; advance in dialog. I think switching that off for the step involved<br>&gt;&gt;&gt;&gt; should<br>
</blockquote></div>