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

FTP Connection

Former Member
0 Likes
873

Hello,

I´m trying to use FM FTP_CONNECT for setting up a connection between 2 SAP systems like this:

CALL 'AB_RFC_X_SCRAMBLE_STRING'

ID 'SOURCE' FIELD mc_password ID 'KEY' FIELD mi_key

ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD mc_password

ID 'DSTLEN' FIELD mi_pwd_len.

CALL FUNCTION 'FTP_CONNECT'

EXPORTING

user = 'USER01'

password = mc_password

host = '146.254.217.104'

rfc_destination = 'SAPFTP'

IMPORTING

handle = mi_handle

EXCEPTIONS

not_connected = 1

OTHERS = 2.

however, there´s no connection. I think it must be the value for HOST, which I got from trans. SM59. Is this correct or what could it be ??

Thanks

6 REPLIES 6
Read only

Former Member
0 Likes
800

heck the following programs:

RSFTP001 SAPFTP Version

RSFTP002 Execute FTP Comma

RSFTP003 FTP put / get Tes

RSFTP004 FTP Copy

RSFTP005 SAPFTP check

RSFTP006 FTP command list

And see weather everything is working fine or not.

Regards

Read only

Former Member
0 Likes
800

hi Jorge,

Check out this sample program

http://www.sap-img.com/ab003.htm

Regards,

Santosh

Read only

0 Likes
800

Hi,

I had checked those programs before posting my question. The fact is that I do not know, where to get the information for fields HOST & RFC_DESTINATION.

Thanks.

Read only

0 Likes
800

If you haven't done already: use transaction SM59 to determine the correct RFC connection.

Read only

Former Member
0 Likes
800

-

Read only

0 Likes
800

>

> -

The "Comment and Mark as Answered" field is not mandatory.

You can also close the thread without posting to it, which avoids bumping old threads to the top of the forum again.

Cheers,

Julius