<div>Hi Richard,</div>
<div>&nbsp;</div>
<div>WF-BATCH runs the background step that removes the billing block (all background steps are run by WF-BATCH) - unfortunately, you cannot set a dialog user to run Workflow background&nbsp;methods/tasks.&nbsp;</div>
<div>However, you can record the user that &quot;Approves&quot; the credit memo through the &quot;Decision&quot; step by doing the following:</div>
<div>- On the binding from the decision task to the workflow, you should have an element called _Workitem.</div>
<div>- Pass this to a container of business object type &quot;WORKINGWI&quot;.</div>
<div>- Under B.O WORKINGWI you have the attributes: ExecutedByUser which contains UserID (of the person that executed the last work item).</div>
<div>&nbsp;</div>
<div>Or... You can always make a copy of the method that removes the billing block. Make it a dialog step for a dialog user to execute in a task, thus forcing it to be a foreground task requiring a user to execute and being able to record their user ID. The main problem - this now becomes a two-step process... Not very elegant.
</div>
<div>&nbsp;</div>
<div>Hope that helps.</div>
<div>&nbsp;</div>
<div>Tom</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>
<hr>
 <font face="Tahoma" size="2"><b>From:</b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sap-wug-bounces@mit.edu" target="_blank">sap-wug-bounces@mit.edu</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sap-wug-bounces@mit.edu" target="_blank">
sap-wug-bounces@mit.edu</a>] <b>On Behalf Of </b>Smart, Richard <br><b>Sent:</b> 17. august 2006 21:24<br><b>To:</b> SAP Workflow Users' Group<br><b>Subject:</b> Audit trail from background tasks<br></font><font face="Arial" size="2">
<span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hello,</span></font></div>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="DIRECTION: ltr">
<div>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">We have a workflow for credit memo approval which is similar to the standard one. When the user approves the credit memo, using a decision step, a background step runs which removes the billing block. As expected, on looking at the change docs, it says that the block was removed by wf-batch. We can look in the wf logs to determine who really carried out the approval, but I'd like to know whether there's a way of forcing the block to be removed by the users user id.. if you see what I mean. I'm sure this is a common query but I couldn't find anything in the archives. I'm interested in knowing how you people have got round this.
</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks a lot</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Richard </span></font></p></div></div></blockquote></div>