Skip to Content
0
Former Member
Nov 25, 2009 at 09:28 AM

Upload file using a .txt or .xls

3689 Views

Hello all,

Can anyone tell me how to upload a file which can be either a txt file or an excel file using gui_upload function module .

Currently I am using

CALL METHOD r_obj->gui_upload

EXPORTING

filename = filename

filetype = 'ASC'

has_field_separator = 'X'

IGNORE_CERR = ABAP_TRUE

CHANGING

data_tab = t_filedata

This is working fine for uploading a txt file but not for excel file.