09-18-2008 5:55 AM
Hi,
I have report that displays the data in an ALV so my client wants to export the output to local file using menu: List->Export-->Local File.
Currently i am using this FM to export directly to exel.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
bin_filesize = ' '
codepage = ' '
filename = 'C:\Shared.xls'
filetype = 'DAT'
TABLES
data_tab = i_tab.
Can anyone help me to export data to a local file using menu.
Regards,
Fred.
09-18-2008 6:02 AM
Hi Fred,
There is no need to use any function module for this requirement. As your report is a ALV report, you can use the standard toolbar of ALV for this purpose.
There is a Export button present on the toolbar.You can proceed this like this:
Export>Local File>spreadsheet(any from options)
So you can tell your client to use this export button in toolbar for downloading purpose.
Hope this solves yours problem.
Regards,
Brajvir
09-18-2008 6:05 AM
FM is not needed for downloading the report if you are using ALV report.
Check menu bar of ALV report. There is one button for downloading report.
Click that button -> Local file -> select 'spreadsheet' -> click 'Ok' -> Enter file name -> click 'Transfer'.
Regards,
Aparna Gaikwad
09-18-2008 6:10 AM
Hi Guys,
I have tried to use the buttons you suggested but it's giving me a dump: 'GETWA_NOT_ASSIGNED'. Is there something that i need to do again.
Regards,
Fred.
09-18-2008 6:17 AM