Skip to Content
0
Former Member
Jul 04, 2011 at 08:57 AM

How to send a formatted Excel sheet as an attachment in a mail.

5094 Views

Hi,

My question is "How to send a foramtted Excel sheet (Developed using ABAP program by using OLE Automation

Controller)" as an Attachment in a mail. I have checked CL_DOCUMENT_BCS->ADD_ATTACHMENT,which Imports a internal table of type SOLI_TAB / SOLIX_TAB and convert into unformatted Excel sheet. ALso

CL_DOCUMENT_BCS->ADD_DOCUMENT_AS_ATTACHMENT (Add Existing Document as an Attachment) however its parameter is an interface (IF_DOCUMENT_BCS). Should I use the same class or does SAP have an alternate class ?

Please give me hint on the above questuin.

Thankx in advance.