We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

[sap-abap] Program in ABAP To Connect To FTP Server

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Question from arjun on May 24 at 6:28 AM
Hello All,

I am writing a program in ABAP to connect to FTP server to get the file, but to check the directories of the file I am getting the below error, not able to understand what might be the proper reason. Can someone guide me to overcome the problem.

I am writing the below code.

w_cmd = 'dir'.

CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = w_hdl
command = w_cmd
compress = 'N'
TABLES
data = it_cmdout[]
EXCEPTIONS
tcpip_error = 1
command_error = 2
data_error = 3
OTHERS = 4.

Getting below records from the it_cmdout[].


1 dir
2 200 PORT command successful.
3 425 Can't build data connection: Connection refused.

Regards,
Arjun
 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
© 2016 Ziff Davis, LLC. and message author.
Ziff Davis, LLC. 28 E 28th Street New York, NY 10016
arjun  
 
View this online
Ask a new question
 
In the Spotlight
Become a blogger at Toolbox.com and share your expertise with the community. Start today.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language