Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Delete Dataset dn

Former Member
0 Kudos

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.

7 REPLIES 7

former_member387317
Active Contributor
0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

Hi,

Check this link it will surely help you.

https://forums.sdn.sap.com/click.jspa?searchID=5911097&messageID=1177516

Thanks,

Reward If Helpful.

0 Kudos

hai viji

but still i have the pblm.

former_member387317
Active Contributor
0 Kudos

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

former_member195698
Active Contributor
0 Kudos

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

Clemenss
Active Contributor
0 Kudos

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