<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=056000811-29022008><FONT face=Arial 
color=#0000ff size=2>Hi Ashish,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=056000811-29022008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=056000811-29022008>&nbsp;&nbsp;&nbsp; <FONT 
face=Arial color=#0000ff size=2>Its a custom FM and not a standard FM so it wont 
make sense for me to give to the name of the FM because I created it and will 
not be available in your system.&nbsp; You have to create a Function Module 
using SE37 instead of your report and add your logic for fetching email 
addresses.&nbsp; Then create your BOR method using this FM.&nbsp; 
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=056000811-29022008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=056000811-29022008><FONT face=Arial 
color=#0000ff size=2>&nbsp;&nbsp;&nbsp; I think you must go through some basic 
documentation of how to use a BOR method and how to bind values from the 
workflow to the method.&nbsp; As of now, Create input and output parameter for 
the method linked to the FM and then pass values from and to the Standard Task 
by binding the variables.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=056000811-29022008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><EM><FONT color=#800000 size=2>Best 
Regards,</FONT></EM></DIV>
<DIV align=left><EM><FONT color=#800000 size=2>Vinod 
Viswanathan</FONT></EM></DIV>
<DIV align=left><EM><FONT color=#800000 size=2>Workflow 
Consultant</FONT></EM></DIV>
<DIV align=left><EM><FONT color=#800000 size=2>Fujitsu Consulting - 
Pune</FONT></EM></DIV>
<DIV align=left><EM><FONT color=#800000 size=2>Phone: +91 20 40722000 
Extn:2370</FONT></EM></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV><EM><FONT 
color=#800000 size=2></FONT></EM><EM><FONT color=#800000 size=2></FONT></EM><BR>
<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>Ashish 
Nagpal<BR><B>Sent:</B> Friday, February 29, 2008 7:43 AM<BR><B>To:</B> SAP 
Workflow Users' Group<BR><B>Subject:</B> Re: Send mail step<BR></FONT><BR></DIV>
<DIV></DIV>HI Vinod<BR><BR>thanks once again for the reply,can you please tell 
me which custom FM u used for ur purpose,in my case i have enhanced my object 
type and created a new method which will serve my purpose and rest of the part 
is same as u r saying,in my case i am retrieving email id from table 
AD_SMTPADR,but i have one problem with the method i have created ,i get the 
value into the container of method,but can u please tell me how should i set the 
value which i am getting when giving the input.<BR><BR>i am using a report in 
the method so that whenever i give customer id i will get his/her email id ,the 
entries of which i have maintained in my Z table.<BR><BR>please clear as much as 
possible<BR><BR>thanks once again<BR>best regards<BR>ashish<BR><BR>
<DIV class=gmail_quote>2008/2/26 Vinod Viswanathan &lt;<A 
href="mailto:Vinod.Viswanathan@in.fujitsu.com">Vinod.Viswanathan@in.fujitsu.com</A>&gt;:<BR>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
  <DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Hi 
  Ashish,</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>1.&nbsp; I 
  have been using a custom FM so far.&nbsp; May be relevant for you too because 
  i believe these email ids are being stored in some custom table in your case. 
  </FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp; Do let me know 
  if&nbsp;</FONT></SPAN><SPAN><FONT face=Arial color=#0000ff size=2>there is a 
  method that works better and gives better efficiency.&nbsp; 
  </FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>2.&nbsp; u 
  need to create a&nbsp;BOR method using this FM...&nbsp;bind the import export 
  parameters of the method. Create a task</FONT></SPAN><SPAN><FONT face=Arial 
  color=#0000ff size=2>.</FONT></SPAN><SPAN><FONT face=Arial color=#0000ff 
  size=2> Then bind the workflow and the task parameters.&nbsp;&nbsp; 
  </FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Hope this 
  helps.</FONT></SPAN></DIV>
  <DIV class=Ih2E3d>
  <DIV dir=ltr align=left><SPAN></SPAN><SPAN></SPAN><FONT face=Arial 
  color=#0000ff size=2></FONT>&nbsp;</DIV>
  <DIV align=left><I><FONT color=#800000 size=2>Best Regards,</FONT></I></DIV>
  <DIV align=left><I><FONT color=#800000 size=2>Vinod 
  Viswanathan</FONT></I></DIV>
  <DIV align=left><I><FONT color=#800000 size=2>Workflow 
  Consultant</FONT></I></DIV>
  <DIV align=left><I><FONT color=#800000 size=2>Fujitsu Consulting - 
  Pune</FONT></I></DIV>
  <DIV align=left><I><FONT color=#800000 size=2>Phone: +91 20 40722000 
  Extn:2370</FONT></I></DIV>
  <DIV>&nbsp;</DIV><BR></DIV>
  <DIV lang=en-us dir=ltr align=left>
  <HR>
  <FONT face=Tahoma size=2>
  <DIV class=Ih2E3d><B>From:</B> <A href="mailto:sap-wug-bounces@mit.edu" 
  target=_blank>sap-wug-bounces@mit.edu</A> [mailto:<A 
  href="mailto:sap-wug-bounces@mit.edu" 
  target=_blank>sap-wug-bounces@mit.edu</A>] <B>On Behalf Of </B>Ashish 
  Nagpal<BR></DIV><B>Sent:</B> Tuesday, February 26, 2008 1:32 PM
  <DIV>
  <DIV></DIV>
  <DIV class=Wj3C7c><BR><B>To:</B> SAP Workflow Users' Group<BR><B>Subject:</B> 
  Re: Send mail step<BR></DIV></DIV></FONT><BR></DIV>
  <DIV>
  <DIV></DIV>
  <DIV class=Wj3C7c>
  <DIV></DIV>
  <DIV>hi vinod</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>thanks for the reply,yeah it was relevant ,one more thing i want to ask 
  if you could please explain:</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>1. how to fetch those email ids to internal table,do i need to make my 
  own function module </DIV>
  <DIV>&nbsp;&nbsp;&nbsp; or is there any standard like rh_get_structure i can 
  use.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>2. secondly,how to pass this internal table to workflow container.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>if you can please explain these steps,i have a little confusion over it 
  .</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>thanks a lot</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>regards</DIV>
  <DIV>ashish<BR><BR>&nbsp;</DIV>
  <DIV><SPAN class=gmail_quote>On 2/26/08, <B class=gmail_sendername>Vinod 
  Viswanathan</B> &lt;<A href="mailto:Vinod.Viswanathan@in.fujitsu.com" 
  target=_blank>Vinod.Viswanathan@in.fujitsu.com</A>&gt; wrote:</SPAN> 
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
    <DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Hi 
    Ashish,</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>give the 
    recipient type as U (email address) in the mail tab of the <B>send mail</B> 
    step.</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>you can 
    fetch email addresses in an internal table and pass it to the workflow 
    container.</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>this 
    table can be passed as expression and the email will go to the external 
    email ids.&nbsp; </FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>please 
    let me know if this solution was relevant to your 
    question.</FONT></SPAN></DIV><SPAN>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN><IMG 
    src="cid:056000811@29022008-2BA8"></SPAN></DIV>
    <DIV>&nbsp;</DIV>
    <DIV align=left><I><FONT color=#800000 size=2>Best Regards,</FONT></I></DIV>
    <DIV align=left><I><FONT color=#800000 size=2>Vinod 
    Viswanathan</FONT></I></DIV>
    <DIV align=left><I><FONT color=#800000 size=2>Workflow 
    Consultant</FONT></I></DIV>
    <DIV align=left><I><FONT color=#800000 size=2>Fujitsu Consulting - 
    Pune</FONT></I></DIV>
    <DIV align=left><I><FONT color=#800000 size=2>Phone: +91 20 40722000 
    Extn:2370</FONT></I></DIV>
    <DIV>&nbsp;</DIV><BR></SPAN>
    <DIV lang=en-us dir=ltr align=left>
    <HR>
    <FONT face=Tahoma size=2><B>From:</B> <A 
    href="mailto:sap-wug-bounces@mit.edu" 
    target=_blank>sap-wug-bounces@mit.edu</A> [mailto:<A 
    href="mailto:sap-wug-bounces@mit.edu" 
    target=_blank>sap-wug-bounces@mit.edu</A>] <B>On Behalf Of </B>Ashish 
    Nagpal<BR><B>Sent:</B> Tuesday, February 26, 2008 7:33 AM<BR><B>To:</B> SAP 
    Workflow Users' Group<BR><B>Subject:</B> Re: Send mail 
    step<BR></FONT><BR>&nbsp;</DIV>
    <DIV><SPAN>
    <DIV></DIV>hi vinod<BR>can you please elaborate on what u said "<SPAN><FONT 
    face=Arial color=#0000ff size=2>Change the type to 'U' in the send mail 
    step"<BR><BR>it will be so nice of you<BR><BR>thanks a 
    lot<BR><BR>regards<BR>ashish<BR></FONT></SPAN><BR>
    <DIV class=gmail_quote>On Tue, Feb 26, 2008 at 5:43 AM, &lt;<A 
    href="mailto:kaukabr@yahoo.com" target=_blank>kaukabr@yahoo.com</A>&gt; 
    wrote:<BR>
    <BLOCKQUOTE class=gmail_quote 
    style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Depends 
      on your address strings, notification is an<BR>e-mail FYI hope you will be 
      using send description<BR>method.<BR>Regards<BR>AZ<BR>--- "Devireddy 
      Swathi (Dataflo)"<BR>
      <DIV>
      <DIV></DIV>
      <DIV>&lt;<A href="mailto:devireddy.swathi@dataflo.co.za" 
      target=_blank>devireddy.swathi@dataflo.co.za</A>&gt; wrote:<BR><BR>&gt; 
      Hi,<BR>&gt;<BR>&gt; My requirement is to send e-mails to people 
      attached<BR>&gt; to a particular<BR>&gt; position or work 
      center.<BR>&gt;<BR>&gt; And I retrieve them from a custom 
      table.<BR>&gt;<BR>&gt; Can I use a standard mail step to send e-mails 
      by<BR>&gt; giving an expression<BR>&gt; and sending it to 
      them.<BR>&gt;<BR>&gt; But this actually sends a notification and not 
      an<BR>&gt; e-mail.<BR>&gt;<BR>&gt; Is there a background job which 
      converts these<BR>&gt; notifications to e-mails<BR>&gt; by fetching 
      corresponding users attached to the<BR>&gt; 
      position/workcenter<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Thanks 
      &amp; Regards<BR>&gt;<BR>&gt; Swathi Devireddy<BR>&gt;<BR>&gt; Coke 
      SCALE<BR>&gt;<BR>&gt; Satyam Computer Services Ltd<BR>&gt;<BR>&gt; * : +27 
      745024070<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>--------------------------------------------------------------------------------<BR>&gt;<BR>&gt; 
      This email and all contents are subject to the<BR>&gt; following 
      disclaimer:<BR>&gt;<BR>&gt; "<A 
      href="http://www.dataflo.co.za/emaildisclaimer.htm" 
      target=_blank>http://www.dataflo.co.za/emaildisclaimer.htm</A>"<BR>&gt;<BR>&gt;<BR>&gt;<BR>&nbsp;</DIV></DIV>--------------------------------------------------------------------------------<BR>&gt; 
      &gt; _______________________________________________<BR>&gt; SAP-WUG 
      mailing list<BR>&gt; <A href="mailto:SAP-WUG@mit.edu" 
      target=_blank>SAP-WUG@mit.edu</A><BR>&gt; <A 
      href="http://mailman.mit.edu/mailman/listinfo/sap-wug" 
      target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR>&gt;<BR><BR>_______________________________________________<BR>SAP-WUG 
      mailing list<BR><A href="mailto:SAP-WUG@mit.edu" 
      target=_blank>SAP-WUG@mit.edu</A><BR><A 
      href="http://mailman.mit.edu/mailman/listinfo/sap-wug" 
      target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR></BLOCKQUOTE></DIV><BR><BR 
    clear=all><BR>-- <BR>life is all about the moments that take ur heart away 
    </SPAN></DIV></DIV><BR>_______________________________________________<BR>SAP-WUG 
    mailing list<BR><A href="mailto:SAP-WUG@mit.edu" 
    target=_blank>SAP-WUG@mit.edu</A><BR><A 
    href="http://mailman.mit.edu/mailman/listinfo/sap-wug" 
    target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR></BLOCKQUOTE></DIV><BR><BR 
  clear=all><BR>-- <BR>life is all about the moments that take ur heart away 
  </DIV></DIV></DIV><BR>_______________________________________________<BR>SAP-WUG 
  mailing list<BR><A href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A 
  href="http://mailman.mit.edu/mailman/listinfo/sap-wug" 
  target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR></BLOCKQUOTE></DIV><BR><BR 
clear=all><BR>-- <BR>life is all about the moments that take ur heart away 
</BODY></HTML>