I am using the FM GUI_DOWNLOAD to generate excel output of an internal table in excel sheet.
I am passing the name of the "filename" parameter as 'c:\mg.xls', and the name of the data_tab
parameter is itab_data.
PFB the code:
CALL FUNCTION 'GUI_DOWNLOAD'
filename = 'c:\mg.xls'
filetype = 'ASC'
append = 'X'
data_tab = it_data
The problem is that if I do not delete the xls sheet from the C drive before running the FM again, it simply appends the new entry again (without deleting the previous one).
How to resolve this... I want the previous entries to be deleted.