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

Missing data when exporting ALV Report to Excel

ricardo_fudaba
Explorer
5,640

Hi members!

In an ALV Report data display good.

When I clicked right button on the grid, I choose “Spreadsheet” for downloading to Excel.

At Excel, no data displayed for various columns…

Otherwise, if I click on “Microsoft Excel (Ctrl+Shift+F7)”….

The behaviour is that the process spend more time than normal and is generated an Excel macro spreadsheet, with a lot of tabs, but all data is complete!

I do not want the Excel as a macro spreadsheet and more than one tab.

Please, can anyone help me on how to take the simple spreadsheet with all data?

I have been using Function ‘REUSE_ALV_GRID_DISPLAY’ to take the ALV report.

Best Regards,

Ricardo.

4 REPLIES 4
Read only

ricardo_fudaba
Explorer
5,089

Hi Members,

I solved the problem of missing data exporting ALV report to Excel.

The fieldname on fldcat-fieldname was wrote in lower-case.

After I change to upper-case, the data were exported Ok to Excel.

Best Regards,

Ricardo.

Read only

custandcode
Explorer
0 Kudos
5,089

Hi,

To display Data in an ALV Grid I use the Method cl_salv_table=>factory.
In my opinion very easy to use and also with the Excel export you don't have these useless Excel tabs like "Sub1", "Sub2",...
regards

Read only

RaymondGiuseppi
Active Contributor
0 Kudos
5,089

In these cases, always perform the consistency check on your Grid, ALV display is more error-tolerant than export.

Read only

MarioMüller
Discoverer
0 Kudos
3,989

Hi,

I got a similar issue. Two columns with unneccessary ICON functionality where not exported to EXCEL.
After removing the ICON: SOLVED 🙂

     lr_column ?= lr_columns->get_column'ANLAGE' ).
      lr_column->set_cell_typeif_salv_c_cell_type=>hotspot ).
*      lr_column->set_icon( if_salv_c_bool_sap=>true ).

Regards Mario