2009 Apr 27 11:28 AM
Hi All,
I want upload a Comma Separated text file into Internal table.
I am using GUI_upload FM.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\Temp\test'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = itab.
I am getting message of File not Available but file is available in the specified folder.
Pls Advice.
Thanks
Partha.
2009 Apr 27 11:30 AM
Helo,
the file extn is absent in the filename u supplying to GUI_UPLOAD.. Give extension.txt and then it will work.
Regards,
Mansi.
Hi Partha,
With the file path, give the extension of the file also like .txt or .xls
Regards,
Nitin.
2009 Apr 27 11:30 AM
Helo,
the file extn is absent in the filename u supplying to GUI_UPLOAD.. Give extension.txt and then it will work.
Regards,
Mansi.
2009 Apr 27 11:31 AM
hi ......
give File extention to file like .txt, .doc, .xls...
Example
FILENAME = 'C:\Temp\test.txt'
try it.....
Regards
Chintan
2009 Apr 27 11:31 AM
hi,
do not hardcode the file name, instead of that use filename_f4 to get the file name and then pass it to the gui_upload..
i think u r misssing the file extension in the file name given...
Rgds.,
subash
2009 Apr 27 11:32 AM
Hi Partha,
With the file path, give the extension of the file also like .txt or .xls
Regards,
Nitin.
2009 Apr 27 11:33 AM
GIve the Complete filename and check once again.
Check whether the file test is available or not in ur c drive.
Thanks
Jyo
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |