Application Development 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: 

FTP folder read

Former Member
0 Kudos

HI SAP guys,

I need to read the files name list from the FTP server directory.

Can any one send me the sample code please.

Regards

Renuka

2 REPLIES 2

former_member194669
Active Contributor
0 Kudos

After connecting into FTP server use

For example all files from /pub directory then


   call function 'FTP_COMMAND'
      exporting
        handle        = hdl
        command       = p_cmd  " Use ls /pub
        compress      = p_compress
      tables
        data          = i_result
      exceptions
        command_error = 1
        tcpip_error   = 2.

Please check the testing program RSFTP002

Former Member
0 Kudos

This message was moderated.