Hi ,<br><br>The business object for this template is WF_DOC , this has a method  called  CREATE_SOFM . Use this to convert the document to an office document format.<br><br>So create a background method with the above details :<br>
For Key fields <br> LOIO_CLASS  --&gt; put  WF_FILE.<br> LOIO_ID          ---&gt;  Put the id generated from contained for the document .<br><br>This will return an instance of  SOFM .Then you can use the business object  SOFM and method  SEND to send the same as email .<br>
<br>Regards<br>Aditya <br><br><div class="gmail_quote">On Mon, May 14, 2012 at 4:03 PM,  <span dir="ltr">&lt;<a href="mailto:Swathi.Devireddy@cognizant.com" target="_blank">Swathi.Devireddy@cognizant.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal">Our requirement is on Approval of Invoice a  Document from Template is created and this should be sent to an e-mail address
<u></u><u></u></p>
<p class="MsoNormal">With the Document as attachment.<u></u><u></u></p>
<p class="MsoNormal">Any idea how we can achieve this.<u></u><u></u></p>
<p class="MsoNormal">Regards,<u></u><u></u></p>
<p class="MsoNormal">Swathi<u></u><u></u></p>
</div>
</div>


<table><tbody><tr><td bgcolor="#ffffff"><font color="#000000"><pre>This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful.</pre>
</font></td></tr></tbody></table>
<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>