on 01-24-2006 5:23 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.