<HTML><BODY>
<div>Tom,<br>
<br>
Your <span class="correction" id="">resp</span>. role must have <span class="correction" id="">WERKS</span> as a container element that for dialog steps is supplied via Role binding in step definition. In your code, you must therefore pass this value in the Actor_ Container tables parameter of the FUNCTION 'RH_GET_ACTORS'. You can use the standard macros to create and populate the container as below.<br>
<br>
include &lt;<span class="correction" id="">cntn01</span>&gt;.<br>
swc_container wa_container.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
 sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
swc_create_container wa_container.<br>
<br>
swc_set_element wa_container '<span class="correction" id="">WERKS</span>' wa_<span class="correction" id="">werks</span>.<br>
<br>
<br>
</div>

<div style="clear: both;">Best Regards,<br>
<span class="correction" id="">Ramki</span> <span class="correction" id="">Maley</span>.</div>

<div>&nbsp;</div>
&nbsp;<br>
-----Original Message-----<br>
From: tompeou@gmail.com<br>
To: sap-wug@mit.edu<br>
Sent: Sun, 6 Aug 2006 2:18 AM<br>
Subject: Agent Determination From Role Resolution for Background Tasks<br>
<br>






<div id="AOLMsgPart_3_ae27c356-d504-4323-b3fb-1ad494c2c3f6">


<div>Dear&nbsp;All,</div>


<div>&nbsp;</div>


<div>I'm on 4.6C...</div>


<div>For Background Tasks (Send Mail) in <span class="correction" id="">Workflow</span>, there is no option to send mail to a "Role".</div>


<div>I have gotten around this by creating an <span class="correction" id="">multiline</span> attribute (in <span class="correction" id="">BOR</span>)&nbsp;with CALL FUNCTION 'RH_GET_ACTORS'.</div>


<div>This works fine for getting all agents in a Role.</div>


<div>&nbsp;</div>


<div>However, when I have a role that has multiple "Responsibilities" and&nbsp;Resolves agents by <span class="correction" id="">PA0001-WERKS</span>... Then how can I get these selected agents ONLY into a <span class="correction" id="">multiline</span> attribute (in <span class="correction" id="">BOR</span>) or a <span class="correction" id="">multiline</span> container in <span class="correction" id="">WF</span>?&nbsp;
</div>


<div>&nbsp;</div>


<div>Can anyone tell me if there is a function module I can use to resolve agents in a role? Or if there is any other way of resolving only the agents needed according to the <span class="correction" id="">PA0001-WERKS</span>&nbsp;read in?</div>


<div>&nbsp;</div>


<div>Any help would be appreciated.</div>


<div>&nbsp;</div>


<div>Kind regards,</div>


<div>Tom&nbsp;&nbsp;</div>


<div>&nbsp;</div>


</div>
 <!-- end of AOLMsgPart_3_ae27c356-d504-4323-b3fb-1ad494c2c3f6 -->


<div id="AOLMsgPart_4_ae27c356-d504-4323-b3fb-1ad494c2c3f6" class="AOLPlainTextBody">

<pre><tt>_______________________________________________
SAP-WUG mailing list
<a href="mailto:SAP-WUG%40mit.edu">SAP-WUG@mit.edu</a>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a>
</tt></pre>
</div>
 <!-- end of AOLMsgPart_4_ae27c356-d504-4323-b3fb-1ad494c2c3f6 -->


<div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
<a href="http://pr.atwola.com/promoclk/1615326657x4311227241x4298082137/aol?redir=http%3A%2F%2Fwww%2Eaol%2Ecom" target="_blank"><b>Check out AOL.com today</b></a>. Breaking news, video search, pictures, email and IM. All on demand. Always Free.<br />
</div>

</BODY></HTML>