‎2006 Jun 01 10:49 AM
I am exporting my output list to an Excel file.
But i want to over write into Excel every time i execute my report
with new MATNR.
Is there any FM available ?
Thanks,
Reddy.
‎2006 Jun 01 10:52 AM
Hi,
If you are using GUI_DOWNLOAD FM, if you give the same file name, I think it'll automatically overwrite the contents whenever you call the FM.
Regards,
Aswin
‎2006 Jun 01 10:53 AM
‎2006 Jun 01 10:53 AM
Reddy,
Will the below work for you..?
Give the same excel file name for the second execution. It will overwrite the existing detials...
Cheers,
Thomas
‎2006 Jun 01 10:58 AM
‎2006 Jun 01 10:59 AM
Hi,
GUI_dounload Fm will ask for user path
to save the data. Give same file path the
previous contents will be overwritten.
Regards,
Amole
‎2006 Jun 01 11:00 AM
Hi,
if you give the same file name it will over write it.
are you using GUI_DOWNLOAD FM. if so try to check are you passing APPEND = ' ' or 'X' if it is X it will append, but if it is space then it will over write.
Regards
vijay
‎2006 Jun 01 11:02 AM
Hi,
Use GUI_DOWNLOAD. it automatically overites the values.
keep the same file path & Name.
Eg:-
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'c:/abc.xls'
filetype = 'DAT'
write_field_separator = 'X'
codepage = '4103'
TABLES
data_tab = lit_head_data
EXCEPTIONS
file_write_error = 1
Mark Helpfull Answers
Regards