Skip to Content
avatar image
Former Member

to generate EXCEL file using WD ABAP

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Feb 11, 2011 at 10:05 AM

    Hi

    Refer this [page|file-download-to-excel].

    Regards

    Arun.P

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 11, 2011 at 10:15 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 11, 2011 at 10:46 AM

    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

    Add comment
    10|10000 characters needed characters exceeded