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

Export ALV in EXCEL Issue

Former Member
0 Likes
3,505

Hi All,

I am facing a strange problem while exporting my ALV output to Excel file.

I have copied a program for TCODE IW39 and added some fields to be displayed in ALV.

Everything is fine till ALV display.

But when I export my output to Excel, the columns are jumbling.

suppose I have 90 columns, in excel 70 columns are coming in one line and rest of them are coming in next line.

similarly the data as well.

Please help

Thanks in Advance

Lalit Gupta

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,739

Hi,

This is the Technical limitation of ABAP list export to local file.

ALV grid greater than 1023 characters per line will be split into 2 lines.

To prevent a line break occuring when you download the list as a local spreadsheet file, you must reduce the width of the list in ALV. You can do this either by hiding columns or by changing the column widths in the ALV. Take care that the column heading characters also dont exceed 1023 characters. This will work.

Regards,

Sonal

Hi All,

I am facing a strange problem while exporting my ALV output to Excel file.

I have copied a program for TCODE IW39 and added some fields to be displayed in ALV.

Everything is fine till ALV display.

But when I export my output to Excel, the columns are jumbling.

suppose I have 90 columns, in excel 70 columns are coming in one line and rest of them are coming in next line.

similarly the data as well.

Please help

Thanks in Advance

Lalit Gupta

7 REPLIES 7
Read only

Former Member
0 Likes
2,739

Try using the save to local option and check if it is fine.

Read only

0 Likes
2,739

hi

I have copied it from IW39 and the export to excel button was not in menu/application bar.

I have added it manually and the option for save to local is not coming.

thanks

lalit

Read only

Former Member
0 Likes
2,739

Please try with the following procedure.

In the ALV Grid Display you can find LIST in the menubar. Then go to export sub menu and then spreadsheet.

Then select the radio button Excel(in MHTML format) then press continue.Save the file in your desired location with default extension.I think your problem will be solved.

Regards,

Suvajit.

Read only

0 Likes
2,739

Hi

Buddy I can save the report in excel and i know how to export

but the problem is my columns in Excel are coming in jumble, they are not coming in one line.

i want them in one line

i hope you understand now.

thanks

lalit Gupta

Read only

0 Likes
2,739

Hi ,

Try downloading from some other computer, if it works fine then some problem with Excel on your computer.

Read only

Former Member
0 Likes
2,740

Hi,

This is the Technical limitation of ABAP list export to local file.

ALV grid greater than 1023 characters per line will be split into 2 lines.

To prevent a line break occuring when you download the list as a local spreadsheet file, you must reduce the width of the list in ALV. You can do this either by hiding columns or by changing the column widths in the ALV. Take care that the column heading characters also dont exceed 1023 characters. This will work.

Regards,

Sonal

Read only

Former Member
0 Likes
2,739

Thanks All

It is resolved now.