Skip to Content
0
Apr 30 at 07:18 AM

Get file from FTP to SAP Server

76 Views Last edit Apr 30 at 07:19 AM 4 rev

Hi expert

I want to get file from FTP to SAP Server. I tried using code as below. I suspect that about path in al11 which file from FTP is transferred to. Can I specific path al11 for pasting file from FTP?

CONCATENATE 'get' filename INTO cmd SEPARATED BY space.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = mi_handle
command = cmd
TABLES
data = mtab_data1
EXCEPTIONS
tcpip_error = 1
command_error = 2
data_error = 3
OTHERS = 4.