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

problem with ftp_connect function module

Former Member
0 Likes
1,133

Hi all,

I have to send a file from my sandbox server to a client server...(both are sap servers)...

In ftp_connect..

I am giving host = ip address of the client server...

user = userid of the client server

pwd = scrambled one as obtained from http_scramble

rfc_dest = sapftpa.

But the sy-subrc is failing...

The error is 'attempt to connect to the above host failed..'

Can you plis tell me why this is happening...Also tell me that in host parameter do i need to give the ip address of the target server...

Also can you suggest some reference about ftp from abap as i am new to it and does not have any basic knowledge about the topic to get my concepts clear...But plis help me out with the ftp_connect problem....

7 REPLIES 7
Read only

Former Member
0 Likes
876

Hi,

Refere this thread,

https://forums.sdn.sap.com/click.jspa?searchID=2382125&messageID=3238355

Reward points if useful..

Regards

Nilesh

Read only

0 Likes
876

HI Nilesh,

But my problem is still not solved....I am still getting that error..

Am I doing any mistake in giving ip address of the destination server in the host name...

Plis suggest..

Read only

Former Member
0 Likes
876

refer to my BLOG...

/people/community.user/blog/2007/01/15/transferring-data-from-sap-to-other-systems

Read only

Former Member
0 Likes
876

Hi vijaya,

1. With the help of basis guys, make sure FTP Service

is running on the server, to which u want to send file.

2. Another thing is before writing abap code,

u can from your desktop, use the FTP command utility,

and check.

regards,

amit m.

Read only

0 Likes
876

Hi amit,

How can I do the 2nd one..Actually i was trying to test ftp connection by the program rsftp002? There i was getting the error...

Does it mean that there is no ftp facility on my server...How can I check that all the necessary settings are there for ftp facility....?

Read only

0 Likes
876

hi again,

1. from your front-end,

2. Goto Start--->Run

3. Type CMD

4. A new window (command window will get opened)

5. Then type FTP

(For that u should know the FTP command / protocol)

6. Try to open command to connect to server and check.

regards,

amit m.

Read only

0 Likes
876

Hi amit,

I tried which u mentioned in ur last rply...But when i tried to connect to my sap server from command prompt the login failed..What does it mean?