Skip to Content
0
Former Member
Apr 21, 2009 at 11:36 AM

How to download alv data in webdynpro to external file

85 Views

Hi,

Can anyone guide me how to download alv data from webdynpro to an external file. i followed the standard component WDR_TEST_EVENTS . FILE DOWNLOAD.

method supply_file .

data conv_out type ref to cl_abap_conv_out_ce.

data struct type if_filedownload=>element_filecontent_node.

  • fill the file content

conv_out = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' ).

conv_out->convert(

exporting

data = 'Der Inhalt einer Textdatei'

importing

buffer = struct-filecontent ).

node->bind_structure( struct ).

endmethod.

But how to pass our alv table data here instead of the text (Der Inhalt einer Textdatei) .

Thanking you

Archana.