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: 

How to delete file from Window server

Former Member
0 Kudos

Hi

Can anybody tell me that Is there any function module for deleting file from presentation server like C directory.

Quick suggestion will highly be appreciated!!!!!!!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try this:

CALL METHOD cl_gui_frontend_services=>file_delete

EXPORTING

filename =

changing

rc =

  • EXCEPTIONS

  • FILE_DELETE_FAILED = 1

  • CNTL_ERROR = 2

  • ERROR_NO_GUI = 3

  • FILE_NOT_FOUND = 4

  • ACCESS_DENIED = 5

  • UNKNOWN_ERROR = 6

  • NOT_SUPPORTED_BY_GUI = 7

  • WRONG_PARAMETER = 8

  • others = 9

.

this is pretty gud approach .

Message was edited by:

Nishant Rustagi

3 REPLIES 3

Former Member
0 Kudos

Try this:

CALL METHOD cl_gui_frontend_services=>file_delete

EXPORTING

filename =

changing

rc =

  • EXCEPTIONS

  • FILE_DELETE_FAILED = 1

  • CNTL_ERROR = 2

  • ERROR_NO_GUI = 3

  • FILE_NOT_FOUND = 4

  • ACCESS_DENIED = 5

  • UNKNOWN_ERROR = 6

  • NOT_SUPPORTED_BY_GUI = 7

  • WRONG_PARAMETER = 8

  • others = 9

.

this is pretty gud approach .

Message was edited by:

Nishant Rustagi

Former Member
0 Kudos

Hi ,

This link will b usefull for u .

try this..

http://sapabaplive.blogspot.com/2007/10/list-of-function-modules.html

0 Kudos

I suggest you try Long path tool is the very good program for easily delete, copy & rename long path files, error, unlock solution. Try it and solve your problem.