Delete a .csv file from desktop system

10-11  Source: Network gathering  Views:2 

Advertisement
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:
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2&overridelayout=true
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.
Related articles