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

Delete file from an FTP folder

Former Member
0 Likes
1,711

Hi expert,

I wanna know if it's possible delete with abap command a file from a FTP folder.

I mean, there is a ftp folder periodically filled with excel files. An ABAP program read this folder and the files content must be moved in a SAP Table. Aftre this, I must delete excel files with an abap command write in the same abap program.

Thanks a lot

Michele Garofalo

Hi expert,

I wanna know if it's possible delete with abap command a file from a FTP folder.

I mean, there is a ftp folder periodically filled with excel files. An ABAP program read this folder and the files content must be moved in a SAP Table. Aftre this, I must delete excel files with an abap command write in the same abap program.

Thanks a lot

Michele Garofalo

2 REPLIES 2
Read only

andreas_mann3
Active Contributor
0 Likes
950

1) read directory with fm EPS_GET_DIRECTORY_LISTING

2) process table dir_list

and 3) finally delete files with

abap command: DELETE DATASET dsn.

hope that helps

Andreas

Read only

former_member189059
Active Contributor
0 Likes
950

Hello,

Have a look at sample program RSFTP003 for deleting from ftp syntax