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

Transfer Files Using FTP

Former Member
0 Likes
1,020

Hi,

When I try to run the FTP_CONNECT FM in background,

the ftp server is not connected throwing an error message ''Attempt to set up connection to <ftpserver> failed''.

I am using the RFC destination SAPFTPA and still it is not working!

My program was successfully executing in fore ground with SAPFTP.

Please help.

Thanks and Regards,

Kumar

9 REPLIES 9
Read only

Former Member
0 Likes
977

Hi,

Check is Password getting correctly scrambled.

Use FM HTTP_SCRAMBLE

CALL FUNCTION 'HTTP_SCRAMBLE'
    EXPORTING
      SOURCE      = p_user_password  "--> Pass Password
      sourcelen   = l_slen          "--> Length of the Password
      key         = '26101957'
    IMPORTING
      destination = l_password.

Refer to this link...http://docs.google.com/Doc?id=dfv2hmgs_21g5nmwkgw&hl=en

Read only

0 Likes
977

Hi Avinash,

I have done the scramble of PW , but still not able to run at background using 'SAPFTPA' . Its comes up with an error saying connection failed.

Regards,

Kumar

Read only

0 Likes
977

Check RFC connection in SM59

Read only

0 Likes
977

Hi,

can you pls let me know wht the things i need to check in SM59 .

Regards,

Kumar

Read only

0 Likes
977

Ask your basis guys if you dont know.

Read only

0 Likes
977

RFC Connections are fine !! Any more clues ??

Read only

Former Member
0 Likes
977

Strange but the same question posted in given below thread

Read only

Former Member
0 Likes
977

issue closed

Read only

0 Likes
977

Hi Kumar,

We are also having same problem while connectiing to FTP server through SAP R/3.

I am using

CALL FUNCTION 'HTTP_SCRAMBLE'

EXPORTING

SOURCE = c_pwd

sourcelen = dstlen

key = key

IMPORTING

DESTINATION = c_pwd

.

CALL FUNCTION 'FTP_CONNECT'

EXPORTING

user = c_user

password = c_pwd

host = c_host

rfc_destination = c_dest

IMPORTING

handle = hdl

EXCEPTIONS

not_connected = 1

OTHERS = 2.

IF sy-subrc NE 0.

WRITE:/ 'COULD NOT CONNECT TO', c_host.

ELSE.

But i am unable to connect can you please suggest any solution...