<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:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceName" downloadurl="http://www.5iantlavalamp.com/"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City" downloadurl="http://www.5iamas-microsoft-com:office:smarttags"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="country-region" downloadurl="http://www.5iantlavalamp.com/"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place" downloadurl="http://www.5iantlavalamp.com/"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Arial monospaced for SAP";
        panose-1:2 11 6 9 2 2 2 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Rang Nat,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In my opinion, the cleanest way to
implement a BADI is to not write the whole code in the BADI but rather call a
custom function module withint the BADI that will return the table of
approvers.&nbsp; Something similar to this.&nbsp; This would keep your BADI
implementation clean and make the code reusable.&nbsp; For example, I also call this
function module in the DOC_CHECK badi (on Check or Order) to make sure that all
required approvers are there and we&#8217;re not missing any.&nbsp; If for example,
a finance analyst is missing for cost center 32000, I give an error and do not
let order shopping cart (they still have an option of placing it on hold).&nbsp;
This eliminates the need to send it to Administrators. <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 color=blue
face="Arial monospaced for SAP"><span style='font-size:9.0pt;font-family:"Arial monospaced for SAP";
color:blue'>*------------------Shopping Cart
Approval------------------------------*<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 color=black
face="Arial monospaced for SAP"><span style='font-size:9.0pt;font-family:"Arial monospaced for SAP";
color:black'>&nbsp;&nbsp;&nbsp; WHEN c_shop.<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 color=black
face="Arial monospaced for SAP"><span style='font-size:9.0pt;font-family:"Arial monospaced for SAP";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CALL FUNCTION 'Y_BBP_POPULATE_SC_WFL_APPROVER'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 color=black
face="Arial monospaced for SAP"><span style='font-size:9.0pt;font-family:"Arial monospaced for SAP";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPORTING<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 color=black
face="Arial monospaced for SAP"><span style='font-size:9.0pt;font-family:"Arial monospaced for SAP";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; object_id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = object_id<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 color=black
face="Arial monospaced for SAP"><span style='font-size:9.0pt;font-family:"Arial monospaced for SAP";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; actual_approval_index = actual_approval_index<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 color=black
face="Arial monospaced for SAP"><span style='font-size:9.0pt;font-family:"Arial monospaced for SAP";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TABLES<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 color=black
face="Arial monospaced for SAP"><span style='font-size:9.0pt;font-family:"Arial monospaced for SAP";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; approval_table&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = approval_table<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 color=black
face="Arial monospaced for SAP"><span style='font-size:9.0pt;font-family:"Arial monospaced for SAP";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; item_approval_table&nbsp;&nbsp; = item_approval_table<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 color=black
face="Arial monospaced for SAP"><span style='font-size:9.0pt;font-family:"Arial monospaced for SAP";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; item_approval_obj&nbsp;&nbsp;&nbsp;&nbsp; = item_approval_obj.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>You can set a break point on your function module in the BADI and debug
while you create your shopping cart (you can always create it from GUI as well,
transaction codes are BBPSC01, 02, 03 for different create scenarios) or you
can create your shopping cart through the web as you normally would and they
debug function module on its own.&nbsp; I prefer the latter since it is much
easier.&nbsp; This way you won&#8217;t have to recreate shopping cart over and over
again since you would be able to debug function module with the same shopping
cart number.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>As far as new workflow debugging tools go, I am personally not aware of
any.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I hope this helps you a bit.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Regards,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Natasha<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <b><span
style='font-weight:bold'>On Behalf Of </span></b>rang nat<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, November 10, 2005
4:35 AM<br>
<b><span style='font-weight:bold'>To:</span></b> SAP Workflow Users' Group<br>
<b><span style='font-weight:bold'>Subject:</span></b> SRM WF help</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi,<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>i have couple of quetions...<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I have been working in r/3 workflows and ebp2.0&nbsp; 2-step workflow
.and <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>also worked on ebp3.5 but not yet in wf .<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I'm starting new projekt this week on srm4.0 version.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>How is the wf here is deifferent from earlier versions(ebp2.0).<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>EBP2.0 does not even has approval preview ..<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Are there any new tools came in for debugging workflow online when
creating shopping cart.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>How to debug n-step BAdi while creating shopping cart.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Is this BAdI synchronized with SC txn.so that we can keep break points
and debug OR&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Assyncronous and triggered based on saved event..<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>please send me to my personal mail id,if you have&nbsp;any documents on
this.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>1.BAdi implemetaion<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>2.Debugging EBP workflow..,If different from older version of checkingl
ogs...<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>3.Debugging BAdi while creating cart,if posible<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Your help will be greately appreciated..<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
<b><i><span style='font-weight:bold;font-style:italic'>&quot;Dart,
Jocelyn&quot; &lt;jocelyn.dart@sap.com&gt;</span></i></b> wrote: <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Hi rang nat, </span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>1. EBP 2.0 - centuries ago!&nbsp;(well a
couple of years at least)&nbsp;and doesn't have a BADI workflow</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>2. Did you have a question?</span></font><o:p></o:p></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<p><font size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'><!-- Converted from text/rtf format -->Regards,</span></font>
<br>
<b><font size=1 color=navy face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:navy;font-weight:bold'>Jocelyn Dart</span></font></b> <br>
<font size=1 color=gray face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:gray'>Senior Consultant</span></font> <br>
<b><font size=1 color=gray face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:gray;font-weight:bold'>SAP Australia Pty Ltd.</span></font></b> <br>
<font size=1 color=gray face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:gray'>Level <st1:Street w:st="on"><st1:address w:st="on">1/168
  Walker St</st1:address></st1:Street>.</span></font> <br>
