<HTML><BODY><DIV style='font-family: "Verdana"; font-size: 10pt;'><DIV>
<DIV>Are you stripping off the first two characters of&nbsp;&nbsp;WF_<SPAN class=correction><SPAN id="">initiator</SPAN></SPAN> before moving it to your user id field? The first two positions being object type (US for user). If not, the system may not recognize the value as a valid user and may be using&nbsp;the sy-uname.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Best Regards,<BR>Ramki Maley,<BR>WF Developer - USCBP.<BR></DIV>
<DIV>&nbsp;</DIV>&nbsp;<BR>-----Original Message-----<BR>From: Josie Henriques &lt;jhenriques_procwork@timbrasil.com.br&gt;<BR>To: SAP Workflow Users' Group &lt;sap-wug@mit.edu&gt;<BR>Sent: Tue, 8 Nov 2005 18:06:18 -0200<BR>Subject: RE: WF-BATCH<BR><BR>
<STYLE>
.AOLPlainTextBody {
    margin: 0px;
    font-family: Tahoma, Verdana, Arial, Sans-Serif;
    font-size: 12px; 
    color: #000; 
    background-color: #fff; 
}

.AOLPlainTextBody pre {
    font-size: 9pt;
}

.AOLInlineAttachment {
    margin: 10px;
}

.AOLAttachmentHeader {
    border-bottom: 2px solid #E9EAEB;
    background: #F9F9F9;
}

.AOLAttachmentHeader .Title {
    font: 11px Tahoma;
    font-weight: bold;
    color: #666666;
    background: #E9EAEB; 
    padding: 3px 0px 1px 10px;
}

.AOLAttachmentHeader .FieldLabel {
    font: 11px Tahoma; 
    font-weight: bold;
    color: #666666;
    padding: 1px 10px 1px 9px;
}

.AOLAttachmentHeader .FieldValue {
    font: 11px Tahoma; 
    color: #333333;
}

</STYLE>

<DIV id=AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:SmartTagType name="PersonName" namespaceuri="urn:schemas-microsoft-com:office:smarttags" ="">
<STYLE>

 /* Font Definitions */
 @#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 font-face
    {font-family:Wingdings;
    panose-1:5 0 0 0 0 0 0 0 0 0;}
@#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 font-face
    {font-family:Tahoma;
    panose-1:2 11 6 4 3 5 4 4 2 4;}
@#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 font-face
    {font-family:Verdana;
    panose-1:2 11 6 4 3 5 4 4 2 4;}
