<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY><!-- Converted from text/plain format -->
<P><FONT size=2><FONT face=Arial>Hi Margaret:<BR><BR>I am not sure if I
understand your problem, but if you want a pop up to let the user select an
approver, you can use function 'MC_POPUP_TO_MARK_VALUES'.
</FONT></FONT></P><FONT size=2>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Book Antiqua"
size=3>CALL FUNCTION 'MC_POPUP_TO_MARK_VALUES'</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Book Antiqua"><SPAN
style="mso-spacerun: yes"> </SPAN>EXPORTING</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Book Antiqua"><SPAN style="mso-spacerun: yes">
</SPAN>I_MAX_MARKED_VALUES<SPAN
style="mso-spacerun: yes"> </SPAN>=
1</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Book Antiqua"><SPAN style="mso-spacerun: yes">
</SPAN>I_MIN_MARKED_VALUES<SPAN
style="mso-spacerun: yes"> </SPAN>=
1</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Book Antiqua"><SPAN style="mso-spacerun: yes">
</SPAN>I_POPUP_TITLE<SPAN style="mso-spacerun: yes"> </SPAN><SPAN
style="mso-spacerun: yes"> </SPAN>=
'Please choose your approver'</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Book Antiqua"><SPAN style="mso-spacerun: yes">
</SPAN>TABLES</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Book Antiqua"><SPAN style="mso-spacerun: yes">
</SPAN>T_VALUES_FOR_MARKING<SPAN
style="mso-spacerun: yes"> </SPAN>=
MARKED_VALUES</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Book Antiqua"><SPAN
style="mso-spacerun: yes"> </SPAN>EXCEPTIONS</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Book Antiqua"><SPAN style="mso-spacerun: yes">
</SPAN>CANCEL_PUSHED<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN style="mso-spacerun: yes"> </SPAN>=
1</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Book Antiqua"><SPAN style="mso-spacerun: yes">
</SPAN>OTHERS<SPAN
style="mso-spacerun: yes">
</SPAN>= 2.</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Book Antiqua"
size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Book Antiqua"
size=3>First you pass your candidates in the table MARKED_VALUES. The you get
the selected approver by </FONT><FONT face=Arial><FONT face="Book Antiqua"
size=3>READ TABLE MARKED_VALUES WITH KEY MARKED = 'X'.</FONT></P>
<P>Please let me know if this works for you.</P>
<P><FONT color=#0000ff>Larry Hu</FONT></FONT><FONT
face=Arial><BR><BR></FONT>-----Original Message-----<BR>From:
sap-wug-bounces@mit.edu [<A
href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</A>] On
Behalf Of Hilsbos, Margaret A<BR>Sent: Friday, March 24, 2006 10:18 AM<BR>To:
SAP-WUG (E-mail)<BR>Subject: Present pop-up to user on save of purchase
requisition<BR><BR>Hello WUGers,<BR><BR>We are looking at implementing the
purchase requisition workflow in a 4.6c system. We are struggling with the
logic for selecting the first approver in the release strategy. We have one
person who creates requisitions for several departments, and currently they just
email the appropriate approver. If we use the standard rule with the IMG
configuration to assign the approvers, the closest we can get is to assign the
security role for the release code -- which returns too many agents.
The user exit doesn't seem to help because there is no value in the purchase
requisition that can be used to determine the correct recipient, which is based
on the requester, not the requisition creator. The "requester" field
doesn't help because that is a free text field (although only 12 characters). If
that field required a SAP user id then we could use that to derive the correct
recipient.<BR><BR>After studying this I think it would be ideal if we could
present the creator of the requisition with a "choose agent" dialog when they
save the requisition. However here is a stumbling block -<BR><BR>How to get the
dialog presented to the user when the purchase requisition is saved? I believe
workflow doesn't do this, even if the first step is marked "advance with
dialog". This general question keeps coming up in other contexts, too. I
searched SDN forum and WUG archives with no luck, except to find "it can't be
done without a custom transaction" - is that still the
case? <BR><BR>Does anyone have any other recommendations for the purchase
requisition question? Am I (hopefully) missing something
obvious?<BR><BR>Any suggestions appreciated!<BR><BR><BR>Margaret Hilsbos<BR>Day
&
Zimmermann<BR><BR><BR>_______________________________________________<BR>SAP-WUG
mailing list<BR>SAP-WUG@mit.edu<BR><A
href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR></P></FONT><div id="##disclaimer##"><p></p><p style="FONT-SIZE: x-small; FONT-FAMILY: Arial, Sans-Serif">This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.</p></div></BODY></HTML>