10-13-2007 11:20 AM
Hai All
I am trying to delete the file from the application server using
DELETE DATASET file name.( File name specifies the full path.). Once the control passes through the statement i am getting the sy-subrc value as 4.
Can any one please reply and solve this problm. .
I have used the Fm EPS_DELETE_FILE ,Still i am facing the same pblm..
Points will be rewarded
thankyou.
10-13-2007 11:40 AM
Hi
http://help.sap.com/saphelp_47x200/helpdata/EN/fc/eb3d28358411d1829f0000e829fbfe/frameset.htm
delete dataset '\tmp\file.txt'.
you need to specify full path here in single quotes.
Thanks & Regards
ilesh 24x7
10-13-2007 12:49 PM
Hi
thanks for ur reply.
I have used this statment in different ways like
delete dataset 'I:/system1/process/data.txt'.
delete dataset I:/system1/process/data.txt.
delete dataset data.txt.
but still i ahve the pblm.
10-13-2007 11:40 AM
Hi,
Check this link it will surely help you.
https://forums.sdn.sap.com/click.jspa?searchID=5911097&messageID=1177516
Thanks,
Reward If Helpful.
10-13-2007 12:49 PM
10-13-2007 1:25 PM
i am not sure but try to use <b>\</b> rather then <b>/</b>
<b>delete dataset 'I:\system1\process\data.txt'.</b>
Thanks & Regards
ilesh 24x7
10-13-2007 4:37 PM
Hi,
The path that you have specified doesn't seem to be in the correct format.
You can check the file on the application server through AL11 and also the path will appear on the top. The path will appear like...
/usr/sap/temp......
Thanks & Regards,
Aj
10-13-2007 10:04 PM
Hi Ashnab,
first try to OPEN the dataset - this makes sure you do not have a path names problem.
The you may check with your BASIS people if you have enough rights to delete the server file.
If you omit the quotes enclosing the filename, it must be a fieldname and this field must carry the full path file name.
Regards,
Clemens