‎2006 Jan 10 6:35 AM
HI ALL,
I AM USING THIS METHD FOR DELETING THE FILE FROM THE
FOLDER BUT I DONT KNOW WHAT VALUE SHULD I PASS TO THE RC.
CALL METHOD cl_gui_frontend_services=>file_delete
EXPORTING
filename = 'E:\FOLDER1\TEST1.XLS'
changing
rc =
THANKS AND REGARDS,
SUGEET.
‎2006 Jan 10 6:39 AM
Hi,
You should declare a local variable of TYPE I and pass it to RC. RC is nothing but a return code set by system upon successful deletion or otherwise of the file that you have specified for filename.
Some thing like the following,
DATA: lv_subrc TYPE i.
CALL METHOD cl_gui_frontend_services=>file_delete
EXPORTING
filename = 'E:FOLDER1TEST1.XLS'
changing
rc = lv_subrc.
IF lv_subrc NE 0.
****Deletion failed..
ENDIF.Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni
‎2006 Jan 10 6:39 AM
Hi,
You should declare a local variable of TYPE I and pass it to RC. RC is nothing but a return code set by system upon successful deletion or otherwise of the file that you have specified for filename.
Some thing like the following,
DATA: lv_subrc TYPE i.
CALL METHOD cl_gui_frontend_services=>file_delete
EXPORTING
filename = 'E:FOLDER1TEST1.XLS'
changing
rc = lv_subrc.
IF lv_subrc NE 0.
****Deletion failed..
ENDIF.Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni
‎2006 Jan 10 6:39 AM
Hi sugeet,
data : rc type i.
CALL METHOD cl_gui_frontend_services=>file_delete
EXPORTING
filename = 'E:\FOLDER1\TEST1.XLS'
changing
rc = rc.
regards,
amit m.
‎2006 Jan 10 6:46 AM
‎2006 Aug 17 6:00 PM