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

TXT file does not opn - function module WS_UPLOAD

Former Member
0 Likes
865

Hi All,

I am trying to upload the txt file using the WS_UPLOAD function module. my system version is 4.6C .

I am using file type as DAT.

I am getting error with sy-subrc = 1 ie exception as FILE_OPEN_ERROR.

i tried in SDN but could not find the solution.

Please advice.

Thanks,

Vengal Rao.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
786

Hi,

Please check the file name and location,

Please check if any extension like txt is used, if used please remove it.

Thanks,

Anmol.

5 REPLIES 5
Read only

Former Member
0 Likes
786

Are you running this in the background?

Is the file on the application server rather than the PC?

Have you spelled the file name correctly?

Rob

Read only

Former Member
0 Likes
787

Hi,

Please check the file name and location,

Please check if any extension like txt is used, if used please remove it.

Thanks,

Anmol.

Read only

0 Likes
786

yes, the extension txt was used for the file.

Now i removed it.

Issue solved.

Thanks,

Vengal Rao.

Read only

Former Member
0 Likes
786

Hi,

While executing the program, make sure that the text file u are trying to upload is closed.

IF the file is open and u trying to upload it will throw the error, file open error

Read only

0 Likes
786

Also make sure that there isn't any field conversion error from the txt file to your input table.