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

Exporting to a local file using menu

Former Member
0 Likes
929

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.

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
Read only

Former Member
0 Likes
714

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

Read only

Former Member
0 Likes
714

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

Read only

0 Likes
714

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.

Read only

0 Likes
714

Hi,

Check the below link

[;

Regards,

Surinder