2009 Nov 23 2:14 PM
Hi All,
My requirement is to read the .csv file from the desktop system having the shared folder and delete the file after read successfully.
Here I can read the .csv file from the location using the function RFC_REMOTE_FILE and updated the content into internal table.
But I cant delete the file from the presentation server ( Desktop system).
Can anyone tell me how to delete the .csv file from the desktop system on different location.
Note:
I followed this link to read file:
2009 Nov 26 12:51 PM
2009 Nov 23 2:36 PM
I haven't tried it, but have a look at method FILE_DELETE of class CL_GUI_FRONTEND_SERVICES.
Rob
2009 Nov 24 4:08 AM
Hi Rob,
Thanks for your quick response.
But my requirement is to delete the file from remote desktop system in background mode.
2009 Nov 24 1:55 PM
As far as I know, the link you provided is the only way to do that.
Rob
2009 Nov 25 4:00 AM
Hi Rob,
Thanks. I solved this problem myself.
The solution to delete the file from remote system is
concatenate 'DEL' i_filename i_dirname into v_bkfile separated by space .
call function 'RFC_REMOTE_EXEC'
destination c_dest
exporting
command = v_bkfile
exceptions
system_failure = 1 MESSAGE v_ermsg
communication_failure = 2 MESSAGE v_ermsg.
2009 Nov 23 5:19 PM
2009 Nov 26 12:51 PM
2009 Nov 26 1:18 PM
Hi All,
I am also having the same requirement.
By using RFC_REMOTE_EXEC i can delete the file from bin directory of 'rfcsdk' folder on remote system.
But I have to delete the file from the folder where i want like E:\TEST\test.csv also.
Here i cant delete from the above location can anyone tell me how to solve this issue.
2009 Nov 27 5:14 AM
Hi db,
I am also faced that problem.
1. Check the connection
2. Check the path you specified
3. Check, is file on location or not
Check all the above possibilities and
In code, provide the correct directory name with file name and extension.
Success!
Hope It will work.