Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

get FTP file name

Former Member
0 Likes
509

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 ?

2 REPLIES 2
Read only

Former Member
0 Likes
468

Hi Zheng,

FYI link which will guide you through FTP process

http://wiki.sdn.sap.com/wiki/display/Snippets/ABAPsolutiontoimplementFTP+transactions

Cheers

S.Janagar

Read only

0 Likes
468

Hi,Janagar

Thank you very much!