cancel
Showing results for 
Search instead for 
Did you mean: 

download option in table

Former Member
0 Kudos

Hai,

I have a table UI element populated with values.

I have to download the contents thro excel file. I dont want to do in alv.

pls give some suggestions

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

You can use the following code to download the data.


CALL METHOD CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE
  EXPORTING
    I_FILENAME      = 'test.xls'
    I_CONTENT       = lv_name
    I_MIME_TYPE     = 'XLS'
 

if you want to download some slected rows then you can read the selected rows of table. otherwise put the all data in internal table and downlaod with above method.

Regards

Naresh

Answers (0)