ABAP program to connect to FTP server

1
ABAP Structure
This ABAP program will let you connect to a FTP host. This is done by using the function module FTP_CONNECT and you need to pass the user credentials in order to make the connection work correctly.
CALL FUNCTION 'FTP_CONNECT' DESTINATION
RFC_DESTINATION
EXPORTING USER = USER PWD = PASSWORD ACCT =
ACCOUNT HOST = HOST
TRACE = FTP_TRACE GUSER = GATEWAY_USER

GPWD = GATEWAY_PASSWORD GHOST =
GATEWAY_HOST
IMPORTING HANDLE = HANDLE ERROR = CERROR

EXCEPTIONS SYSTEM_FAILURE = 1
COMMUNICATION_FAILURE = 2.

1 thought on “ABAP program to connect to FTP server

  1. We are also getting connection error CERROR = 3
    Is there anyone who has solution for that.
    Thanks
    Raj

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: