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: 

Reg: Deleting the file stored on the folder

Former Member
0 Kudos

Hi All,

I do have the requirement where I need to download a billing document(scipt) onto the folder in PDF format and then upload the same PDF document to the transaction VF03.

My question is how to delete the downloaded PDF file programatically.

Answers will be rewarded.

Thanks,

Kishore

1 ACCEPTED SOLUTION

Former Member
0 Kudos

use the standard call method:

CALL METHOD cl_gui_frontend_services=>file_delete

Plz reward if useful

3 REPLIES 3

Former Member
0 Kudos

Use the following command:

DELETE DATASET dset. Where dset is the filepath and name.

Regards,

Kiran Bobbala

Former Member
0 Kudos

use the standard call method:

CALL METHOD cl_gui_frontend_services=>file_delete

Plz reward if useful

vinod_vemuru2
Active Contributor
0 Kudos

Hi Krishna,

If ur file exist in front end then Use the FM GUI_DELETE_FILE. make sure that file name is case sensitive.

If it is application server then use DELETE DATASET filepath.

It will perfectly works fine.

Thanks,

Vinod.