‎2008 Jan 09 10:51 AM
‎2008 Jan 09 10:53 AM
Hai,
DATA: v_ucomm(1000) TYPE c.
PARAMETERS: p_aname TYPE salfile-longname DEFAULT 'N:\usr\sap\global\test'
v_ucomm = 'DEL'.
CONCATENATE v_ucomm p_aname INTO v_ucomm SEPARATED BY space.
Execute the delete command.
CALL 'SYSTEM' ID 'COMMAND' FIELD v_ucomm.
‎2008 Jan 09 10:53 AM
Hai,
DATA: v_ucomm(1000) TYPE c.
PARAMETERS: p_aname TYPE salfile-longname DEFAULT 'N:\usr\sap\global\test'
v_ucomm = 'DEL'.
CONCATENATE v_ucomm p_aname INTO v_ucomm SEPARATED BY space.
Execute the delete command.
CALL 'SYSTEM' ID 'COMMAND' FIELD v_ucomm.
‎2008 Jan 09 10:53 AM
Hi Rao,
When ever you want to delete a file from Application Server, Use the DELETE DATASET syntax.
Hope this will resolve your Query.
Reward alll the helpful answers.
Regards
Nagaraj T
‎2008 Jan 09 10:54 AM
hi,
Try DELETE DATASET <dataset name> .
or use FM EPS_DELETE_FILE
ie;
You can use DELETE DATASET with target path.
Use statement
delete dataset '\tmp\file.txt'.
\tmp\file.txt is the file path on application server which you want to delete.
Reward points if found helpful ..
thanks and regards
suma sailaja
‎2008 Jan 09 10:56 AM
hi
good
but using DELETE DATASET u can remove file for app server.
If u want to delete the data alone then give the same name without data it will overwrite.
U can check it in AL11.
regards
md zubair sha
U can also use the function module - EPS_DELETE_FILE
thanks
mrutyun^