<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>

<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=269201906-16102006><FONT face=Arial 
color=#0000ff size=2>I can give you a hint for your first question. It is quite 
simple really, once you know how to set it up you can get a lot of the work done 
for you by SAP.&nbsp;</FONT></SPAN><SPAN class=269201906-16102006><FONT 
face=Arial color=#0000ff size=2>However, it depends&nbsp;a little on your 
outcome. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=269201906-16102006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=269201906-16102006><FONT face=Arial 
color=#0000ff size=2>If the outcome's set of possible values is finite you can 
define the BOR object's method as having a result parameter of this data type. 
When you use a task with this method in your workflow the step will 
automatically create one outcome branch for every 
possibility.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=269201906-16102006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=269201906-16102006><FONT face=Arial 
color=#0000ff size=2>If your result set is infinite you simply return the result 
and bind it into a workflow container element, and then you use a step of the 
"multiple condition" type to get your branches.</FONT></SPAN></DIV>
<DIV align=left><FONT face=Arial size=2>
<DIV align=left><FONT face=Arial size=2>-- </FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Kjetil Kilhavn, Statoil ØFT KTJ 
BAS&nbsp;DEV SAP</FONT></DIV></FONT></DIV>
<DIV>&nbsp;</DIV><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
  [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Narendiran 
  Rathinavelu<BR><B>Sent:</B> Friday, October 13, 2006 2:53 PM<BR><B>To:</B> 
  sap-wug@mit.edu<BR><B>Cc:</B> nare1783@gmail.com<BR><B>Subject:</B> N-Step 
  BADi Workflow<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV 
  style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
  <DIV>Hi Everyone,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;&nbsp;&nbsp; I am as good as a beginner to workflow development. I 
  need some help on the following issues:</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>1 . I want to implement my own method in a custom subtype Z_BUS2121, In 
  this method I want to check for a particular criteria and if this criteria is 
  met then the corresponding outcome of the workflow should take the 
  corresponding outcome path. </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>for example </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>in Z_BUS2121</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>begin_method mymethod changing container.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>case xxx.</DIV>
  <DIV>when 'aa'.</DIV>
  <DIV>// workflow should take the corresponding outcome path. </DIV>
  <DIV>when 'bb'.</DIV>
  <DIV>// workflow should take the corresponding outcome path. </DIV>
  <DIV>endcase.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>end_method.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>can any one give some inputs on how to do it?</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>2 . I am using the N-STEP BADI approval workflow WS14000134 , please can 
  anyone send me an implementation example code for the BADI BBP_WFL_APPROV_BADI 
  to get the list of approvers.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Any Help will be deeply appreciated.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Regards</DIV>
  <DIV>Narendiran Rathinavelu.</DIV></DIV><BR>
  <HR SIZE=1>
  </HR>Find out what India is talking about on - <A 
  href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! 
  Answers India</A> <BR>Send FREE SMS to your friend's mobile from Yahoo! 
  Messenger Version 8. <A 
  href="http://us.rd.yahoo.com/mail/in/messengertagline/*http://in.messenger.yahoo.com">Get 
  it NOW</A></BLOCKQUOTE><p></p><p><font size=1>-------------------------------------------------------------------<br>The information contained in this message may be CONFIDENTIAL and is<br>intended for the addressee only. Any unauthorised use, dissemination of the<br>information or copying of this message is prohibited. If you are not the<br>addressee, please notify the sender immediately by return e-mail and delete<br>this message.<br>Thank you.</font size></BODY></HTML>