Skip to Content
0
Jul 22, 2009 at 04:44 AM

FTP

40 Views

Hello All,

I have a requirement to connect to File servers and read a .csv file. The connection is successfull.

But when i try to read the csv file from the host, it returns the exception command_error.

fname = \ D01\IN\PT\SAMPLE.CSV

CALL FUNCTION 'FTP_SERVER_TO_R3'

EXPORTING

handle = mi_handle

fname = fname

CHARACTER_MODE = 'X'

  • IMPORTING

  • BLOB_LENGTH =

TABLES

  • BLOB =

TEXT = chardata

EXCEPTIONS

TCPIP_ERROR = 1

COMMAND_ERROR = 2

DATA_ERROR = 3

OTHERS = 4

Kindly let me know if i am missing some step here?

Thanks in Advance,

Thirumal