Hi Swathi,<div><br></div><div>we can achieve this process through 
<span style>SOFM</span> Business Object....<br><br><div class="gmail_quote">On Sun, May 20, 2012 at 5:05 PM, aditya rao <span dir="ltr">&lt;<a href="mailto:aadityarao84@gmail.com" target="_blank">aadityarao84@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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"><div><div class="h5">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>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">





<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></div></div>_______________________________________________<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>_______________________________________________<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"><div><br></div>-- <br><p style="padding:0px!important;color:rgb(0,51,153);line-height:20px;text-indent:0px!important;font-family:Calibri,sans-serif;font-size:12pt;margin-top:0px!important;margin-right:0px;margin-bottom:0pt;margin-left:0px">
<b style="line-height:20px;text-indent:0px!important;font-weight:bold"><span style="color:rgb(31,73,125);line-height:13px;text-indent:0px!important;font-family:Verdana,sans-serif;font-size:7.5pt" lang="EN-IN">Best Regards</span></b></p>
<p style="padding:0px!important;color:rgb(0,51,153);line-height:20px;text-indent:0px!important;font-family:Calibri,sans-serif;font-size:12pt;margin-top:0px!important;margin-right:0px;margin-bottom:0pt;margin-left:0px"><b style="line-height:20px;text-indent:0px!important;font-weight:bold"><span style="color:rgb(31,73,125);line-height:13px;text-indent:0px!important;font-family:Verdana,sans-serif;font-size:7.5pt" lang="EN-IN"><span style="color:rgb(0,51,153);line-height:20px;text-indent:0px!important;font-family:Calibri,sans-serif;font-size:16px;font-weight:normal"><b style="line-height:20px;text-indent:0px!important;font-weight:bold"><span style="color:rgb(31,73,125);line-height:13px;text-indent:0px!important;font-family:Verdana,sans-serif;font-size:7.5pt" lang="EN-IN">Syambabu Allu</span></b></span></span></b><b style="line-height:20px;text-indent:0px!important;font-weight:bold"><span style="color:rgb(31,73,125);line-height:13px;text-indent:0px!important;font-family:Verdana,sans-serif;font-size:7.5pt" lang="EN-IN"><span style="color:rgb(0,51,153);line-height:20px;text-indent:0px!important;font-family:Calibri,sans-serif;font-size:16px;font-weight:normal"><b style="line-height:20px;text-indent:0px!important;font-weight:bold"><span style="color:rgb(31,73,125);line-height:13px;text-indent:0px!important;font-family:Verdana,sans-serif;font-size:7.5pt" lang="EN-IN"><span style="text-indent:0px!important" lang="EN-IN"><span style="text-indent:0px!important;font-weight:normal"><span style="white-space:pre"><font><span style="white-space:pre"><b style="line-height:20px;text-indent:0px!important;font-weight:bold"><span style="color:rgb(31,73,125);line-height:13px;text-indent:0px!important;font-family:Verdana,sans-serif;font-size:7.5pt" lang="EN-IN"><span style="color:rgb(0,51,153);line-height:20px;text-indent:0px!important;font-family:Calibri,sans-serif;font-size:16px;font-weight:normal"><b style="line-height:20px;text-indent:0px!important;font-weight:bold"><span style="color:rgb(31,73,125);line-height:13px;text-indent:0px!important;font-family:Verdana,sans-serif;font-size:7.5pt" lang="EN-IN"><img src="http://www.sap.com/global/ui/images/global/sap-logo.png" height="11" width="21"></span></b></span></span></b></span></font></span></span></span></span></b></span></span></b></p>
<p style="padding:0px!important;color:rgb(0,51,153);line-height:20px;text-indent:0px!important;font-family:Calibri,sans-serif;font-size:12pt;margin-top:0px!important;margin-right:0px;margin-bottom:0pt;margin-left:0px"><b style="font-weight:bold"><font color="#808080" face="Arial, sans-serif"><span style="line-height:14px;font-size:11px">SAP Technical Consultant <br>
</span></font></b></p><b style="font-weight:bold"><span style="color:rgb(166,166,166);line-height:14px;font-family:Arial,sans-serif;font-size:8pt"><span style="color:blue"></span></span></b><p></p><span style="font-family:garamond,serif;font-size:large;white-space:pre-wrap"></span><br>

</div>