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

Excel error while opening the ALV output

Former Member
0 Likes
1,433

Hi Gurus,

I have developed a program to send the ALV output mail.After receiving mail if am trying to open the attached excel sheet getting below error.

Please suggest how to remove.

Regards,

Chitme

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
1,303

I suppose you didn't attach an Excel file, but an XML or mHTML file, but with a suffix .XLS or .XLSX, so Excel implicitly called cause of suffix raise the warning. (It's a FAQ)

Hint: for a true XLSX file (sorry for XLS, proprietary format, you need OLE) look for recent SAP provided classes or Abap2Xlsx library.

Hi Gurus,

I have developed a program to send the ALV output mail.After receiving mail if am trying to open the attached excel sheet getting below error.

Please suggest how to remove.

Regards,

Chitme

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
1,304

I suppose you didn't attach an Excel file, but an XML or mHTML file, but with a suffix .XLS or .XLSX, so Excel implicitly called cause of suffix raise the warning. (It's a FAQ)

Hint: for a true XLSX file (sorry for XLS, proprietary format, you need OLE) look for recent SAP provided classes or Abap2Xlsx library.

Read only

Nawanandana
Active Contributor
0 Likes
1,303

may be your excel attachment corrupted in email. check that In the internal table to build excel file, wild characters were present if its take it off .