‎2015 Jun 22 11:41 AM
Dear all ,
I have a program that picks the file from the FTP server and then post the file in SAP .
Sometimes my scheduled program runs fine and the data got picked from the FTP server but sometimes it shows an error :
"Error in FTP command '.
Please suggest what is the reasons for this error ..
‎2015 Jun 22 11:43 AM
‎2015 Jun 22 2:25 PM
Hi Abdul ,
Thanks for the reply .
Although the job is being runned or getting executed but the file not getting picked from the ftp sever .
Other than firewall what may the other reasons for this issue .
‎2015 Jun 22 11:54 AM
Hi Deepak,
go to SM49 and see for the FTP command.
It depends on the file server you run. for example for UNIX the command is SAA_TP_CHECK.
run it to see if everything is alright.
Other option is do it manually by using PUT command via FTP (I mean thru command prompt).
see if the data is uploaded successfully.
if everything is fine then I am sure it is a programmatic error. please post your code.
‎2015 Jun 22 3:28 PM
The FM FTP_COMMAND returns a log (parameter DATA) you could get some message there for error from "The system cannot find the file specified." to authorization errors, and at least it contains a list of FTP statements executed (PORT, GET, PUT, etc.)
Hint: Check the return code of the FM and convert this table to information message/application log.
Regards,
Raymond