<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)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Rage Italic";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</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]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi <st1:place w:st="on">Krishna</st1:place>,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks for the solution.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>In my case that solution will not work as the e-maild s
entered by the requestor will not have a user id in the system<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font> <o:p></o:p></p>
<div>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks & Regards</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><strong><b><font size=4 face="Rage Italic"><span
style='font-size:13.5pt;font-family:"Rage Italic"'>Swathi Devireddy</span></font></b></strong><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'>Coke SCALE</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'>Satyam Computer Services Ltd</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=4 color=black face=Webdings><span
style='font-size:13.0pt;font-family:Webdings;color:black'>È</span></font><font
size=4 color="#333399" face=Webdings><span style='font-size:13.0pt;font-family:
Webdings;color:#333399'> </span></font><font size=1 color=black face=Arial><span
style='font-size:7.5pt;font-family:Arial;color:black'>: +27 745024070</span></font><o:p></o:p></p>
</div>
<p style='margin-bottom:12.0pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Hi,<br>
<br>
I think its not a good idea to use note_create to<br>
allow the user to enter the required e-mail address<br>
in free text. However, i suggest the following way to<br>
do this<br>
<br>
1. When the creator of material submits it for<br>
approval, create a new dialog step based on<br>
WF_TASK.GetListAndDispatch ( or Dispatch will do,<br>
check other methods available on WF_TASK). put the<br>
actual_agent of earlier workitem as the agent of this<br>
step. make this task as a general.In the runtime when<br>
this gets executed user will be given a chance to<br>
select the people ( based on org structure either,<br>
user/position/org unit, in your case may be User is<br>
enough) and the selected people will be returned in<br>
SELECTEDOBJECTLIST export parameter.<br>
- just to get a feel of it, put WF_TASK in test mode<br>
from SWO1 and execute this method and see.<br>
<br>
2. Get this SELECTEDOBJECTLIST to your workflow using<br>
binding and you can use this later to find the correct<br>
e-mail address(es) of user(s) ( may be you can use<br>
BAPI_USER_GET_DETAIL to get e-mail address) and you<br>
can send e-mail to them.<br>
<br>
3. Also enable 'Advance with Dialog' option on your<br>
step sending workitem to creator so that the next<br>
workitem for this newly created step (for selecting<br>
extra people to be informed) will follow dialog chain<br>
and appear in creator's inbox just after user submits<br>
for approval. When calling WF_TASK.GetListAndDispatch<br>
in your step, you can put 'Title' as per your wish<br>
something like 'Choose the user names to which you<br>
would like to send the notification after approval'.<br>
<br>
WF_TASK.<methods related to getagents/dispatch> are<br>
basically used in scenarios where you want the user to<br>
select the next processor dynamically. However in this<br>
case, you are not really using them as 'processors'<br>
but as just 'informers' :-)<br>
<br>
Hope this helps you !!<br>
<br>
<br>
<br>
Regards<br>
<st1:place w:st="on">Krishna</st1:place> Mohan Dubbaka<br>
SAP Workflow Consultant<br>
Satyam Computer Services Ltd<br>
<st1:place w:st="on"><st1:City w:st="on">Bangalore</st1:City>, <st1:country-region
w:st="on">India</st1:country-region></st1:place>.<br>
<br>
<br>
<br>
--- "Devireddy Swathi (Dataflo)"<br>
<devireddy.swathi@dataflo.co.za> wrote:<br>
<br>
> Hi,<br>
><br>
> <br>
><br>
> My requirement is when there is a change in a<br>
> material a work item goes<br>
> to requestor (creator of material) .If he submits<br>
> for approval he should<br>
> have the option to type some additional e-mails to<br>
> notify them if the<br>
> request is Approved.<br>
><br>
> After requestor submits for Approval it goes to<br>
> Approver.IF approver<br>
> approves e-mail needs to be sent to all of them.<br>
><br>
> <br>
><br>
> I am planning to call note_create after requestor<br>
> submits .But how do I<br>
> retrieve the contents of the note in backend after<br>
> the approver<br>
> approves.<br>
><br>
> <br>
><br>
> Is there a better way to handle this requirement.<br>
><br>
> <br>
><br>
> I don't want to do a database update with a module<br>
> pool screen.<br>
><br>
> <br>
><br>
> <br>
><br>
> Thanks & Regards<br>
><br>
> Swathi Devireddy<br>
><br>
> Coke SCALE<br>
><br>
> Satyam Computer Services Ltd<br>
><br>
> * : +27 745024070<br>
><br>
> <br>
><br>
><br>
><br>
--------------------------------------------------------------------------------<br>
><br>
> This email and all contents are subject to the<br>
> following disclaimer:<br>
><br>
> "<a
href="https://imailhyd.satyam.com/exchweb/bin/redir.asp?URL=http://www.dataflo.co.za/emaildisclaimer.htm"
target="_blank">http://www.dataflo.co.za/emaildisclaimer.htm</a>"<br>
><br>
><br>
><br>
--------------------------------------------------------------------------------<br>
> > _______________________________________________<br>
> SAP-WUG mailing list<br>
> SAP-WUG@mit.edu<br>
> <a
href="https://imailhyd.satyam.com/exchweb/bin/redir.asp?URL=http://mailman.mit.edu/mailman/listinfo/sap-wug"
target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
><br>
<br>
<br>
<br>
____________________________________________________________________________________<br>
Be a better friend, newshound, and<br>
know-it-all with Yahoo! Mobile. Try it now. <a
href="https://imailhyd.satyam.com/exchweb/bin/redir.asp?URL=http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ"
target="_blank">http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ</a><br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
<a
href="https://imailhyd.satyam.com/exchweb/bin/redir.asp?URL=http://mailman.mit.edu/mailman/listinfo/sap-wug"
target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a></span></font><font
size=1 face="Courier New"><span style='font-size:8.5pt;font-family:"Courier New"'><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> </o:p></span></font></p>
</div>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">This email
and all contents are subject to the following disclaimer:<?xml:namespace prefix
= o ns = "urn:schemas-microsoft-com:office:office"
/><o:p></o:p></SPAN></FONT></P>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">"<A
title="http://www.dataflo.co.za/emaildisclaimer.htm blocked::http://www.dimensiondata.com/emaildisclaimer.htm"
href="http://www.dataflo.co.za/emaildisclaimer.htm">http://www.dataflo.co.za/emaildisclaimer.htm</A>"<o:p></o:p></SPAN></FONT></P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face=Arial
size=2><SPAN lang=EN-ZA style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
<HR align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
</body>
</html>