<!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> </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: rgb(31, 73, 125);"> </span> “submit” 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. Here’s the scenario I’m
facing. We have up to a 7 level approval<span style="color:
rgb(31, 73, 125);"> </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:
rgb(31, 73, 125);"> </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: rgb(31, 73, 125);"> </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 style="font-size: 9pt;
font-family: "Helvetica","sans-serif";
color: rgb(0, 32, 96);" lang="EN">DUKE UNIVERSITY</span></b><b><span
style="font-family: "Lucida Handwriting"; 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:
"Helvetica","sans-serif"; 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> </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>