<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Lucida Handwriting";
        panose-1:3 1 1 1 1 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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. <o:p></o:p></p><p class=MsoNormal>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<span style='color:#1F497D'> </span> “submit” action<span style='color:#1F497D'> (</span>as far as updating SWWWIHEAD table<span style='color:#1F497D'>)</span> 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 approval<span style='color:#1F497D'> </span>process 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 that<span style='color:#1F497D'> </span>particular 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. <span style='color:#1F497D'> </span>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. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span style='font-family:"Lucida Handwriting"'>Dale R. Brown<o:p></o:p></span></b></p><p class=MsoNormal><b><span lang=EN style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#002060'>DUKE UNIVERSITY</span></b><b><span style='font-family:"Lucida Handwriting";color:#002060'><o:p></o:p></span></b></p><p class=MsoNormal style='margin-bottom:12.0pt'><b><span lang=EN style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#002060'>Sr. Analyst, IT <br>OIT - Application and Database Services<br>919.684.5341</span></b><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>