09-18-2014 9:06 AM
Hi All,
The user is trying to download data from Option -> Export -> Spreadsheet which will create XXL.
But while downloading there is mismatch in the order of columns displayed on the alv grid & columns downloaded.
All character fields are displayed on left, then date fields then quantity fields are downloaded to XXL. but in ALV Grid user has chosen a layout in which date fields come first.
Please help me to find solution
09-18-2014 9:37 AM
Hi,
What kind of ALV (cl_gui_alv_grid) ?
How the DL is done ? by custum code ?
Regards.
09-18-2014 9:42 AM
Grid display using 'REUSE_ALV_GRID_DISPLAY'. From the alv grid output, user is trying to download data using export -> Excel . so for download there is no custom code.
We have copied standard report and added few more fields to the custom report. strangely Standard report also has this issue.
I searched for SAP notes also..no clue
09-18-2014 9:48 AM
09-18-2014 9:58 AM
Dear Manasa,
when you download data from option -> export....... it will download based on your internal table
format/sequence and not according to ALV display.
check your internal table.
09-18-2014 10:05 AM
No. Export to Excel which creates XXL will take the user layout columns into consideration and creates excel with only chosen columns.
My issue is with date fields..even though date fields are first two columns in my chosen layout, while downloading the date columns are shifted right after all characteristic columns are displayed.
09-18-2014 10:12 AM
09-18-2014 10:15 AM
field catalog is populated using ' 'REUSE_ALV_FIELDCATALOG_MERGE' with a custom structure created by copying standard structure and adding 2 new fields at the end.
09-18-2014 10:17 AM
Found this SAP note, http://service.sap.com/sap/support/notes/1261582