2010 Oct 25 3:01 AM
Hi,
I have a question about how to get the file name from FTP.
Use Function 'FTP_COMMAND'
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
HANDLE = handle
command = 'ls'
tables
data = data_list
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4
.
the return data_list data like this:
-rw-rw-rw 1 user group 1245 oct 8 08:18 1101_433.txt.
The question is that how can i get the file name? At the example is '1101_433.txt.'.
Which Function can process it ?
Hi,
I have a question about how to get the file name from FTP.
Use Function 'FTP_COMMAND'
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
HANDLE = handle
command = 'ls'
tables
data = data_list
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4
.
the return data_list data like this:
-rw-rw-rw 1 user group 1245 oct 8 08:18 1101_433.txt.
The question is that how can i get the file name? At the example is '1101_433.txt.'.
Which Function can process it ?
2010 Oct 25 7:13 AM
Hi Zheng,
FYI link which will guide you through FTP process
http://wiki.sdn.sap.com/wiki/display/Snippets/ABAPsolutiontoimplementFTP+transactions
Cheers
S.Janagar
2010 Oct 28 7:48 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |