Send mail item to a ROLE

Pyc, Mark Mark.Pyc at amersham.com
Mon Jan 27 06:30:04 EST 2003


G'day,
 
The complexity shouldn't matter much. Within a method call standard function
RH_GET_ACTORS to execute the role and return the actors.
 
Have fun,
Mark
 
Data: it_actor_tab like swhactor occurs 0 with header line.
swc_container role_container.                    "Define Container
 
<fill container as appropriate>
 
CALL FUNCTION 'RH_GET_ACTORS'
  EXPORTING
    ACT_OBJECT                      = 'AC99000004'
*   ACT_TASK                        =
*   ACT_WI_ID                       =
*   ACT_PLVAR                       =
    SEARCH_DATE                     = SY-DATUM
  TABLES
    ACTOR_CONTAINER                 = role_container
*   EXCLUDED_AGENTS                 =
    ACTOR_TAB                       = it_actor_tab
*   ERROR_TAB                       =
 EXCEPTIONS
    NO_ACTIVE_PLVAR                 = 1
    NO_ACTOR_FOUND                  = 2
    EXCEPTION_OF_ROLE_RAISED        = 3
    NO_VALID_AGENT_DETERMINED       = 4
    OTHERS                          = 5.
 
 
 
-----Original Message-----
From: Ahmet Engin Tekin [mailto:aetekin at yahoo.com]
Sent: Monday, January 27, 2003 11:14
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Send mail item to a ROLE
 
 
yes you're right, the complexity of that depends on what type of role have
you created. I hope it's a function module :)
 John A Haworth <jhoworth at csc.com> wrote:Hi thanks for that, my problem is
how do I get the role resolution result
in the container element in the first place, i suppose i need a previous
task that only resolves the role and populates the container element.
 
John
 
 
 
Ahmet Engin
Tekin @yahoo.com> cc:
Sent by: SAP Subject: Re: Send mail item to a ROLE
Workflow
 
 
27/01/2003 09:29
Please respond
to "SAP Workflow
Users' Group"
 
 
 
 
 
 
Hi
Try this : Create a wf container element with type syst-AGENT, and store
the role resolution result in that container element. then in the e-mail
step choose "expression" as the reciepent and choose the container element.
Also choose the corresponding reciepent type from the mail task binding. In
case your role resolution returns more than one agent you may create a
container element with multiline option , i think that should work
Regards
Ahmet Engin Tekin
John A Haworth wrote:Hi workflowers
 
I am trying to send a mailitem to a ROLE, but the using the mail wizard, a
role is not an option, any advice on how to achieve this?
 
Thanks
 
John
 
 
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
 
 
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
 


More information about the SAP-WUG mailing list