<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Dale,<br>
    <br>
    Are you using Process Controlled or the Application Controlled
    Workflow?<br>
    <br>
    Thanks,<br>
    Ramki. <br>
    <br>
    On 1/21/11 5:55 PM, Dale Brown wrote:
    <blockquote
cite="mid:FB1133EE689F0B419554C3FE6F31B707031D160758@EX-MAILBOX-03.win.duke.edu"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <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]-->
      <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: rgb(31, 73, 125);"> </span>&nbsp;&#8220;submit&#8221; action<span
            style="color: rgb(31, 73, 125);"> (</span>as far as updating
          SWWWIHEAD table<span style="color: rgb(31, 73, 125);">)</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:
            rgb(31, 73, 125);"> </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:
            rgb(31, 73, 125);"> </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: rgb(31, 73, 125);">&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: &quot;Lucida
              Handwriting&quot;;">Dale R. Brown<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span style="font-size: 9pt;
              font-family: &quot;Helvetica&quot;,&quot;sans-serif&quot;;
              color: rgb(0, 32, 96);" lang="EN">DUKE UNIVERSITY</span></b><b><span
              style="font-family: &quot;Lucida Handwriting&quot;; color:
              rgb(0, 32, 96);"><o:p></o:p></span></b></p>
        <p class="MsoNormal" style="margin-bottom: 12pt;"><b><span
              style="font-size: 9pt; font-family:
              &quot;Helvetica&quot;,&quot;sans-serif&quot;; color:
              rgb(0, 32, 96);" lang="EN">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>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
SAP-WUG mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a>
<a class="moz-txt-link-freetext" href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a>
</pre>
    </blockquote>
  </body>
</html>