<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<BR>Thank you Flavio,<BR>
My task is a general task. I did the debug and found the following.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FM&nbsp; YXXX is returning the agents<BR>
&nbsp;&nbsp;&nbsp;but FM RH_GET_ACTORS is evaluating this table form excluded agents and others.<BR>
&nbsp;<BR>
At that point of time there is a check if this task is a general task....<BR>
&nbsp;<BR>
for this task general task flag is 'BLANK' hence all the actors are going into error tab.<BR>
&nbsp;<BR>
I check the task definition in both task and workflow...it is defined as general task and executable by al l users..<BR>
&nbsp;<BR>
Now I know the problem.....thank you so much for your tip...<BR>
But I still did not find&nbsp; a solution.<BR>
&nbsp;<BR>
&nbsp;<BR>
thanks Gurus<BR>
Ramanan<BR><BR>
<BLOCKQUOTE>
<HR>
From: oliveiraflavio@hotmail.com<BR>To: sap-wug@mit.edu<BR>Subject: RE: Role resolution error<BR>Date: Wed, 31 Oct 2007 13:40:16 +0000<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass EC_body.hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
Your task is probably a "General Task". What is happening is that the role did not find any valid agent to send the task.<BR>&nbsp;<BR>What I suggest is&nbsp;to debug the function module to verify why the role could not find the correct agent.<BR><BR>Regads,<BR>Flavio.<BR>
<BLOCKQUOTE>
<HR>
From: r_m_n_n@hotmail.com<BR>To: sap-wug@mit.edu<BR>Subject: Role resolution error<BR>Date: Wed, 31 Oct 2007 09:21:35 -0400<BR><BR>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass EC_body.hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
<BR>
<BLOCKQUOTE>
<DIV>Hi Gurus,</DIV>
<DIV>This question may be frustrating but I am hitting the wall , please help me.</DIV>
<DIV>&nbsp;</DIV>
<DIV>4.6C / 620</DIV>
<DIV>Workflow is running OK.</DIV>
<DIV>Using role 'AC90XXXX1' with function module YXXXX for resolving the agents.</DIV>
<DIV>This is a custom workflow implemented 9 months ago and no issues in resolving the role</DIV>
<DIV>Z is table used to get the agents for each task. I have to choos this because of frequent changes in SAP users and some other company restrictions.</DIV>
<DIV>I wrote a program and used FM <FONT size=1>RH_GET_ACTORS passed the right values for the BO and got the roles resolved for all the tasks.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>Situation :</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I created a task and assigned this role. Because this role will call the FM, based on the current status of the object FM will determine who is the agent for this task / status.</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Included this task in the workflow and tested everything OK.</DIV>
<DIV>In the workflow log when I click on the agents, I get possible agents displayed. When some on owns the task it has an icon to indicate that agains that agent. </DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This works OK in my development system.</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>The Question is : This does not happen in my test system. The task is sent to all users. I purposely did not select the check bkx to terminate the WF if role resolution results in error.</STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks for your inputs.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I wrote such a long e-mail to reduce many back and forth questions. If you have any suggestions please do not hesitate to push the ball back and forth in the court.</DIV>
<DIV>&nbsp;</DIV></BLOCKQUOTE><BR>
<HR>
Peek-a-boo FREE Tricks &amp; Treats for You! <A href="http://www.reallivemoms.com/?ocid=TXT_TAGHM&amp;loc=us" target=_blank>Get 'em!</A> </BLOCKQUOTE><BR>
<HR>
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! <A href="http://spaces.live.com/spacesapi.aspx?wx_action=create&amp;wx_url=/friends.aspx&amp;mkt=en-us" target=_blank>Try it!</A> </BLOCKQUOTE><br /><hr />Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! <a href='http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews' target='_new'>Try now!</a></body>
</html>