SRM - Approval Note Update for Shopping Cart on 7.0

Dale Brown dale.brown at duke.edu
Mon Jan 24 14:06:50 EST 2011


Ramki -  Thanks for the info.   But what I'm looking for is something that can tell me the current status as it comes into the doc_change_badi - not after it has left the doc_change_badi .  While  I was doing more investigation it seems that if there was something coming in on the item detail that would show me which button was chosen - such as inquire, reject, or approve, that I may could get my code to do as the user wants. I need something that indicates the current screen content as it comes into the doc_change_badi when the "submit" is done on the shopping cart. I tried looking at the items - but don't see anything.  Is there a function module or method that will show each inidividual item line status. I can loop through the lines and if they are not all set to the approve radio-button, then I can ignore updating the approval note.  Do you know of anything else to call?  Will something have to be done elsewhere to set the line item status into maybe some zfield of our own before getting to the doc_change_badi?     



Dale R. Brown
DUKE UNIVERSITY
Sr. Analyst, IT 
OIT - Application and Database Services
919.684.5341



-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of sap-wug-request at mit.edu
Sent: Monday, January 24, 2011 12:18 PM
To: sap-wug at mit.edu
Subject: SAP-WUG Digest, Vol 74, Issue 40

Send SAP-WUG mailing list submissions to
	sap-wug at mit.edu

To subscribe or unsubscribe via the World Wide Web, visit
	http://mailman.mit.edu/mailman/listinfo/sap-wug
or, via email, send a message with subject or body 'help' to
	sap-wug-request at mit.edu

You can reach the person managing the list at
	sap-wug-owner at mit.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of SAP-WUG digest..."


Today's Topics:

   1. Re: SRM - Approval Note Update for Shopping Cart  on 7.0
      (Ramki Maley)


----------------------------------------------------------------------

Message: 1
Date: Mon, 24 Jan 2011 10:56:30 -0500
From: Ramki Maley <rmaley at erpworkflow.com>
Subject: Re: SRM - Approval Note Update for Shopping Cart  on 7.0
To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
Message-ID: <4D3DA12E.2030806 at erpworkflow.com>
Content-Type: text/plain; charset="utf-8"

Dale,

You can call method /sapsrm/cl_wf_apv_facade=>get_current_decision in 
the doc_change BAdI to determine the current decision. If it is 
'APPROVED' you can update the note as needed.

Cheers,
Ramki.


On 1/21/11 5:55 PM, Dale Brown wrote:
>
> I?m trying to locate the proper place as to where I can place code to 
> update the ?approval note? box for 7.0 SRM shopping cart.
>
> I have been trying to use the BBP_DOC_CHANGE_BADI and that works good 
> for me when an approval response is done, but when an inquire response 
> is done, I?m having issues with what the user is asking for.   I?m 
> thinking I may have to move my code in order to cover all the 
> responses of the work item ? because the ?submit? action(as far as 
> updating SWWWIHEAD table) for the work item does not happen until 
> after it has gone through the BBP_DOC_CHANGE_BADI code.  Here?s the 
> scenario I?m facing.  We have up to a 7 level approvalprocess for a 
> shopping cart to be approved.  For each time the cart goes to the next 
> level for someone to approve it ? our user wants to have in the 
> ?approval note? a description of thatparticular  level.  When the item 
> is approved this works ok in the BBP_DOC_CHANGE_BADI, because I just 
> add the next level?s description to the ?approval note? box.   But for 
> inquire or reject ? the next level description does not need to appear 
> because the item is going back to the orderer and not the next 
> approval level. The BBP_DOC_CHECK_BADI is not the place for me either 
> based on my code logic ? which is keying on the standard tasks of the 
> workflow.  Using info from swwwihead to get main workflow id and then 
> matching to BALHDR log table for the workflow to get my next level.   
> My problem is that on an inquire/reject, the current approval work 
> item task is not marked complete, and the new ?Accept Decision? 
> standard task is not available until after the BBP_DOC_CHANGE_BADI.  
> So I can?t code around not placing the next level comments.  It 
> happens just like the approve submit action does and places the next 
> level comments in the approval note box.   Can anyone recommend 
> current SAP code that may already be written that is doing what I?m 
> trying to accomplish or know of the correct badi that can be changed 
> to use our code.  Or where would be the proper class/method that could 
> be enhanced to place my code.
>
> *Dale R. Brown*
>
> *DUKE UNIVERSITY***
>
> *Sr. Analyst, IT
> OIT - Application and Database Services
> 919.684.5341*
>
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20110124/2f2eb555/attachment-0001.htm

------------------------------

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


End of SAP-WUG Digest, Vol 74, Issue 40
***************************************




More information about the SAP-WUG mailing list