cancel
Showing results for 
Search instead for 
Did you mean: 

Can I delete the file which is in the server.

Former Member
0 Kudos

Hi there

last time I did file upload in the server.

but now a day I want to delete that file.

how can i controll that file.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

FM EPS_DELETE_FILE

Use this Remote Enabled Function Module to Delete The file from the Application Server....

It will Delete your file,

For Example

if u want two delete 'TEST file from C:\'

It has got two fields

FILE_NAME = TEST

DIR_NAME = C:\

And it will delete the Test file...

Regards

Mithlesh

Former Member
0 Kudos

I can't use your help.

can you explain more detail?

Former Member
0 Kudos

Lets assume that u want to delete a file named "TEST" which is stored on the Application Server in "C:\MyFolder".

For that You can Call This Function Module Like This

CALL FUNCTION 'EPS_DELETE_FILE' DESTINATION 'NONE'

EXPORTING

FILE_NAME = 'TEST'

DIR_NAME = 'C:\MyFolder'

  • IMPORTING

  • FILE_PATH =

  • EXCEPTIONS

  • INVALID_EPS_SUBDIR = 1

  • SAPGPARAM_FAILED = 2

  • BUILD_DIRECTORY_FAILED = 3

  • NO_AUTHORIZATION = 4

  • BUILD_PATH_FAILED = 5

  • DELETE_FAILED = 6

  • OTHERS = 7

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

And it will delete the 'test' file That is stored in 'MyFolder' of 'C' drive

Hope it solves ur problem otherwise do revert back

Regards

Mithlesh

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Just to throw out another possibility: you can always use the native ABAP dataset commands as well. There is a DELETE DATASET that will do exactly this. Have a look at the online syntax if this command is new to you.

Answers (0)