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

FTP - exit code 7 ??

former_member194669
Active Contributor
0 Likes
1,440

I am making a ftp from abap program into unix server , but it is giving following error with exit code 7.

Any info on this. following is the error log from SM37.


Verbose mode on.
800 PORT command successful. Con sider using PASV.
853 Could not create file.
821 Goodbye.
 Checking Transfer Status...


 put /vas/atr/prd/int/outbox/yatt301.dat x/yatt301.dat
Transfer Incomplete.....

/vas/atr/prd/bin/ftpput.sh[61]: /vas/atr/prd/int/applog/MASTER.L OG: Cannot create the specified file.
External program terminated with  exit code 7

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,176

Not had this myself, but instinct says authorisations seems most likely (or invalid file name for the operating system you are writing to?)... if the former, are you trying to go an overwrite of an existing file e.g. does it work if you change the target name to, say, sdn.txt as anonymous FTP sometime has this restriction... and does subdirectory x/ exist on target system? It's one of those hard to figure without being there... can you FTP from another application (winFTP or whatever) successfully?

Jonathan

5 REPLIES 5
Read only

Former Member
0 Likes
1,177

Not had this myself, but instinct says authorisations seems most likely (or invalid file name for the operating system you are writing to?)... if the former, are you trying to go an overwrite of an existing file e.g. does it work if you change the target name to, say, sdn.txt as anonymous FTP sometime has this restriction... and does subdirectory x/ exist on target system? It's one of those hard to figure without being there... can you FTP from another application (winFTP or whatever) successfully?

Jonathan

Read only

0 Likes
1,176

Jonathan,

Thanks for your reply.

I am trying to overwrite an existing file in the FTP server with same name . Can you please confirm if the file already exist then if we trying to overwrite with same name ,then this error occurs?

Read only

0 Likes
1,176

Hi,

I've read somewhere (can't find the link, sorry) that this can be a problem with anonymous FTP for example, so it seems likely on this occasion too. If I find the reference tomorrow then I'll post it.

Jonathan

Read only

0 Likes
1,176

I just tried "ftp guest ftp overwrite" in Google and here's one example of the setup for FTP where the permissions for overwrite can be set:

http://danklosterman.homedns.org/linux/guestftp.html

Jonathan

Read only

former_member194669
Active Contributor
0 Likes
1,176

Thanks,

I find problem is because of i am trying to overwrite an existing file