<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE></TITLE>
<META content="MSHTML 6.00.2800.1528" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff size=2>Hi
Larry,</FONT></SPAN></DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff size=2>Thanks
for your suggestion.</FONT></SPAN></DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff size=2>We're
even. I'm not sure if I understand where I would apply this call function. (I
know just enough ABAP to write simple workflow methods when I absolutely have
to, and I'm not exactly expert at workflow either - yet :-)
)</FONT></SPAN></DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff size=2>Can
this be called when the user saves the purchase req? If so how does the selected
value get passed to the workflow?</FONT></SPAN></DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff size=2>If the
workflow is already running, in 4.6c I think I can use the "choose agent"
wizard. My problem is that I need the initiator to immediately choose the
agent, and I can't get a popup on the first step because workflow just doesn't
seem to know how to do that.</FONT></SPAN></DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff size=2>If
this function can be called on save and then pass the value to the workflow,
then I'm home free. I just need a little clarification on how to make the
connections.</FONT></SPAN></DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff
size=2>Margaret</FONT></SPAN></DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=041151621-27032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader 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>lianghuan.x.hu@accenture.com<BR><B>Sent:</B> Monday, March 27, 2006 9:38
AM<BR><B>To:</B> sap-wug@mit.edu<BR><B>Subject:</B> RE: Present pop-up to user
on save of purchase requisition<BR><BR></FONT></DIV><!-- 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></BLOCKQUOTE></BODY></HTML>