@#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 font-face
    {font-family:"Californian FB";
    panose-1:2 7 4 3 6 8 11 3 2 4;}
 #AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin:0cm;
    margin-bottom:.0001pt;
    font-size:12.0pt;
    font-family:"Times New Roman";}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 a:link, span.MsoHyperlink
    {color:blue;
    text-decoration:underline;}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 a:visited, span.MsoHyperlinkFollowed
    {color:blue;
    text-decoration:underline;}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 pre
    {margin:0cm;
    margin-bottom:.0001pt;
    font-size:10.0pt;
    font-family:"Courier New";}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 p.aolplaintextbody, li.aolplaintextbody, div.aolplaintextbody
    {margin:0cm;
    margin-bottom:.0001pt;
    background:white;
    font-size:9.0pt;
    font-family:Tahoma;
    color:black;}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 p.aolinlineattachment, li.aolinlineattachment, div.aolinlineattachment
    {margin:7.5pt;
    font-size:12.0pt;
    font-family:"Times New Roman";}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 p.aolattachmentheader, li.aolattachmentheader, div.aolattachmentheader
    {mso-margin-top-alt:auto;
    margin-right:0cm;
    mso-margin-bottom-alt:auto;
    margin-left:0cm;
    background:#F9F9F9;
    border:none;
    padding:0cm;
    font-size:12.0pt;
    font-family:"Times New Roman";}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 p.title, li.title, div.title
    {mso-margin-top-alt:auto;
    margin-right:0cm;
    mso-margin-bottom-alt:auto;
    margin-left:0cm;
    font-size:12.0pt;
    font-family:"Times New Roman";}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 p.title1, li.title1, div.title1
    {mso-margin-top-alt:auto;
    margin-right:0cm;
    mso-margin-bottom-alt:auto;
    margin-left:0cm;
    background:#E9EAEB;
    font-size:8.5pt;
    font-family:Tahoma;
    color:#666666;
    font-weight:bold;}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 p.fieldlabel, li.fieldlabel, div.fieldlabel
    {mso-margin-top-alt:auto;
    margin-right:0cm;
    mso-margin-bottom-alt:auto;
    margin-left:0cm;
    font-size:12.0pt;
    font-family:"Times New Roman";}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 p.title2, li.title2, div.title2
    {mso-margin-top-alt:auto;
    margin-right:0cm;
    mso-margin-bottom-alt:auto;
    margin-left:0cm;
    background:#E9EAEB;
    font-size:8.5pt;
    font-family:Tahoma;
    color:#666666;
    font-weight:bold;}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 p.fieldlabel1, li.fieldlabel1, div.fieldlabel1
    {mso-margin-top-alt:auto;
    margin-right:0cm;
    mso-margin-bottom-alt:auto;
    margin-left:0cm;
    font-size:8.5pt;
    font-family:Tahoma;
    color:#666666;
    font-weight:bold;}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 p.fieldvalue, li.fieldvalue, div.fieldvalue
    {mso-margin-top-alt:auto;
    margin-right:0cm;
    mso-margin-bottom-alt:auto;
    margin-left:0cm;
    font-size:12.0pt;
    font-family:"Times New Roman";}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 p.title3, li.title3, div.title3
    {mso-margin-top-alt:auto;
    margin-right:0cm;
    mso-margin-bottom-alt:auto;
    margin-left:0cm;
    background:#E9EAEB;
    font-size:8.5pt;
    font-family:Tahoma;
    color:#666666;
    font-weight:bold;}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 p.fieldlabel2, li.fieldlabel2, div.fieldlabel2
    {mso-margin-top-alt:auto;
    margin-right:0cm;
    mso-margin-bottom-alt:auto;
    margin-left:0cm;
    font-size:8.5pt;
    font-family:Tahoma;
    color:#666666;
    font-weight:bold;}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 p.fieldvalue1, li.fieldvalue1, div.fieldvalue1
    {mso-margin-top-alt:auto;
    margin-right:0cm;
    mso-margin-bottom-alt:auto;
    margin-left:0cm;
    font-size:8.5pt;
    font-family:Tahoma;
    color:#333333;}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 span.EmailStyle31
    {mso-style-type:personal-reply;
    font-family:Arial;
    color:navy;}
@#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 page Section1
    {size:612.0pt 792.0pt;
    margin:72.0pt 90.0pt 72.0pt 90.0pt;}
#AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 div.Section1
    {page:Section1;}

</STYLE>

<DIV class=Section1>
<DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp; <o:p></o:p></SPAN></FONT></DIV>
<DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;Hi Ramki,<o:p></o:p></SPAN></FONT></DIV>
<DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></DIV>
<DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I'm sure that the WF_initiator is not WF-BATCH. And I've tested just the BAPI and it's recording the right user. But not when I use the Workflow. </SPAN></FONT><FONT face=Wingdings color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Wingdings">L</SPAN></FONT><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></DIV>
<DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></DIV>
<DIV>
<DIV class=MsoNormal><STRONG><B><FONT face="Californian FB" color=maroon size=2><SPAN lang=PT-BR style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Californian FB'">Josie Henriques</SPAN></FONT></B></STRONG><FONT color=navy><SPAN lang=PT-BR style="COLOR: navy"><o:p></o:p></SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<DIV class=MsoNormal><B><FONT face=Tahoma size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B><SPAN style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>workflow99@aol.com<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> terça-feira, 8 de novembro de 2005 17:47<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:PersonName w:st="on">sap-wug@mit.edu</st1:PersonName><BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: WF-BATCH</SPAN></FONT><o:p></o:p></DIV></DIV>
<DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></DIV>
<DIV>
<DIV>
<DIV>
<DIV class=MsoNormal><SPAN class=correction><FONT face=Verdana size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Josie</SPAN></SPAN></FONT></SPAN><FONT face=Verdana size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">,<o:p></o:p></SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=MsoNormal><FONT face=Verdana size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">&nbsp;<o:p></o:p></SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=MsoNormal><FONT face=Verdana size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">First make sure that the WF_<SPAN class=correction><SPAN id="">initiator</SPAN></SPAN> (event creator)&nbsp;is not WF_BATCH user.&nbsp; <o:p></o:p></SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=MsoNormal><FONT face=Verdana size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">I&nbsp;know of&nbsp;at least&nbsp;one <SPAN class=correction><SPAN id="">BAPI</SPAN></SPAN> which has&nbsp;user id as a parameter but ignores the value supplied and uses <SPAN class=correction><SPAN id="">sy-uname</SPAN></SPAN> instead.&nbsp;So&nbsp;test the <SPAN class=correction><SPAN id="">BAPI</SPAN></SPAN> independently&nbsp;by passing a value other than your user id&nbsp;&nbsp;in the <SPAN class=correction><SPAN id="">uname</SPAN></SPAN> parameter and&nbsp;check if it does use the supplied value. If it does not, you can request SAP to correct the problem.<o:p></o:p></SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=MsoNormal><FONT face=Verdana size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">&nbsp;<o:p></o:p></SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=MsoNormal><FONT face=Verdana size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Best Regards,<o:p></o:p></SPAN></FONT></DIV></DIV>
<DIV><SPAN id="">
<DIV class=MsoNormal><SPAN class=correction><FONT face=Verdana size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Ramki</SPAN></SPAN></FONT></SPAN><FONT face=Verdana size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"> <SPAN class=correction><SPAN id="">Maley</SPAN></SPAN>.<o:p></o:p></SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=MsoNormal><FONT face=Verdana size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">&nbsp;<o:p></o:p></SPAN></FONT></DIV></DIV>
<DIV class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<BR><BR></SPAN></FONT><FONT face=Tahoma color=black size=1><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Tahoma"><o:p></o:p></SPAN></FONT></DIV></DIV></DIV></DIV></DIV><!-- end of AOLMsgPart_3_93d3b533-2a0a-4a30-8430-8082e000b9a4 -->
<DIV class=AOLPlainTextBody id=AOLMsgPart_5_93d3b533-2a0a-4a30-8430-8082e000b9a4><PRE><TT>_______________________________________________
SAP-WUG mailing list
<A href="mailto:SAP-WUG%40mit.edu">SAP-WUG@mit.edu</A>
<A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A>
</TT></PRE></DIV><!-- end of AOLMsgPart_5_93d3b533-2a0a-4a30-8430-8082e000b9a4 -->
<DIV class=AOLInlineAttachment id=AOLMsgPart_4_93d3b533-2a0a-4a30-8430-8082e000b9a4>
<DIV class=AOLAttachmentHeader>
<DIV class=Title>Attached Image: <A href="http://m02.webmail.aol.com/get-attachment.aspx?uid=1.12168537&amp;folder=New+Mail&amp;partId=4&amp;saveAs=container_workitem.JPG">container_workitem.JPG</A> </DIV></DIV>[Image removed] </DIV><!-- end of AOLMsgPart_4_93d3b533-2a0a-4a30-8430-8082e000b9a4 --></o:SmartTagType></DIV></DIV></BODY></HTML>