Send mail item to a ROLE
John A Haworth
jhoworth at csc.com
Wed Feb 12 11:51:33 EST 2003
Mark
Thanks for the detail below, could you help with a couple of points, as i
am becoming confused:
after using the RH_GET_ACTORS In the program for the object method, do I
use swc_set_table container 'Container element ' it_actor_tab (from your
suggestion below).
and if so , in the workflow container do i define the 'Container element'
as referencing swhactor actorID, what about the Otype field, how would the
expression in the sendmail task then use the 'Container element' as i want
to ultimately use an org unit to send the mail to, resolved from a Role
with Responsibilities.
Many thanks
"Pyc, Mark"
<Mark.Pyc To: SAP-WUG at MITVMA.MIT.EDU
@amersham.com> cc:
Sent by: SAP Subject: Re: Send mail item to a ROLE
Workflow
<Owner-SAP-WUG
27/01/2003 11:30
Please respond
to "SAP Workflow
Users' Group"
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