2006 Oct 30 9:55 AM
hi there,
i want to delete files in a directory which
are ending with '.pdf'. is this possible with
ONE 'delete dataset' ? can i put asterix '*'
for the delete dataset statement for muliple
deleting ? if not, what solution you can
recommend ?
regards, Martin
2006 Oct 30 10:24 AM
Hi,
use FM gui_upload to load the files from presentation server to internal table.
Delete itab.
this deletes all the files in the internal table.
regards,
keerthi.
hi there,
i want to delete files in a directory which
are ending with '.pdf'. is this possible with
ONE 'delete dataset' ? can i put asterix '*'
for the delete dataset statement for muliple
deleting ? if not, what solution you can
recommend ?
regards, Martin
2006 Oct 30 9:59 AM
HI,
you can't do like this.
you have to get all files in an internal table and then delete them using the loop.
loop at itab.
delete dataset itab-filename.
endloop.
REgards,
2006 Oct 30 10:04 AM
Hi ,
you cannot delete the Files at one go using '*' and delete dataset statement. You can do programatically by calling the files in application server into internal table using the Function module SUBST_GET_FILE_LIST and then looping through the function module and delete the file one by one as Wasim has illustrated in the previous post.
Hope this helps.
2006 Oct 30 10:24 AM
Hi,
use FM gui_upload to load the files from presentation server to internal table.
Delete itab.
this deletes all the files in the internal table.
regards,
keerthi.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |