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

FTP folder read

Former Member
0 Likes
447

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
Read only

former_member194669
Active Contributor
0 Likes
411

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

a®

Read only

Former Member
0 Likes
411

This message was moderated.