During debuggin right click and choose option save as excel or if you want to do it thru program you can use gui_download to do the job.
Regards
Raja
Hi,
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
filename = 'd:\cps_data1.xls'
filetype = 'DAT'
mode = 'A'
TABLES
data_tab = intab
EXCEPTIONS
file_open_error = 1
file_write_error = 2
invalid_filesize = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
no_authority = 10
OTHERS = 11
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
here intab is your internal table name.
Try this. it will help.
Regards,
Kathir
Add a comment