Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

GUI_UPLOAD

Former Member
0 Likes
676

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
642

Helo,

the file extn is absent in the filename u supplying to GUI_UPLOAD.. Give extension.txt and then it will work.

Regards,

Mansi.

5 REPLIES 5
Read only

Former Member
0 Likes
643

Helo,

the file extn is absent in the filename u supplying to GUI_UPLOAD.. Give extension.txt and then it will work.

Regards,

Mansi.

Read only

Former Member
0 Likes
642

hi ......

give File extention to file like .txt, .doc, .xls...

Example

FILENAME = 'C:\Temp\test.txt'

try it.....

Regards

Chintan

Read only

Former Member
0 Likes
642

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

Read only

Former Member
0 Likes
642

Hi Partha,

With the file path, give the extension of the file also like .txt or .xls

Regards,

Nitin.

Read only

jyotheswar_p2
Active Participant
0 Likes
642

GIve the Complete filename and check once again.

Check whether the file test is available or not in ur c drive.

Thanks

Jyo