Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to delete file from Window server

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!!!!!!!

Tags:
Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question