Application Development and Automation 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: 
Read only

multiple tabs excel attachment in mail

Former Member
3,591

I have a requirement where I need to download an excel from existing report with multiple tabs and attache that excel in my new program and send that through mail.That excel with multiple tabs they are using OLE .Pls help me to do further.

1 ACCEPTED SOLUTION
Read only

Jelena_Perfiljeva
Active Contributor
2,980

Use ABAP2XLSX (Google it).

I have a requirement where I need to download an excel from existing report with multiple tabs and attache that excel in my new program and send that through mail.That excel with multiple tabs they are using OLE .Pls help me to do further.

11 REPLIES 11
Read only

Jelena_Perfiljeva
Active Contributor
2,981

Use ABAP2XLSX (Google it).

Read only

2,980

Funny thing. When I typed in exactly raji_1096 's subject for this question, I got these answered questions suggested.

  1. multiple tabs excel attachment in mail
  2. Data in xml attachment in mail is coming in undesired format ( like chinese characters).
  3. Send email with 1 excel file and multiple sheet
  4. Unable to display column as Numeric in Excel attachment
  5. Send Multiple sheets excel and multiple attachments in mail
  6. Attach excel with multiple tabs from desktop to mail and send it
  7. How to send XL with multiple worksheets on e_mail
  8. how to send .XLSX File with multiple worksheets as an attachment

So, 5 out of 8 suggestions exactly match the OP's question.

Read only

Former Member
0 Likes
2,980

Hi Jelena,

I have used XML to create excel with multiple worksheets and attached that excel to send mail but the problem is while opening the attachment in mail It shows some error .If,I send the excel attachment with only header part, I am able to get the file but with data it's showing like this. pls help me to do further

Regards,

Rajeshwari Thangavel

Read only

matt
Active Contributor
2,980

1) Use comment to reply to an answer. Not answer

2) Then your XML is wrong.

Furthermore, using abap2xlsx to avoid these kinds of problems.

Read only

0 Likes
2,980

So, did you look at the log?

Read only

2,980

Why don't you use ABAP2XLSX instead of XML ? This way, you'll never get an error like that !

Read only

2,980

Thanks for your reply.

I am not able to get the log from that path.I am able get the excel when passing only header if I pass the data to the excel, I am getting that dump.Do you have any reason for this dump?

I am using XML because I am not that much aware of abap2xlsx.

can you pls provide a sample code for abap2xlsx

Read only

matt
Active Contributor
2,980

Abap2xlsx comes with examples.

Read only

0 Likes
2,979

I am new to SAP ABAP. I am not much aware of OO concepts .

abap2xlsx I don't know how to start

Read only

matt
Active Contributor
0 Likes
2,979

"I am new to SAP ABAP. I am not much aware of OO concepts ."

It's part and parcel of ABAP nowadays. Anyway, using classes is relatively simple compared to writing them, so you only need the basics.

Search and you'll find tutorials, demos and blogs.

Read only

0 Likes
2,979

Rajeshwari Thangavel Like Matthew said: "Abap2xlsx comes with examples." You don't really need to be an expert in OO for understanding these demo programs.