on 02-13-2013 11:55 AM
Hy everyone,
I want to delete a file from my PC after I upload it on the application server. This sould be done from the WebUI because i need it into the Netweaver Business Client.
Thank you!
Adi
can you check using class CL_GUI_FRONTEND_SERVICES method FILE_DELETE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
lv_file_name = 'C:\todelete.txt'.
CALL METHOD cl_gui_frontend_services=>file_delete
EXPORTING
filename = lv_file_name
CHANGING
rc = exceptions
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 how i use it for test purpose. The exception returned is not_supported_by_gui...
I think that the problem is that i run the nwbc/saplogon by a citrix server...
Hi,
You can check my article here: http://scn.sap.com/docs/DOC-34524
You need to create a batch file to delete file in local machine and execute the batch file using AcfExecute. But it is static.
Regards,
Kiran
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.