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: 

Exporting to a local file using menu

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

Hi,

Check the below link

[;

Regards,

Surinder