<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>&nbsp;</o:p></p><p class=MsoNormal>I&#8217;m trying to locate the proper place as to where I can place code to update the &#8220;approval note&#8221; 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&#8217;m having issues with what the user is asking for.&nbsp;&nbsp; I&#8217;m thinking I may have to move my code in order to cover all the responses of the work item &#8211; because the<span style='color:#1F497D'> </span>&nbsp;&#8220;submit&#8221; 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.&nbsp; Here&#8217;s the scenario I&#8217;m facing. &nbsp;We have up to a 7 level approval<span style='color:#1F497D'> </span>process for a shopping cart to be approved.&nbsp; For each time the cart goes to the next level for someone to approve it &#8211; our user wants to have in the &#8220;approval note&#8221; a description of that<span style='color:#1F497D'> </span>particular &nbsp;level.&nbsp; When the item is approved this works ok in the BBP_DOC_CHANGE_BADI, because I just add the next level&#8217;s description to the &#8220;approval note&#8221; box.&nbsp; &nbsp;But for inquire or reject &#8211; the next level description does not need to appear because the item is going back to the orderer and not the next approval level.&nbsp; <span style='color:#1F497D'>&nbsp;</span>The BBP_DOC_CHECK_BADI is not the place for me either based on my code logic &#8211; which is keying on the standard tasks of the workflow.&nbsp; Using info from swwwihead to get main workflow id and then matching to BALHDR log table for the workflow to get my next level.&nbsp;&nbsp; My problem is that on an inquire/reject, the current approval work item task is not marked complete, and the new &#8220;Accept Decision&#8221; standard task is not available until after the BBP_DOC_CHANGE_BADI.&nbsp; So I can&#8217;t code around not placing the next level comments.&nbsp; It happens just like the approve submit action does and places the next level comments in the approval note box.&nbsp;&nbsp; Can anyone recommend current SAP code that may already be written that is doing what I&#8217;m trying to accomplish or know of the correct badi that can be changed to use our code.&nbsp; Or where would be the proper class/method that could be enhanced to place my code.&nbsp; <o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</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>&nbsp;</o:p></p></div></body></html>