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: 

Problem downloading ALV to Excel

Former Member
0 Kudos

Hi,

I have a ALV report, in that report one of the column is Vendor (LIFNR). In ALV it is displaying with leading zero. but when i download the report into Excel, the leading zero's are truncating. Could anybody let me know the solution for this. I want vendor numbers should be downloaded with leading zeros.

thanks in advance.

regards,

Sadiq

6 REPLIES 6

former_member181995
Active Contributor
0 Kudos

refer:

filetype = 'DBF'"should be there

0 Kudos

Hi,

I am not handling download functionality in my program. It is already there in ALV output screen. From ALV output screen iam trying to download as excel.

0 Kudos

than might be you need to do some setting like:

http://www.automateexcel.com/2004/10/03/excel_keep_leading_zeros/

Former Member
0 Kudos

Hi

The problem is on Excel, not SAP.

The vendor code is a number for excel, so it deletes the leading zero, u should download the vendor code in a text cell, in this way Excel mantains the format.

Max

Former Member
0 Kudos

hi,

You have to do something at excel side.

Pawan_Kesari
Active Contributor
0 Kudos

Try this option from menu on ALV Screen

List->Export->Speadsheet

then save the file