Present pop-up to user on save of purchase requisition

lianghuan.x.hu@accenture.com lianghuan.x.hu at accenture.com
Mon Mar 27 09:38:12 EST 2006


Hi Margaret:

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'. 

CALL FUNCTION 'MC_POPUP_TO_MARK_VALUES'

 EXPORTING

   I_MAX_MARKED_VALUES        = 1

   I_MIN_MARKED_VALUES        = 1

   I_POPUP_TITLE              = 'Please choose your approver'

  TABLES

    T_VALUES_FOR_MARKING       = MARKED_VALUES

 EXCEPTIONS

   CANCEL_PUSHED              = 1

   OTHERS                     = 2.

 

First you pass your candidates in the table MARKED_VALUES. The you get
the selected approver by READ TABLE MARKED_VALUES WITH KEY MARKED = 'X'.

Please let me know if this works for you.

Larry Hu

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Hilsbos, Margaret A
Sent: Friday, March 24, 2006 10:18 AM
To: SAP-WUG (E-mail)
Subject: Present pop-up to user on save of purchase requisition

Hello WUGers,

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.

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 -

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? 

Does anyone have any other recommendations for the purchase requisition
question?   Am I (hopefully) missing something obvious?

Any suggestions appreciated!


Margaret Hilsbos
Day & Zimmermann


_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug




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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20060327/f4d9ac07/attachment.htm


More information about the SAP-WUG mailing list