<html><div style='background-color:'><DIV class=RTE>I have 2 Qs. I am a NewBe, and I have used a lot of time on this, and I am giving in...</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>1. I am trying to use this rule for Purchasing group.<BR><BR>When I try the rule, AC00900010, in transaction PFAC, it returns the<BR>agents set up to for my purhcasing group<BR><BR>When I run my method (I have added to a object) with the function,<BR>'RH_GET_ACTORS' , it fails, and I get a exeption 3 every time. The error<BR>message saying "Objekttype is not valid as SAP-org.objekttype".<BR><BR>I have checed table T7791 and here I do find OBJTYP = T024.<BR>The only thing I send in to the function is the rule and the<BR>(ACTOR_CONTAINER) purchasing group.<BR>"BAM" is one of my purchasing groups)<BR><BR><BR>How do I get this to work, what am I missing ???<BR><BR>************************<BR>swc_set_element ac_container 'T024' 'BAM'.<BR><BR>CALL FUNCTION 'RH_GET_ACTORS'<BR>&nbsp; EXPORTING<BR>&nbsp;&nbsp;&nbsp; ACT_OBJECT = 'AC00900010'<BR>&nbsp; TABLES<BR>&nbsp;&nbsp;&nbsp; 
ACTOR_CONTAINER = ac_container<BR>&nbsp;&nbsp;&nbsp; ACTOR_TAB = ac_agent<BR>&nbsp; EXCEPTIONS<BR>&nbsp;&nbsp; NO_ACTIVE_PLVAR = 1<BR>&nbsp;&nbsp; NO_ACTOR_FOUND = 2<BR>&nbsp;&nbsp; EXCEPTION_OF_ROLE_RAISED = 3<BR>&nbsp;&nbsp; NO_VALID_AGENT_DETERMINED = 4<BR>&nbsp;&nbsp; NO_CONTAINER = 5<BR>&nbsp;&nbsp; OTHERS = 6<BR>************<BR></DIV>
<DIV class=RTE>2. I just want to get agents based on a rule.</DIV>
<DIV class=RTE>If I create an activity and use the AC rule 'AC00900010'. How do I get my agents with this activity in a background job. Is it posible ? How wil the task look like (containers, object, - method used) ? </DIV>
<DIV class=RTE><BR>Please advise, Tom<BR></DIV></div><br clear=all><hr>Skaff deg en e-postkonto <a href="http://g.msn.com/8HMAENNO/2752??PS=47575" target="_top">MSN Hotmail</a> Med markedets beste SPAM-filter. Gratis!</html>