‎2007 May 02 10:50 AM
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....
‎2007 May 02 10:56 AM
Hi,
Refere this thread,
https://forums.sdn.sap.com/click.jspa?searchID=2382125&messageID=3238355
Reward points if useful..
Regards
Nilesh
‎2007 May 02 2:53 PM
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..
‎2007 May 02 2:56 PM
refer to my BLOG...
/people/community.user/blog/2007/01/15/transferring-data-from-sap-to-other-systems
‎2007 May 02 2:59 PM
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.
‎2007 May 02 3:16 PM
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....?
‎2007 May 02 3:39 PM
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.
‎2007 May 03 5:21 AM
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?