Skip to Content
0
Dec 01, 2008 at 02:19 PM

Getting dump when i used the DELETE itab. without any condition..

344 Views

HI All,

I am having data in itab. and i want to delete the full data from itab by using the delete statement witout any condition.but it is getting dump.

Small piece of code for example.

data: begin of itab occurs 0,

f1,

f2 type i,

end of itab.

itab-f1 = 'C'.

itab-f2 = 90.

append itab.

clear itab.

itab-f1 = 'C'.

itab-f2 = 80.

append itab.

clear itab.

itab-f1 = 'C'.

itab-f2 = 30.

append itab.

clear itab.

write:/ 'F1',11'F2'.

uline.

sort itab." BY f1 ASCENDING f2 DESCENDING.

delete itab.

loop at itab.

write:/ itab-f1,itab-f2.

endloop.

Here i want to delete the full data fromthis Itab.

Please try it give me your input.

*