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_CONNECT issue

Former Member
0 Likes
3,781

Hi Gurus,

I'm having some problems by using standard function FTP_CONNECT. This is a sample program that I'm using to check the ftp connection.

DATA: l_dhdl     TYPE i,
       l_user(30TYPE c VALUE 'user',
       l_pswd(30) TYPE c VALUE 'password',
       l_host(64TYPE c VALUE 'xxx.xxx.xxx.xxx',
       l_dest         LIKE rfcdes-rfcdest VALUE 'SAPFTP'.

CALL FUNCTION 'FTP_CONNECT'
   EXPORTING
     user                    = l_user
     password          = l_pswd
     host                    = l_host
     rfc_destination = l_dest
   IMPORTING
     handle                = l_dhdl
   EXCEPTIONS
     not_connected  = 1
     OTHERS               = 2.

By debugging the function I noticed that returns CERROR = 3, so a E202 error. The connection with the parameters I export to the function is available by command line, so I think is not a problem with ftp server.

Could anyone help me, or give me some advices?

Thanks and Regards,

Francesco

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,487

Hi Francesco,

I would advise you to first use program RSFTP002. This program uses all the FTP_ function modules. You test them with your FTP server first and if successful check how this program passes its parameters to the FTP_ function modules.

The error you are getting normally comes when there is something wrong with the FTP user like auth issues, incorrect password, case sensitive letters etc.

Thanks,

Anubhav

Hi Francesco,

I would advise you to first use program RSFTP002. This program uses all the FTP_ function modules. You test them with your FTP server first and if successful check how this program passes its parameters to the FTP_ function modules.

The error you are getting normally comes when there is something wrong with the FTP user like auth issues, incorrect password, case sensitive letters etc.

Thanks,

Anubhav

3 REPLIES 3
Read only

Former Member
0 Likes
2,488

Hi Francesco,

I would advise you to first use program RSFTP002. This program uses all the FTP_ function modules. You test them with your FTP server first and if successful check how this program passes its parameters to the FTP_ function modules.

The error you are getting normally comes when there is something wrong with the FTP user like auth issues, incorrect password, case sensitive letters etc.

Thanks,

Anubhav

Read only

0 Likes
2,487

Thanks Anubhav,

now, by watching the code RSFTP002 and adding function HTTP_SCRAMBLE, it works.

Thanks for your advice.

Best Regards,

Francesco

Read only

0 Likes
2,487

This question is Not Answered.

???