How to find out the agent without executing a step

Hussain, Forhad forhad.hussain at salford.gov.uk
Thu Aug 13 09:15:27 EDT 2009


Hi,

after I create the method, do I create a standard task in PFTC using the method I have created? is this this task then to be used in the wf as a step to find the agent?

Thanks

Forhad

________________________________
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Sue Doughty
Sent: 31 July 2009 13:06
To: SAP Workflow Users' Group
Subject: RE: How to find out the agent without executing a step

Forhad,

This is what I do in the method.  Lt_container really doesn't contain anything.  Lt_agents will contain the entries found.


BEGIN_METHOD GETBENEFITSAGENTS CHANGING CONTAINER.
DATA:
      lt_agents      type standard table of swhactor,
      benefitsagenst type standard table of swhactor,
      lt_holders     type standard table of swhactor,
      wa_lt_agents   type swhactor,
      num_lines      type i,
      ACTOR_TAB      type standard table of swhactor,
      destn          type rfcdes-rfcdest.

swc_container lt_container.
swc_clear_container lt_container.

*Get Benefits agents based on Rule 90100005
CALL FUNCTION 'RH_GET_ACTORS'
  DESTINATION destn
  EXPORTING
    ACT_OBJECT                = 'AC90100005'
  TABLES
    ACTOR_CONTAINER           = lt_container
    ACTOR_TAB                 = lt_agents
  EXCEPTIONS
    NO_ACTIVE_PLVAR           = 1
    NO_ACTOR_FOUND            = 2
    EXCEPTION_OF_ROLE_RAISED  = 3
    NO_VALID_AGENT_DETERMINED = 4
    OTHERS                    = 5.


Regards,
Sue T. Doughty
SAP Workflow Specialist
Old Dominion Freight Line, Inc.
500 Old Dominion Way
Thomasville, NC 27360
Phone:  (336) 822-5189
Toll Free (800 ) 432-6335, ext. 5189
Email:  sue.doughty at odfl.com<mailto:sue.doughty at odfl.com>
________________________________
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Hussain, Forhad
Sent: Friday, July 31, 2009 6:02 AM
To: 'sap-wug at mit.edu'
Subject: How to find out the agent without executing a step

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.


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/20090813/075b82cf/attachment.htm


More information about the SAP-WUG mailing list