How to find out the agent without executing a step

Hussain, Forhad forhad.hussain at salford.gov.uk
Fri Jul 31 06:02:01 EDT 2009


Hello All,

I am using the standard rule 00000168 (superior users as) to find the WF initiators manager, but I would like to find out this agent before the step is executed. This is because I would like to escalate the work item to the manager's manager if a deadline is reached - meaning I would be able to use the agents id in the processing obsolete branch instead of the WF initiator to find the next level of approver.

After researching on SDN and SAP WUG, I think I need to use a Method that executes function module RH_GET_ACTORS and that I only need to pass ACT_OBJECT & ACTOR_CONTAINER parameters.

I filled the ACT_OBJECT with the rule 00000168, but I am unsure what parameter should be passed for ACTOR_CONTAINER. Please can anyone advice me on what value should be passed and if I am one the right line.

CALL FUNCTION 'RH_GET_ACTORS'
>
>
>
>  EXPORTING
>
>    ACT_OBJECT                = 'AC00000168 '
>
>  TABLES
>
>    ACTOR_CONTAINER           =

>  EXCEPTIONS
>
>    NO_ACTIVE_PLVAR           = 1
>
>    NO_ACTOR_FOUND            = 2
>
>    EXCEPTION_OF_ROLE_RAISED  = 3
>
>    NO_VALID_AGENT_DETERMINED = 4
>
>    OTHERS                    = 5.


Thanks

Forhad

Forhad Hussain
SAP Developer
SAP Team
Customer & Support Services
Salford City Council


DISCLAIMER: The information in this message is confidential and may be legally privileged. It is intended solely for the addressee.

Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful.
As a public body, Salford City Council may be required to disclose this email [or any response to it] under the Freedom of Information Act 2000, unless the information in it is covered by one of the exemptions in the Act. 
Please immediately contact the sender if you have received this message in error. 

For the full disclaimer please access http://www.salford.gov.uk/e-mail.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20090731/4f6a9d3c/attachment.htm


More information about the SAP-WUG mailing list