<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=017311119-11052005><FONT face=Arial color=#0000ff size=2>Hi
Sushil,</FONT></SPAN></DIV>
<DIV><SPAN class=017311119-11052005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=017311119-11052005><FONT face=Arial color=#0000ff size=2>How is
your approver list maintained? Is it in Org. structure or maintained in table?
If it's in table and you use Role resolution PFAC that will give you only
the approvers list. If you're maintaining Org. Structure then you can use
evaluation path in your code.</FONT></SPAN></DIV>
<DIV><SPAN class=017311119-11052005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=017311119-11052005><FONT face=Arial color=#0000ff
size=2>Another alternative is use Function module RH_TYPE_STRUC_HELP. You
can choose user, position or Organization depending upon your passed Otype
parameter.</FONT></SPAN></DIV>
<DIV><SPAN class=017311119-11052005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=017311119-11052005><FONT face=Arial color=#0000ff size=2>Hope
it helps.</FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><B><I><FONT face=Script color=#008080 size=5>Bijay
Shrestha</FONT></I></B><I></I><FONT face="Times New Roman"
size=5></FONT><BR></SPAN></P><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of
</B>Sushil Guragain<BR><B>Sent:</B> Wednesday, May 11, 2005 11:39
AM<BR><B>To:</B> SAP Workflow Users' Group<BR><B>Subject:</B> how to restrict
roles from selection criteria<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=414052816-11052005>Hi WF
Gurus,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=414052816-11052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=414052816-11052005>We are using roles
(AG) to establish possible agents for a task and allowing users to select an
approver from the list. I have used wizard to add the select agent task.
However, it seems to list the role also on the list of approvers along with
the users associated. Could someone tell me how I can just list the users
(assigned to those roles) on the selection screen without showing
roles?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=414052816-11052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=414052816-11052005>Thanks for your
help,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=414052816-11052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=414052816-11052005>Sushil</SPAN></FONT></DIV><PRE>This message contains information which may be confidential and privileged.
Unless you are the intended recipient (or authorized to receive this message
for the intended recipient), you may not use, copy, disseminate or disclose to
anyone the message or any information contained in the message. If you have
received the message in error, please advise the sender by reply e-mail, and
delete the message. Thank you very much.
(A)
</PRE></BLOCKQUOTE></BODY></HTML>