CALL FUNCTION 'RH_GET_ACTORS' . How does it work?

Adao-Cruz, Miguel miguel.adao-cruz at capgemini.com
Mon Feb 7 09:31:28 EST 2005


Hi,



Have a look at transaction PFOM.



Cheers



___________________________________________________________________________
Miguel Adao-Cruz | Capgemini | Woking
Technology Services
T.+44-870-238-2927 | Int.700 2927 | www.capgemini.com
<file:///C:\Documents%20and%20Settings\madaocru\Application%20Data\Microsoft
\Signatures\www.capgemini.com>


Join the Collaborative Business Experience
___________________________________________________________________________

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of
H C
Sent: 07 February 2005 14:05
To: sap-wug at mit.edu
Subject: CALL FUNCTION 'RH_GET_ACTORS' . How does it work?



I have 2 Qs. I am a NewBe, and I have used a lot of time on this, and I am
giving in...



1. I am trying to use this rule for Purchasing group.

When I try the rule, AC00900010, in transaction PFAC, it returns the
agents set up to for my purhcasing group

When I run my method (I have added to a object) with the function,
'RH_GET_ACTORS' , it fails, and I get a exeption 3 every time. The error
message saying "Objekttype is not valid as SAP-org.objekttype".

I have checed table T7791 and here I do find OBJTYP = T024.
The only thing I send in to the function is the rule and the
(ACTOR_CONTAINER) purchasing group.
"BAM" is one of my purchasing groups)


How do I get this to work, what am I missing ???

************************
swc_set_element ac_container 'T024' 'BAM'.

CALL FUNCTION 'RH_GET_ACTORS'
  EXPORTING
    ACT_OBJECT = 'AC00900010'
  TABLES
    ACTOR_CONTAINER = ac_container
    ACTOR_TAB = ac_agent
  EXCEPTIONS
   NO_ACTIVE_PLVAR = 1
   NO_ACTOR_FOUND = 2
   EXCEPTION_OF_ROLE_RAISED = 3
   NO_VALID_AGENT_DETERMINED = 4
   NO_CONTAINER = 5
   OTHERS = 6
************

2. I just want to get agents based on a rule.

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) ?


Please advise, Tom




________________________________

Skaff deg en e-postkonto MSN Hotmail
<http://g.msn.com/8HMAENNO/2752??PS=47575>  Med markedets beste SPAM-filter.
Gratis!



This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20050207/6592014f/attachment.htm


More information about the SAP-WUG mailing list