<!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.2900.2627" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=628471020-11052005><FONT face=Arial 
color=#0000ff size=2>Hi Bijay,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=628471020-11052005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=628471020-11052005><FONT face=Arial 
color=#0000ff size=2>We have maintained our approver list by creating a role for 
each approver. When we assign the role to user - the user becomes the potential 
approver. We are using AG for defining the possible agents. In other words, I 
just want to see the list of users with org unit US + user 
id.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=628471020-11052005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=628471020-11052005><FONT face=Arial 
color=#0000ff size=2>The wizard allowed me to add the step that will let the 
user select manager from the list of approvers (list of users assigned to that 
role). It also lists the role on the pop-up screen. Please see the 
attachment.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=628471020-11052005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=628471020-11052005><FONT face=Arial 
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=628471020-11052005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=628471020-11052005><FONT face=Arial 
color=#0000ff size=2>Sushil</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=628471020-11052005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=628471020-11052005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Bijay 
Shrestha<BR><B>Sent:</B> Wednesday, May 11, 2005 2:17 PM<BR><B>To:</B> SAP 
Workflow Users' Group<BR><B>Subject:</B> RE: how to restrict roles from 
selection criteria<BR></FONT><BR></DIV>
<DIV></DIV>
<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>&nbsp;</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&nbsp;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>&nbsp;</DIV>
<DIV><SPAN class=017311119-11052005><FONT face=Arial color=#0000ff 
size=2>Another alternative is use Function module&nbsp; 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>&nbsp;</DIV>
<DIV><SPAN class=017311119-11052005><FONT face=Arial color=#0000ff size=2>Hope 
it helps.</FONT></SPAN></DIV>
<DIV>&nbsp;</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>&nbsp;</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&nbsp;those roles) on the selection screen&nbsp;without showing 
  roles?</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=414052816-11052005></SPAN></FONT>&nbsp;</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>&nbsp;</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><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></BODY></HTML>