<font size=1 color=gray face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:gray'>North Sydney </span></font><br>
<font size=1 color=gray face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:gray'>NSW, 2060</span></font> <br>
<font size=1 color=gray face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:gray'>Australia</span></font> <br>
<font size=1 color=gray face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:gray'>T&nbsp;&nbsp; +61 412 390 267</span></font> <br>
<font size=1 color=gray face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:gray'>M&nbsp;&nbsp; + 61 412 390 267</span></font> <br>
<font size=1 color=gray face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:gray'>E&nbsp;&nbsp; jocelyn.dart@sap.com</span></font> <br>
<font size=1 color=gray face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:gray'><a href="http://www.sap.com/">http://www.sap.com</a></span></font>
<o:p></o:p></p>

<p><font size=1 color=red face="Times New Roman"><span lang=EN-AU
style='font-size:7.5pt;color:red'>The information contained in or attached to
this electronic transmission is confidential and may be legally privileged. It
is intended only for the person or entity to which it is addressed. If you are
not the intended recipient, you are hereby notified that any distribution,
copying, review, retransmission, dissemination or other use of this electronic
transmission or the information contained in it is strictly prohibited. If you
have received this electronic transmission in error, please immediately contact
the sender to arrange for the return of the original documents. </span></font><o:p></o:p></p>

<p><font size=1 color=red face="Times New Roman"><span lang=EN-AU
style='font-size:7.5pt;color:red'>Electronic transmission cannot be guaranteed
to be secure and accordingly, the sender does not accept liability for any such
data corruption, interception, unauthorized amendment, viruses, delays or the
consequences thereof.</span></font><o:p></o:p></p>

<p><font size=1 color=red face="Times New Roman"><span lang=EN-AU
style='font-size:7.5pt;color:red'>Any views expressed in this electronic
transmission are those of the individual sender, except where the message
states otherwise and the sender is authorized to state them to be the views of
SAP AG or any of its subsidiaries. SAP AG, its subsidiaries, and their
directors, officers and employees make no representation nor accept any
liability for the accuracy or completeness of the views or information
contained herein. Please be aware that the furnishing of any pricing
information/ business proposal herein is indicative only, is subject to change
and shall not be construed as an offer or as constituting a binding agreement
on the part of SAP AG or any of its subsidiaries to enter into any
relationship, unless otherwise expressly stated. </span></font><o:p></o:p></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabIndex=-1>

</span></font></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <b><span
style='font-weight:bold'>On Behalf Of </span></b>rang nat<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, 10 November 2005
5:06 PM<br>
<b><span style='font-weight:bold'>To:</span></b> SAP Workflow Users' Group<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: SRM BAdi-n step for
Shopping Carts</span></font><o:p></o:p></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi Jocelyn,<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I can see that approval workflow restart when we change A/c assignment
details or product category....This is happening as new shopping cart(new
entries /v EBP2.0) has been creating in system for above changes.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Cheers<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
<b><i><span style='font-weight:bold;font-style:italic'>&quot;Dart,
Jocelyn&quot; &lt;jocelyn.dart@sap.com&gt;</span></i></b> wrote:<o:p></o:p></span></font></p>

