<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
It seems like I suggested this before, but I will risk it again.&nbsp; <br><br>I have used WF_TASK.Dispatch to provide a list of the possible agents in the target task to select one as the assigned agent.&nbsp; It includes the US in front of the ID.<br><br>Check out TS30000152.&nbsp; Would this not work for your situation?&nbsp; Perhaps I don't understand the problem.<br><br>Ed<br><br>&gt; Date: Thu, 11 Nov 2010 15:03:08 +0000<br>&gt; Subject: Re: User Container input after execution of work item<br>&gt; From: wug@workflowconnections.com<br>&gt; To: sap-wug@mit.edu<br>&gt; <br>&gt; "Now I just need to find a simple way of putting a "US" in front of the<br>&gt; user ID ;-)"<br>&gt; Functional method in a binding:<br>&gt; &amp;AGENT&amp;   &lt;==  %ZCL_WF_UTIL=&gt;GET_AGENT_FROM_USER( &amp;USERID&amp; )%<br>&gt; You don't even need to implement IF_WORKFLOW if your class isn't going to<br>&gt; be stored in the container.<br>&gt; <br>&gt; Have fun,<br>&gt; Mike<br>&gt; <br>&gt; <br>&gt; On Thu, November 11, 2010 1:52 pm, michael.mcley@daimler.com wrote:<br>&gt; &gt; Mike,<br>&gt; &gt;<br>&gt; &gt; Thanks for the input.  I am currently experimenting with something like<br>&gt; &gt; that now - using a "forms" step.  Since a form can do a direct workflow<br>&gt; &gt; container modification as default behavior - this seems to be close to<br>&gt; &gt; what I was looking for.  I found a structure that has the F4 user search<br>&gt; &gt; help which is what they need in order to find the correct user ID based on<br>&gt; &gt; first name / last name.<br>&gt; &gt;<br>&gt; &gt; Now I just need to find a simple way of putting a "US" in front of the<br>&gt; &gt; user ID ;-)<br>&gt; &gt;<br>&gt; &gt; Michael McLey<br>&gt; &gt; MBUSI - IT Parts &amp; Administration<br>&gt; &gt; Mercedes-Benz US International, Inc.<br>&gt; &gt; 1 Mercedes Drive<br>&gt; &gt; Vance, AL 35490<br>&gt; &gt; PHONE:  (205) 462 - 5239<br>&gt; &gt; EMAIL:   michael.mcley@daimler.com<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; wug@workflowconnections.com<br>&gt; &gt; Sent by: sap-wug-bounces@mit.edu<br>&gt; &gt; 11/11/2010 06:15 AM<br>&gt; &gt; Please respond to<br>&gt; &gt; sap-wug@mit.edu<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; To<br>&gt; &gt; sap-wug@mit.edu<br>&gt; &gt; cc<br>&gt; &gt;<br>&gt; &gt; Subject<br>&gt; &gt; Re: User Container input after execution of work item<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Hi Michael,<br>&gt; &gt;<br>&gt; &gt; Not sure if you're still on a mission with this one, but my solution in<br>&gt; &gt; these scenarios is to have a user decision following the step, and both of<br>&gt; &gt; these in a loop.<br>&gt; &gt; Advance in dialog switched on means the decision pops up after user exits<br>&gt; &gt; transaction. Choices: Continue editing, Finished, Select new agent. On the<br>&gt; &gt; select agent outcome, you can use the "Select agent" wizard to generate an<br>&gt; &gt; appropriate task that will popup an agent list (you can<br>&gt; &gt; copy/modify/butcher this if you need a different list).<br>&gt; &gt; Obviously you will also need flags/conditions/agent lists etc., but I<br>&gt; &gt; trust you get the idea.<br>&gt; &gt;<br>&gt; &gt; Cheers,<br>&gt; &gt; Mike<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; On Wed, October 27, 2010 3:31 pm, michael.mcley@daimler.com wrote:<br>&gt; &gt;&gt; Hello Wuggers,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I have a small issue that has probably been addressed many times before,<br>&gt; &gt;&gt; but if you have some information or maybe a link to a similar topic ...<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; We have an invoice verification workflow where accounts payable parks an<br>&gt; &gt;&gt; incoming invoice and the PARKED event triggers a workflow for the<br>&gt; &gt; approval<br>&gt; &gt;&gt; of the invoice.  If approved, AP will post the invoice.  If rejected, AP<br>&gt; &gt;&gt; will follow up with an additional work item (which just calls tcode MIR4<br>&gt; &gt;&gt; in change mode) to modify the invoice and park again (so the approval<br>&gt; &gt;&gt; process will loop thereafter until the invoice is finally approved and<br>&gt; &gt;&gt; then deleted or posted).<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; The problem is that occasionally a reason for rejection is that the<br>&gt; &gt;&gt; workflow selected the wrong approver as the agent for the approval task.<br>&gt; &gt;&gt; This is due mostly to the less-than-accurate state of our org charts. So<br>&gt; &gt;&gt; yes, the right answer is to fix our org charts, but let's assume for a<br>&gt; &gt;&gt; variety of lame reasons this cannot be done.  AP has the request that<br>&gt; &gt; they<br>&gt; &gt;&gt; would like to be able to assign an agent when the invoice is parked<br>&gt; &gt; again,<br>&gt; &gt;&gt; which for me means like a dialog box pops up, giving the current agent,<br>&gt; &gt;&gt; and allowing AP to change the agent.  The selection would then be<br>&gt; &gt; written<br>&gt; &gt;&gt; to a container element and that container element used in the agent<br>&gt; &gt;&gt; determination of the subsequent approval step.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; So now, how to implement?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I currently have the checkbox "Confirm end of processing" checked in the<br>&gt; &gt;&gt; AP rejected invoice task, which allows AP to decide when they are done<br>&gt; &gt;&gt; editing the invoice (they may want to keep the item and edit it multiple<br>&gt; &gt;&gt; times as more information comes to them).  This dialog box would be a<br>&gt; &gt;&gt; great mechanism to allow them to modify the container.  However I would<br>&gt; &gt;&gt; either have to change the dialog box, or create my own (with input<br>&gt; &gt; fields<br>&gt; &gt;&gt; and functionality to write to the container) and use my Zdialog box<br>&gt; &gt;&gt; instead of the SAP standard.  I don't know how to do this.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I have also thought of creating a mini-loop in the rejected invoice step<br>&gt; &gt;&gt; which will keep a work item in the inbox of AP until they are finally<br>&gt; &gt;&gt; ready to park again.  This loop would have as a subsequent step some<br>&gt; &gt; kind<br>&gt; &gt;&gt; of dialog which would allow input into the container.  I am worried<br>&gt; &gt;&gt; however that this would clutter the logs with a new step every time the<br>&gt; &gt;&gt; work item is opened but not processed.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Any recommendations here?  I guess this falls under the category of<br>&gt; &gt; ad-hoc<br>&gt; &gt;&gt; or on-the-fly agent determination techniques.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Thanks for your help.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Michael McLey<br>&gt; &gt;&gt; MBUSI - IT Parts &amp; Administration<br>&gt; &gt;&gt; Mercedes-Benz US International, Inc.<br>&gt; &gt;&gt; 1 Mercedes Drive<br>&gt; &gt;&gt; Vance, AL 35490<br>&gt; &gt;&gt; PHONE:  (205) 462 - 5239<br>&gt; &gt;&gt; EMAIL:   michael.mcley@daimler.com<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; If you are not the intended addressee, please inform us immediately that<br>&gt; &gt;&gt; you have received this e-mail in error, and delete it. We thank you for<br>&gt; &gt;&gt; your cooperation.  _______________________________________________<br>&gt; &gt;&gt; SAP-WUG mailing list<br>&gt; &gt;&gt; SAP-WUG@mit.edu<br>&gt; &gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>&gt; &gt;&gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; SAP-WUG mailing list<br>&gt; &gt; SAP-WUG@mit.edu<br>&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; If you are not the intended addressee, please inform us immediately that<br>&gt; &gt; you have received this e-mail in error, and delete it. We thank you for<br>&gt; &gt; your cooperation.  _______________________________________________<br>&gt; &gt; SAP-WUG mailing list<br>&gt; &gt; SAP-WUG@mit.edu<br>&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>&gt; &gt;<br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; SAP-WUG mailing list<br>&gt; SAP-WUG@mit.edu<br>&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>                                               </body>
</html>