<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Re: Sending mail and e-mail in the same time</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=511402613-15082006><FONT face=Arial 
color=#0000ff size=2>No you can not, so there are two possible 
solutions:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=511402613-15082006><FONT face=Arial 
color=#0000ff size=2>1) modify RSWUWFML2 to read e-mail addresses from employee 
records</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=511402613-15082006><FONT face=Arial 
color=#0000ff size=2>2) update user data with e-mail 
addresses</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=511402613-15082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=511402613-15082006><FONT face=Arial 
color=#0000ff size=2>If it does not crash severely with other requirements I 
would recommend creating function module that links to a HR infotype event and 
update the user data with the e-mail address from the associated employee 
instead of modifying&nbsp;RSWUWFML2 to find the e-mail address from the employee 
data. Of course a full-blown workflow is also an option, then you could have N 
parallell steps, 1 for each system in which a users can exist for this - unless 
you already have a synchronization solution for that. Alternatively you can of 
course create a report that updates every user every night, but why waste CPU 
when you have a great workflow engine to assist you?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=511402613-15082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=511402613-15082006><FONT face=Arial 
color=#0000ff size=2>One advantage of updating the user records instead of 
changing RSWUWFML2 is that you don't have to have any special handling for users 
without employee records. For those the e-mail address is simply defined on the 
user record directly. If you change RSWUWFML2 and want a solid solution you have 
to check the user record if you don't find an employee or the employee doesn't 
have an e-mail address.</FONT></SPAN></DIV>
<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>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV><FONT face=Arial 
size=2></FONT><BR>
<BLOCKQUOTE dir=ltr 
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>Márton 
  Zsolt<BR><B>Sent:</B> 15. august 2006 13:27<BR><B>To:</B> SAP Workflow Users' 
  Group<BR><B>Subject:</B> RSWUWFML2 and e-mail address<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV id=idOWAReplyText30547 dir=ltr>
  <DIV dir=ltr><FONT size=2>Hi all,</FONT></DIV>
  <DIV dir=ltr><FONT size=2>I'm using RSWUWFML2 to send the work items in the 
  users outlook mailbox and I have a question regrading that.</FONT></DIV>
  <DIV dir=ltr><FONT size=2>The users e-mail address&nbsp;are stored in the 
  PA0105 subtype 0010 and not under SU01. Is that possuble to use in the 
  standard mode the RSWUWFML2 if the email addres is only in the HR structure? 
  (5.0 ECC)</FONT></DIV>
  <DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
  <DIV dir=ltr><FONT size=2>Thanks</FONT></DIV>
  <DIV dir=ltr><FONT size=2>Zsolt</FONT></DIV></DIV></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>