</div>

<blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt'>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>No really you're ok Sue - the standard whole shopping cart BADI
approval<br>
workflow restarts as normal based on workflow security and what changes<br>
were made. You shouldn't have to raise any special events for approvers<br>
restarting based on rejection or change. <br>
<br>
The only event you may want to keep is your <st1:place w:st="on"><st1:PlaceName
 w:st="on">Profit</st1:PlaceName> <st1:PlaceType w:st="on">Center</st1:PlaceType></st1:place>
event - the<br>
trick with that however is it won't be enough to re-evaluate rules on<br>
active work items - you also need to rerun the BADI to recalculate the<br>
approvers and fill the workflow container appropriately. Otherwise your<br>
new approvers may not be able to action the shopping cart correctly. <br>
<br>
You might have to create a parallel workflow as well as using<br>
re-evaluate rules. <br>
<br>
<br>
Regards,<br>
Jocelyn Dart<br>
Senior Consultant<br>
SAP Australia Pty Ltd.<br>
Level <st1:Street w:st="on"><st1:address w:st="on">1/168 Walker St</st1:address></st1:Street>.<br>
<st1:place w:st="on">North Sydney</st1:place> <br>
NSW, 2060<br>
<st1:country-region w:st="on"><st1:place w:st="on">Australia</st1:place></st1:country-region><br>
T! ! +61 412 390 267<br>
M + 61 412 390 267<br>
E jocelyn.dart@sap.com<br>
http://www.sap.com<br>
<br>
The information contained in or attached to this electronic transmission<br>
is confidential and may be legally privileged. It is intended only for<br>
the person or entity to which it is addressed. If you are not the<br>
intended recipient, you are hereby notified that any distribution,<br>
copying, review, retransmission, dissemination or other use of this<br>
electronic transmission or the information contained in it is strictly<br>
prohibited. If you have received this electronic transmission in error,<br>
please immediately contact the sender to arrange for the return of the<br>
original documents. <br>
Electronic transmission cannot be guaranteed to be secure and<br>
accordingly, the sender does not accept liability for any such data<br>
corruption, interception, unauthorized amendment, viruses, delays or the<br>
consequences thereof.<br>
Any views expressed in this electronic transmission are tho! ! se of the<br>
individual sender, except where the message states otherwise and the<br>
sender is authorized to state them to be the views of SAP AG or any of<br>
its subsidiaries. SAP AG, its subsidiaries, and their directors,<br>
officers and employees make no representation nor accept any liability<br>
for the accuracy or completeness of the views or information contained<br>
herein. Please be aware that the furnishing of any pricing information/<br>
business proposal herein is indicative only, is subject to change and<br>
shall not be construed as an offer or as constituting a binding<br>
agreement on the part of SAP AG or any of its subsidiaries to enter into<br>
any relationship, unless otherwise expressly stated. <br>
<br>
<br>
-----Original Message-----<br>
From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On Behalf<br>
Of Sue Keohan<br>
Sent: Wednesday, 02 November 2005 1:02 PM<br>
To: SAP Workflow Users' Group<br>
Subject: Re: SRM BAdi-n step for Shopping Carts<br>
<br>
Hi Jocelyn,<br>
<br>
I was thinking to raise custom events when master data on the R/3 side <br>
changes, for example, Profit Center, which usually means a re-org, and <br>
in that case, new approvers. The Events under the workflow header, <br>
version dependent tab, would seem to be able to do this 'Reevaluate <br>
Rules of Active Workitems', but of course, seeing is believing.<br>
<br>
I am interested in whole Shopping Cart Approvals via the BAdi, not Item <br>
Approval. So, for that part at least, pheww! As for the BAdi, it may <br>
prove challenging, as our business process calls for certain approvers <br>
(at 'level 1') to be able to 'restart' approvals at the point where the <br>
last rejection occurred, or 'begin anew'. The BAdi would need to take <br>
this into consideration. Looks like I have my work cut out for me.<br>
<br>
Best regards,<br>
Sue<br>
<br>
<br>
Dart, Jocelyn wrote:<br>
<br>
&gt;Hi Sue, <br>
&gt;You don't need to raise any special events to restart when the user<br>
&gt;chang! ! es it. <br>
&gt;The standard code will work out what happens next and whether to remove<br>
&gt;approval tasks from certain users based on what you send out in the<br>
&gt;BADI. <br>
&gt;So you just need to concentrate on getting your BADI code correct -<br>
i.e.<br>
&gt;to say &quot;who does it go to next&quot;. <br>
&gt;<br>
&gt;By the way, are you just looking at whole ShopCart BADI approval or the<br>
&gt;ShopCart Item approval?<br>
&gt;It's a lot more complicated for ShopCart Item approval but I've just<br>
&gt;done it at a customer with a hideously<br>
&gt;complex business scenario, so should be able to answer any questions. <br>
&gt;<br>
&gt;Regards,<br>
&gt;Jocelyn Dart<br>
&gt;Senior Consultant<br>
&gt;SAP Australia Pty Ltd.<br>
&gt;Level <st1:Street w:st="on"><st1:address w:st="on">1/168 Walker St</st1:address></st1:Street>.<br>
&gt;North <st1:City w:st="on"><st1:place w:st="on">Sydney</st1:place></st1:City>
<br>
&gt;NSW, 2060<br>
&gt;<st1:country-region w:st="on"><st1:place w:st="on">Australia</st1:place></st1:country-region><br>
&gt;T +61 412 390 267<br>
&gt;M + 61 412 390 267<br>
&gt;E jocelyn.dart@sap.com<br>
&gt;http://www.sap.com<br>
&gt;<br>
&gt;The information contained in or attached to this electronic<br>
transmission<br>
&gt;is confidential and may be legally privileged. It is intended only for<br>
&gt;the person or entity to which it is addressed. If you are not the<br>
&gt;intended recipient, you are hereby notified that any distribution,<br>
&gt;copying, review, retransmission, dissemination or other use of this<br>
&gt;electronic transmission or the information contained in it is strictly<br>
&gt;prohibited. If you have received this electronic transmission in error,<br>
&gt;please immediately contact the sender to arrange for the return of the<br>
&gt;original documents. <br>
&gt;Electronic transmission cannot be guaranteed to be secure and<br>
&gt;accordingly, the sender does not accept liability for any such data<br>
&gt;corruption, interception, unauthorized amendment, viruses, delays or<br>
the<br>
&gt;consequences thereof.<br>
&gt;Any views expressed in this electronic transmission are those of the<br>
&gt;individual sender, except where the message states otherwis! ! e and the<br>
&gt;sender is authorized to state them to be the views of SAP AG or any of<br>
&gt;its subsidiaries. SAP AG, its subsidiaries, and their directors,<br>
&gt;officers and employees make no representation nor accept any liability<br>
&gt;for the accuracy or completeness of the views or information contained<br>
&gt;herein. Please be aware that the furnishing of any pricing information/<br>
&gt;business proposal herein is indicative only, is subject to change and<br>
&gt;shall not be construed as an offer or as constituting a binding<br>
&gt;agreement on the part of SAP AG or any of its subsidiaries to enter<br>
into<br>
&gt;any relationship, unless otherwise expressly stated. <br>
&gt;<br>
&gt;<br>
&gt;-----Original Message-----<br>
&gt;From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On<br>
Behalf<br>
&gt;Of Baunach, Natasha R<br>
&gt;Sent: Wednesday, 02 November 2005 8:01 AM<br>
&gt;To: SAP Workflow Users' Group<br>
&gt;Subject: RE: SRM BAdi-n step for Shopping Carts<br>
&gt;<br>
&gt;Sue,<br>
&gt;<br>
&gt;You are correct that the value in BBP_WFL_SECURITY is the key to<br>
&gt;allowing/prohibiting changes to shopping carts during approvals (even<br>
&gt;though they all use the same task). Please keep in mind that if the<br>
&gt;value is set to 'not defined', SAP has added the code in the BADI<br>
&gt;BBP_WFL_SECUR_BADI, implementation BBP_WFL_SECUR_BADI_S to change it to<br>
&gt;4 (I think it comes in as activated) which is equivalent to no changes<br>
&gt;are allowed.<br>
&gt;<br>
&gt; if scenario is initial .<br>
&gt; call function 'BBP_PDH_WFL_SECLEVEL_DB_GET'<br>
&gt; exporting<br>
&gt; iv_user = actual_user<br>
&gt; importing<br>
&gt; ev_sec_level = new_sec_level.<br>
&gt;<br>
&gt; if new_sec_level is initial.<br>
&gt; new_sec_level = 4.<br>
&gt; endif.<br>
&gt; endif.<br>
&gt; endif.<br>
&gt;<br>
&gt;I have never used Events to recalculate agents for active tasks. In<br>
our<br>
&gt;current production system, the security level is set to &quot;Low -
workflow<br>
&gt;is always restarted when changes are made&quot;. So, if the requestor makes<br>
&gt;any changes to the workflow, it is restarted so agents are<br>
recalculated.<br>
&gt;I will look into Events during our upgrade and will leverage off<br>
&gt;Ginger's presentations.<br>
&gt;<br>
&gt;Regards,<br>
&gt;Natasha<br>
&gt;<br>
&gt;<br>
&gt;-----Original Message-----<br>
&gt;From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On<br>
Behalf<br>
&gt;Of Susan R. Keohan<br>
&gt;Sent: Tuesday, November 01, 2005 12:41 PM<br>
&gt;To: SAP Workflow Users' Group<br>
&gt;Subject: Re: SRM BAdi-n step for Shopping Carts<br>
&gt;<br>
&gt;Hi Natasha,<br>
&gt;<br>
&gt;Thanks so much for all the info. Our current process does not call<br>
for<br>
&gt;ad-hoc approvers, but I am <br>
&gt;still hoping to take advantage of this functionality.<br>
&gt;<br>
&gt;Am I correct that the value in BBP_WFL_SECURITY (currently set to 'not<br>
&gt;defined') would be the key to <br>
&gt;allowing/prohibiting changes to S! ! hopping Carts, all using the same task<br>
&gt;? Just re-stating in my own <br>
&gt;words what I thought you said...<br>
&gt;<br>
&gt;Have you used Events to cause the recalculation of agents for active<br>
&gt;tasks ? This could solve a lot <br>
&gt;of our problems, where the Shopping Cart changes during the approval<br>
&gt;process, and the wrong <br>
&gt;approvers still have the 'old' approval task...(Ginger Gatling<br>
delivered<br>
&gt;a great presentation on <br>
&gt;this topic at the recent TechEd in <st1:City w:st="on"><st1:place w:st="on">Boston</st1:place></st1:City>).<br>
&gt;<br>
&gt;Many thanks,<br>
&gt;Sue<br>
&gt;<br>
&gt;Baunach, Natasha R wrote:<br>
&gt;<br>
&gt; <br>
&gt;<br>
&gt;&gt;Hi Sue,<br>
&gt;&gt;<br>
&gt;&gt;I have implemented BBP_WFL_APPROV_BADI in our SRM 4.0 sandbox with<br>
&gt;&gt;different level of approvals and certain line items going to different<br>
&gt;&gt;approvers. Hopefully, I can answer some of your questions.<br>
&gt;&gt;<br>
&gt;&gt;1. Yes, approval index must be incremented by 1. You can still have<br>
&gt;&gt;your ad-hoc appro! ! val steps between pre-defined approval steps
assuming<br>
&gt;&gt;that you allow for ad-hoc approvers (you can disable this<br>
&gt;&gt; <br>
&gt;&gt;<br>
&gt;functionality<br>
&gt; <br>
&gt;<br>
&gt;&gt;via BADI 'Allow Changes to Approvers' BBP_CHNG_AGNT_ALLOW.<br>
&gt;&gt;<br>
&gt;&gt;2. It is the same task that is used for approvals in all shopping cart<br>
&gt;&gt;approval workflows available in SRM 4.0. The task is TS10008126.<br>
&gt;&gt;Whether or not an approver can change the cart during approval process<br>
&gt;&gt;is determined by the settings at the role level. Go to transaction<br>
&gt;&gt;PFCG, input your role, hit display. Then go to Personalization tab<br>
&gt;&gt; <br>
&gt;&gt;<br>
&gt;and<br>
&gt; <br>
&gt;<br>
&gt;&gt;look for personalization object key 'BBP_WFL_SECURITY'. During<br>
&gt;&gt; <br>
&gt;&gt;<br>
&gt;runtime,<br>
&gt; <br>
&gt;<br>
&gt;&gt;this default can be overwritten in the BADI 'Authorization to Change<br>
&gt;&gt;During Approval' BBP_WFL_SECUR_BADI. So basically, i! f your approvers<br>
&gt;&gt; <br>
&gt;&gt;<br>
&gt;at<br>
&gt; <br>
&gt;<br>
&gt;&gt;different levels have different roles, you should be able to control<br>
&gt;&gt;change ability via this setting at the role level. If it is more<br>
&gt;&gt;complicated than that, then you will need to place your more<br>
&gt;&gt; <br>
&gt;&gt;<br>
&gt;complicated<br>
&gt; <br>
&gt;<br>
&gt;&gt;logic in the BADI. <br>
&gt;&gt;<br>
&gt;&gt;BTW, I think that you can also use a different BADI to allow only<br>
&gt;&gt;certain fields to be changed. It could be applicable only to CUF's.<br>
&gt;&gt; <br>
&gt;&gt;<br>
&gt;I<br>
&gt; <br>
&gt;<br>
&gt;&gt;have this requirement and will be looking into it shortly -- if a user<br>
&gt;&gt;has finance approver profile, only allow them to change GL account<br>
&gt;&gt;assignment and nothing else; no changes are allowed for other<br>
&gt;&gt; <br>
&gt;&gt;<br>
&gt;approver.<br>
&gt; <br>
&gt;<br>
&gt;&gt;I hope this helps. <br>
&gt;&gt;<br>
&gt;&gt;Natasha<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;-----Original Message-----<br>
&gt;&gt;From: sap-wug-bounces@MIT.EDU [mailto:sap-wug-bounces@MIT.EDU] On<br>
&gt;&gt; <br>
&gt;&gt;<br>
&gt;Behalf<br>
&gt; <br>
&gt;<br>
&gt;&gt;Of Susan R. Keohan<br>
&gt;&gt;Sent: Tuesday, November 01, 2005 6:56 AM<br>
&gt;&gt;To: SAP Workflow Users' Group<br>
&gt;&gt;Subject: SRM BAdi-n step for Shopping Carts<br>
&gt;&gt;<br>
&gt;&gt;Hi all,<br>
&gt;&gt;<br>
&gt;&gt;I am trying to embark on the implementation of BBP_WFL_APPROV_BADI<br>
&gt;&gt; <br>
&gt;&gt;<br>
&gt;(SRM<br>
&gt; <br>
&gt;<br>
&gt;&gt;4.0). Have looked at all <br>
&gt;&gt;the notes, docu, sample implementations, etc.<br>
&gt;&gt;1) The docu for this BAdi says 'Note that there must be absolutely no<br>
&gt;&gt;gaps in the approval steps and <br>
&gt;&gt;that approvers must be defined for every step.' I assume this means<br>
&gt;&gt;that the ApprovalIndex must be <br>
&gt;&gt;incremented from 0 by 1 with no gaps in it. Am I correct ! ! ? Or does<br>
&gt;&gt;this mean that there can be no <br>
&gt;&gt;intervening steps *between* approval steps ?<br>
&gt;&gt;<br>
&gt;&gt;2) Is it possible to pass an approver an approval task, which also<br>
&gt;&gt;allows them to change the cart ? <br>
&gt;&gt; But other approvers (different approval levels) can only approve or<br>
&gt;&gt;reject? Can I determine <br>
&gt;&gt;which tasks the approvers can get and set that in the BAdi ?<br>
&gt;&gt;<br>
&gt;&gt;Obviously, I am an SRM novice and a BAdi novice as well, so any help<br>
&gt;&gt; <br>
&gt;&gt;<br>
&gt;is<br>
&gt; <br>
&gt;<br>
&gt;&gt;greatly appreciated.<br>
&gt;&gt;Happy WF-ing,<br>
&gt;&gt;Sue<br>
&gt;&gt; <br>
&gt;&gt;<br>
&gt;<br>
&gt; <br>
&gt;<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
http://mailman.mit.edu/mailman/listinfo/sap-wug<o:p></o:p></span></font></p>

</blockquote>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=1 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><a
href="http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a/farechase.yahoo.com/">Yahoo!
FareChase - Search multiple travel sites in one click.</a> _______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
http://mailman.mit.edu/mailman/listinfo/sap-wug<o:p></o:p></span></font></p>

</div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=1 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><a
href="http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a/farechase.yahoo.com/">Yahoo!
FareChase - Search multiple travel sites in one click.</a> <o:p></o:p></span></font></p>

</div>

</body>

</html>