Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Send a complex Excel by Email

Former Member
0 Kudos

    Hello,

¿Is it possible to attach and send by Email an Excel with ActiveX components and other complex formats?

Im not creating de Excel, simply getting it from de local pc and send it with an ABAP program.

thanks!

1 ACCEPTED SOLUTION

Clemenss
Active Contributor
0 Kudos

Hi Fernando,

yes, why not.

An excel file is saved as a binary file - regardless of complexity. You can use cl_gui_frontend_services= gui_upload to get the file into memory. Then use CL_BCS to create email with attachment.

OK, the receiver must have excel and active x installed to make use of it.

See sample code here or in BCS* reports.

Regards

Clemens

4 REPLIES 4

Clemenss
Active Contributor
0 Kudos

Hi Fernando,

yes, why not.

An excel file is saved as a binary file - regardless of complexity. You can use cl_gui_frontend_services= gui_upload to get the file into memory. Then use CL_BCS to create email with attachment.

OK, the receiver must have excel and active x installed to make use of it.

See sample code here or in BCS* reports.

Regards

Clemens

Former Member
0 Kudos

Hi Clemens,


now I have the following problem and I hope you can help me:


I have to :

1) download an Excel template from AL11 to the PC.

2) open the document and write data on it.

3) close the document.

4) upload the document to SAP.

5) send it by mail.


my problem is 2): I have to open it as invisible and write it.

¿do you know how can I do it?


gracias!

Former Member
0 Kudos

The whole point of going to the PC is to make the file visible to the user.  If you don't want the user to see it, bring it into SAP using one of the EXCEL to internal table functions, modify the data, send it via BCS method calls (see programs named by BCS*).  What's the point in downloading and uploading in this case?

Former Member
0 Kudos

I have to work with an Excel allocated in AL11... somehow i have to edit it and send it by mail...

this excel has images and and formated cells, and many sheets (I need to edit sheet1)..

i'am downloading the file to be able to work with it..