Application Development 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: 

Transfer Files Using FTP

Former Member
0 Kudos
99

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

Former Member
0 Kudos
56

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

0 Kudos
56

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

0 Kudos
56

Check RFC connection in SM59

0 Kudos
56

Hi,

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

Regards,

Kumar

0 Kudos
56

Ask your basis guys if you dont know.

0 Kudos
56

RFC Connections are fine !! Any more clues ??

Former Member
0 Kudos
56

Strange but the same question posted in given below thread

Former Member
0 Kudos
56

issue closed

0 Kudos
56

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