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

Error in FTP command

former_member220286
Participant
0 Likes
3,061

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 ..

4 REPLIES 4
Read only

Former Member
0 Likes
1,644

Hi Deepak,

May be firewall is blocking the access.

Read only

0 Likes
1,644

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  .

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,644

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.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,644

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