Skip to Content
0
Feb 26, 2010 at 03:07 PM

Problem with GET File using FTP_COMMAND

312 Views

Hi,

I have the follow situation:

concatenate 'cd' '/interfaz/DM/data_in/comm' into w_cmd separated by ' '.

call function 'FTP_COMMAND'

EXPORTING

handle = L_HANDLE

command = w_cmd

TABLES

data = result.

w_cmd = 'nlist'.

call function 'FTP_COMMAND'

EXPORTING

handle = L_HANDLE

command = w_cmd

TABLES

data = result.

**.. Create ftp-command

CONCATENATE 'get' '"SM201002230002.txt"'

INTO w_cmd SEPARATED BY ' '.

call function 'FTP_COMMAND'

EXPORTING

handle = L_HANDLE

command = w_cmd

TABLES

data = result.

call function 'FTP_DISCONNECT'

EXPORTING

handle = L_HANDLE.

But I don´t have to take the file.

The result that i have in internal table result is:

nlist

200 PORT command successful.

150 Opening data connection for ..

.sh_history

SM201002230002.txt

SM201002230001.txt

226 Transfer complete.

get "SM201002230002.txt"

200 PORT command successful.

150 Opening data connection for SM201002230002.txt (152 bytes).

226 Transfer complete.

152 bytes received in 0.00 seconds (0.15 Kbytes/s)

Why i Can´t take the File?