SRM - Approval Note Update for Shopping Cart on 7.0

Ramki Maley rmaley at erpworkflow.com
Mon Jan 24 10:56:30 EST 2011


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


More information about the SAP-WUG mailing list