2021 Nov 16 7:09 AM
Dear Experts,
Greetings!
I have an ALV in my SAP ABAP report. When the ALV output is downloaded to XLS format excel sheet; all the fields are proper. meaning the numeric fields are saved as numeric fields only which is as expected. The same ALV output, when downloaded to XLSX format, the numeric fields are saved as text. User need to convert all columns from text to number to be able to calculate sum in excel. We need the fields to be saved as numeric values
Please help with this. Both XLS & XLSX formats should give the numeric fields as numeric fields.
Regards
Shankar
2021 Nov 16 7:59 AM
2021 Nov 16 8:40 AM
Dear Frederic,
We are using CL_GUI_ALV_GRID=>SET_TABLE_FOR_FIRST_DISPLAY to display the ALV. It already has the Download option. From there, we are downloading the output into XLS, XLSX format excel files.
XLS file is all as expected.
XLSX file - the numeric fields are saved as text. User need to convert all columns from text to number to be able to calculate sum in excel. We need the fields to be saved as numeric values
Regards,
Shankar
2021 Nov 16 9:53 AM
I'm surprised that the numbers are not exported as numbers. There are many options to export to XLSX, maybe you didn't choose the right one.
2021 Nov 16 9:56 AM
hide the button, create a new one. With a beautiful class managing dynamicaly the fieldcatalog. After this you could call it in all your ALV grid
2021 Nov 16 10:08 AM
2021 Dec 07 5:36 PM
Hi
Can you share the code for download the alv into XLSX file format.