failed to execute ftp command

Question: I want to change the transfer type to ASCII and add "type ascii" in the commands, however, it can't be executed and the system returned the error information:"RFC call of subcommand not implemented",what's wrong? In addition, i've checked that the transfer type was ASCII and when i ftp a text file to local machine using the ftp command manually, the file is ok, but when i run the program to ftp the same file , it was sent in BINARY type. why?

Answer:
Exactly what the error message says.

However, for a more informative answer, how are you using the FTP system ? Via the FTP function modules in SAP, or via a batch file which you create in an itab, download it and execute it ?

Which function modules are you using and some example parameters will also help.
_________________
Regards

R


Abap KC
SFMDR

Answer:
Exactly what the error message says.

However, for a more informative answer, how are you using the FTP system ? Via the FTP function modules in SAP, or via a batch file which you create in an itab, download it and execute it ?

Which function modules are you using and some example parameters will also help.

Hi:
I've used the function module of "FTP_CONNECT" and "FTP_COMMAND_LIST" and "FTP_DISCONNECT"

the contents of the commands itab is like below, the first two lines highlighted with red color can not be executed.

concatenate 'type' 'ascii' into commands separated by space.
append commands.
CONCATENATE 'lcd' FILEPATH INTO COMMANDS SEPARATED BY SPACE.
append commands.
CONCATENATE 'cd' 'SeagateB2B' INTO COMMANDS SEPARATED BY SPACE.
append commands.
CONCATENATE 'put' FILENAME INTO COMMANDS SEPARATED BY SPACE.
append commands.
Copyright ?2007 - 2008 www.jt77.com