<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Problem in Agent determination</TITLE>

<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=248241416-17032005>Jocelyn,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=248241416-17032005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=248241416-17032005>The 
event is raising at the end of a gui transaction in 4.6C, where users input the 
data to be approved by&nbsp;a supervisor (an agent determined in the custom FM 
from the data he/she has entered). So it´s a common 
scenario.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=248241416-17032005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=248241416-17032005>I'm 
adding an empty background method before the first step, following your 
suggestion from a similar situation form the archives. Don´t know at this moment 
if this helps, because the errors occur at non predictable 
times.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=248241416-17032005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=248241416-17032005></SPAN></FONT><FONT face=Arial color=#0000ff 
size=2><SPAN class=248241416-17032005>Another idea? thanks in 
advance,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=248241416-17032005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=248241416-17032005>&nbsp;</DIV>
<DIV><BR>Cristian</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff><SPAN 
class=248241416-17032005></SPAN></FONT><FONT face=Tahoma><BR><FONT size=2><SPAN 
class=248241416-17032005><FONT face=Arial 
color=#0000ff>&nbsp;</FONT></SPAN>-----Mensaje 
original-----<BR><B>De:</B>&nbsp;</FONT><A 
href="mailto:jocelyn.dart@sap.com"><FONT 
size=2>jocelyn.dart@sap.com</FONT></A><BR><FONT size=2><B>Enviado el:</B> 
Miércoles, Marzo 16, 2005 11:17 p.m.<BR><B>Para:</B> SAP Workflow Users' 
Group<BR><B>Asunto:</B> RE: Problem in Agent 
determination<BR><BR></FONT></DIV></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV dir=ltr align=left><SPAN class=264231403-17032005><FONT face=Arial 
  color=#0000ff size=2>Sounds like a timing/perfomance problem - maybe the data 
  you use to find your agent doesn't exist/isn't updated at the workflow starts? 
  Wouldn't happen to be a PCR or ISR scenario by any chance?&nbsp; Or are you 
  raising events via a batch process?</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=264231403-17032005><FONT face=Arial 
  color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN class=264231403-17032005><FONT face=Arial 
  color=#0000ff size=2>You could try slowing it down by sending your event 
  linkage to the event queue and using the event queue job to deliver the 
  events.&nbsp; See trans SWEQADM. </FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=264231403-17032005><FONT face=Arial 
  color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN class=264231403-17032005><FONT face=Arial 
  color=#0000ff size=2>Jocelyn </FONT></SPAN></DIV><BR>
  <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
    <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
    <HR tabIndex=-1>
    <FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
    [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Gonzalez Cartagena, 
    Cristian A.<BR><B>Sent:</B> Thursday,17 March 2005 4:02 AM<BR><B>To:</B> 
    'sap-wug@mit.edu'<BR><B>Subject:</B> Problem in Agent 
    determination<BR></FONT><BR></DIV>
    <DIV></DIV>
    <P><FONT face=Arial size=2>&nbsp;Hi All,</FONT> </P>
    <P><FONT face=Arial size=2>We have a simple rule that determines the agent 
    from a Z table, using PFAC.</FONT> <BR><FONT face=Arial size=2>In QA 
    environment the workflow was tested OK, but in PRD client we got a problem 
    "Workflow nnnnn step 61: Error or exception resolving role 'AC90100004' 
    ".</FONT></P>
    <P><FONT face=Arial size=2>The error occurs in the first task of the 
    workflow. </FONT></P>
    <P><FONT face=Arial size=2>If workflow is&nbsp; restarted from transaction 
    SWPR, the user task is routed to the right agent.</FONT> </P>
    <P><FONT face=Arial size=2>The problem is for the same user starting the 
    same workflow in different times along one day: some workitems are OK, but 
    other workitems are wrong (appear in SWI2_DIAG with "agent" 
mark).</FONT></P>
    <P><FONT face=Arial size=2>Any help is highly appreciated.</FONT> </P>
    <P><FONT face=Arial size=2>Cristian</FONT> 
</P><BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>