<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR></HEAD>
<BODY bgColor=#fafafa>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>you'll need to convert an internal table from 
structure length 1024 to 255.</FONT></DIV>
<DIV><FONT face=Arial size=2>There is a SAP Function and Kernel Call that can do 
this. I think it was CONVERT_TABLE </FONT></DIV>
<DIV><FONT face=Arial size=2>This is working fine.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Before I have stumbled over this simple function 
call, I have programmed it myself to send an ArchiveLink document as an Office 
attachment.</FONT></DIV>
<DIV><FONT face=Arial size=2>This is how I did it (but I'm not a 100% sure if 
this is the very latest, bugfree, version).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>For more programming techniques I would advice to 
ask in the ABAP Forums of the SDN.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Best wishes,</FONT></DIV>
<DIV><FONT face=Arial size=2>Florin</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>FUNCTION Z_WF_GET_DOC_FOR_SAPOFFICE 
.<BR>*"----------------------------------------------------------------------<BR>*"*"Lokale 
Schnittstelle:<BR>*"&nbsp; IMPORTING<BR>*"&nbsp;&nbsp;&nbsp;&nbsp; 
VALUE(ARCHIV_ID) LIKE&nbsp; TOAV0-ARCHIV_ID<BR>*"&nbsp;&nbsp;&nbsp;&nbsp; 
VALUE(ARC_DOC_ID) LIKE&nbsp; TOAV0-ARC_DOC_ID<BR>*"&nbsp; 
EXPORTING<BR>*"&nbsp;&nbsp;&nbsp;&nbsp; VALUE(LENGTH) TYPE&nbsp; I<BR>*"&nbsp; 
TABLES<BR>*"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ATTACHMENT STRUCTURE&nbsp; SOLISTI1 
OPTIONAL<BR>*"&nbsp; EXCEPTIONS<BR>*"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ERROR_RETRIEVAL<BR>*"----------------------------------------------------------------------</FONT></DIV>
<DIV>&nbsp;</DIV><FONT face=Arial size=2>
<DIV><BR>&nbsp;&nbsp; DATA: binobject&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LIKE TBL1024 
OCCURS 200,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
archivobject&nbsp;&nbsp; LIKE DOCS&nbsp;&nbsp;&nbsp; OCCURS 200 WITH HEADER 
LINE,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
length_bin&nbsp;&nbsp;&nbsp;&nbsp; TYPE 
I,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
length_att&nbsp;&nbsp;&nbsp;&nbsp; TYPE 
I,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; length_archive LIKE 
SAPB-LENGTH.</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&nbsp;&nbsp; REFRESH: binobject, attachment.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; CALL FUNCTION 'SCMS_AO_TABLE_GET'<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
EXPORTING<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ARC_ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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_DOCTABLE_2_OFFICE'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
EXPORTING<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LENGTH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 
length_archive<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
TABLES<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ARCHIVOBJECT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 
archivobject<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ATTACHMENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = attachment.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; length = length_archive.</DIV>
<DIV>&nbsp;</DIV>
<DIV>ENDFUNCTION.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>FUNCTION 
Z_WF_CONVERT_DOCTABLE_2_OFFICE.<BR>*"----------------------------------------------------------------------<BR>*"*"Lokale 
Schnittstelle:<BR>*"&nbsp; IMPORTING<BR>*"&nbsp;&nbsp;&nbsp;&nbsp; VALUE(LENGTH) 
LIKE&nbsp; SAPB-LENGTH<BR>*"&nbsp; TABLES<BR>*"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ARCHIVOBJECT STRUCTURE&nbsp; DOCS<BR>*"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ATTACHMENT 
STRUCTURE&nbsp; 
SOLISTI1<BR>*"----------------------------------------------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>****** Die ArchiveLink-API liefert das Dokument in einer internen<BR>****** 
Tabelle, der Länge 1024 zurück.<BR>****** SAP-Office-API benötigt eine interne 
Tabelle der Länge 255.<BR>******<BR>****** Diese Funktion konvertiert von der 
ArchiveLink-Tabelle in<BR>****** die SAP-Office konforme Tabelle.</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&nbsp;&nbsp; DATA: currentPos&nbsp;&nbsp; TYPE I,&nbsp;&nbsp; " Zeiger 
auf die Leseposition 
in<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
" der ArchiveLink-Tabelle<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
writePos&nbsp;&nbsp;&nbsp;&nbsp; TYPE I,&nbsp;&nbsp; " Zeiger auf 
Schreibposition<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
remain&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE I,&nbsp;&nbsp; " Anzahl Zeichen 
in der 
aktuellen<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
" Zeile des 
ArchiveLink-Objektes,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
" Max=255<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
written&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE I,&nbsp;&nbsp; " Anzahl bytes 
übertragen<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; targetLines&nbsp; 
TYPE I,&nbsp;&nbsp; " Größe der Zieltabelle in 
Zeilen<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lines_attachment TYPE 
I,&nbsp; " Anzahl der Zeilen im 
Attachement.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; currentIndex 
TYPE I, " Aktuelle Zeile in der 
Quelltab.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; line_out(255) TYPE 
C,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; line_attachment TYPE 
solix,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
line_len&nbsp;&nbsp;&nbsp;&nbsp; TYPE I.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " Länge 
derselbigen</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&nbsp;&nbsp; currentPos = 0.<BR>&nbsp;&nbsp; writePos&nbsp;&nbsp; = 
0.<BR>&nbsp;&nbsp; REFRESH: attachment.<BR>&nbsp;&nbsp; CLEAR: line_out, 
attachment.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; targetLines = length / 255.<BR>&nbsp;&nbsp; " Rest 
prüfen<BR>&nbsp;&nbsp; remain&nbsp;&nbsp;&nbsp;&nbsp; = length - ( targetLines * 
255 ).<BR>&nbsp;&nbsp; IF remain &lt;&gt; 0. " Ja, noch eine 
Restzeile<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ADD 1 TO 
targetLines.<BR>&nbsp;&nbsp; ENDIF.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; remain&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 
255.&nbsp;&nbsp;&nbsp;&nbsp; " Wieder initialisieren<BR>&nbsp;&nbsp; 
currentIndex = 1.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; WHILE lines_attachment &lt;= targetLines.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; READ TABLE archivobject INDEX 
currentIndex.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; line_Out+writePos(remain) = 
archivobject+currentPos(remain).<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " 
Concat schluckt spaces</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; written = remain.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; line_len = writePos + remain.&nbsp;&nbsp; " 
writePos beginnt ja bei 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; writePos = writePos 
+ remain.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IF writePos = 255. " Voll gefüllt, 
dann appenden</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; APPEND line_out TO 
attachment.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CLEAR 
line_out.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; writePos = 
0.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ELSEIF writePos &gt; 
255.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " 
exception<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ENDIF.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " Jetzt prüfen, ob dies bereits der Rest der 
Quell-Zeile war.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " Wenn ja, dann müssen wir 
beim nächsten Durchlauf die<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " nächste Zeile 
lesen.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IF currentPos &gt; 
769.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ADD 1 TO 
currentIndex.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " Und den Rest 
ausrechnen, mit dem die nächste 
Zeile<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " noch gefüllt werden 
muss.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; remain = currentPos + 
255 - 1024.</DIV>
<DIV>&nbsp;</DIV>
<DIV>*---&gt; Insert part 
IIId<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " Wenn die letzten 
Bytes exakt reingepaßt haben, dann 
eine<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " neue volle zeile 
lesen<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IF remain &lt;= 
0.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; remain 
= 255.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ENDIF.<BR>*&lt;---- 
end of Insert<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; currentPos = 
0.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ELSE. " Die aktuelle Zeile enthält noch 
genügend Bytes, 
um<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " voll 
zu lesen.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ADD written TO 
currentPos.&nbsp;&nbsp; " Zeiger weiterschieben</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IF currentPos &gt; 
769.&nbsp;&nbsp;&nbsp;&nbsp; " Nächste Zeile kann nicht 
mehr<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
" voll gefüllt werden, da 
keine<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
" 255 byte übrig sind<BR>*---&gt; Insert part 
IIId<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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&nbsp;&nbsp; ENDIF.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DESCRIBE TABLE attachment LINES 
lines_attachment.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; ENDWHILE.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>ENDFUNCTION.<BR></DIV>
<DIV></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=avnrkumar@yahoo.co.in href="mailto:avnrkumar@yahoo.co.in">a.v.n.r 
  kumar</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=sap-wug@mit.edu 
  href="mailto:sap-wug@mit.edu">SAP Workflow Users' Group</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, May 02, 2008 7:36 AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> SOFM</DIV>
  <DIV><BR></DIV>
  <DIV>Hi,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp; I can get the doucment details using ARCHIVOBJECT_GET_TABLE. It 
  returns the data in 1024 char table. The SOFM object needs data of 255 char. 
  How can we convert this.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Thanks</DIV>
  <DIV>Raghavendra<BR><BR><B><I>"Florin Wach (gmx)" &lt;<A 
  href="mailto:florin.wach@gmx.net">florin.wach@gmx.net</A>&gt;</I></B> 
  wrote:</DIV>
  <BLOCKQUOTE class=replbq 
  style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
    <META content="MSHTML 6.00.6000.16640" name=GENERATOR>
    <STYLE></STYLE>

    <DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>instantiate the object type IMAGE and execute 
    IMAGE.Display as "Secondary Method" to display the archived document 
    together with the workitem's execution.</FONT></DIV>
    <DIV><FONT face=Arial size=2>If you just want to add a hyperlink to the 
    document in the workitem display, use a container operation _ADHOC_OBJECT 
    &lt;- &amp;IMAGE&amp; and add it there.</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Best wishes,</FONT></DIV>
    <DIV><FONT face=Arial size=2>Florin</FONT></DIV>
    <BLOCKQUOTE 
    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
      <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
      <DIV 
      style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
      <A title=avnrkumar@yahoo.co.in href="mailto:avnrkumar@yahoo.co.in">a.v.n.r 
      kumar</A> </DIV>
      <DIV style="FONT: 10pt arial"><B>To:</B> <A title=sap-wug@mit.edu 
      href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A> </DIV>
      <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, May 01, 2008 3:40 
      PM</DIV>
      <DIV style="FONT: 10pt arial"><B>Subject:</B> How to attach archived 
      documents in the Workitem</DIV>
      <DIV><BR></DIV>
      <DIV>Hi,</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>&nbsp; How to attach archived documents in the Workitem.</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>Thanks</DIV>
      <DIV>Raghavendra</DIV>
      <DIV><!--2-->
      <HR SIZE=1>
      </HR>Unlimited freedom, unlimited storage. <A 
      href="http://in.rd.yahoo.com/tagline_mail_2/*http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/">Get 
      it now</A> 
      <DIV>
      <HR>

      <DIV></DIV>_______________________________________________<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">http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR></DIV></DIV></BLOCKQUOTE>_______________________________________________<BR>SAP-WUG 
    mailing 
    list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></BLOCKQUOTE><BR>
  <P><!--7-->
  <HR SIZE=1>
  </HR>Meet people who discuss and share your passions. <A 
  href="http://in.rd.yahoo.com/tagline_groups_7/*http://in.promos.yahoo.com/groups/bestofyahoo/">Join 
  them now.</A>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>SAP-WUG mailing 
  list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></BLOCKQUOTE></BODY></HTML>