cancel
Showing results for 
Search instead for 
Did you mean: 

to generate EXCEL file using WD ABAP

Former Member
0 Kudos

Hi Experts,

I have to generate one excel file using the ABAP web dynpro application. can you please provide some sample code to implement this applixcation.

Thanks!

Piyush

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi sri,

Using filedownload ui element, if u want using this.. go through this.. it might help you.

http://wiki.sdn.sap.com/wiki/display/WDABAP/UploadandDownloadfilesinWebdynproABAP

Thanks,

Kris.

Edited by: kissnas on Feb 11, 2011 11:46 AM

Former Member
0 Kudos

Hi,

you can try to use the following method:


 cl_wd_runtime_services=>attach_file_to_response(
    i_filename  = 'filename'
    i_content   = content
    i_mime_type = 'application/vnd.ms-excel'
    i_in_new_window = abap_true
    i_inplace       = abap_false ). "filename is the name of the file and content is XString.

Hope this helps!

Regards,

Srilatha

former_member206441
Contributor
0 Kudos

Hi

Refer this [page|].

Regards

Arun.P