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: 

ALV display for MR51

Former Member
0 Kudos

Dears,

I have copied the t-code MR51 to ZMR51 so that the outputfor can be displayed in ALV grid report. The  FM

'REUSE_ALV_HIERSEQ_LIST_DISPLAY' with replaced with FM  'REUSE_ALV_GRID_DISPLAY' to achive this.

ALV report is working fine but when I press the download functionality ( list --> export --> local file --> Spreadsheet),

the layout in totally different from front end. The downloaded excel file has wrong order of columns. Please suggest your inputs. Thanks.

3 REPLIES 3

Former Member
0 Kudos

Hi Sanjay,

have you tried to download by pressing the ALV download button (from ALV menu bar) and not the one from sap Menu.

I don't know right now if REUSE_ALV_HIERSEQ_LIST_DISPLAY gives you a standard download button, but if not maybe you should implement a new button in the tool bar.

Regards,

0 Kudos

Dear Ilie,

Thanks for the reply. Yes, I tried to download using the the ALV download button available in the status bar, but the same issue. Then I added a custom button and written code (FM gui_download)for that command also giving same issue.

0 Kudos

Hi Sanjay,

You can use FM SAP_CONVERT_TO_XLS_FORMAT with your status bar button.

or you can check the below link

http://scn.sap.com/message/3068924#3068924

Hope this helps

Please let us know if you have any other issues