Present pop-up to user on save of purchase requisition

lianghuan.x.hu@accenture.com lianghuan.x.hu at accenture.com
Mon Mar 27 16:56:32 EST 2006


Margaret:
 
I think you can easily do this stuff as the first step in your workflow.
And this step does two things: (1), depending how you define your
approvers, try to get all the approver candidates in an internal table,
and (2) pass that internal table to the function. The ABAP code is not
that complex. Just try the function via t-code SE37, and you'll find
that it is simple to use. But to do it for production, you might need an
ABAP developer to assist you.
 
Thanks,
Larry

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Hilsbos, Margaret A
Sent: Monday, March 27, 2006 4:24 PM
To: SAP Workflow Users' Group
Subject: RE: Present pop-up to user on save of purchase requisition


Hi Larry,
 
Thanks for your suggestion.
 
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 :-)  )
 
Can this be called when the user saves the purchase req? If so how does
the selected value get passed to the workflow?
 
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.
 
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.
 
Thanks,
 
Margaret
 
 

	-----Original Message-----
	From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu]On
Behalf Of lianghuan.x.hu at accenture.com
	Sent: Monday, March 27, 2006 9:38 AM
	To: sap-wug at mit.edu
	Subject: RE: Present pop-up to user on save of purchase
requisition
	
	

	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.



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/45ae47fa/attachment.htm


More information about the SAP-WUG mailing list