Skip to Content
0
Oct 30, 2009 at 09:18 AM

Delete rows dynmically from internal table

18 Views

Hi Gurus,

I have got an problem. I have an internal table itab.

Case 1. It has got some 10 rows. I want to delete rows between those two rows containing same field value of a Field 'X'. Here same value of that field could come on 1st and 7th row. Then mean, I need to delete 2nd to 6th row.

It could come in 4th and 10th row. Then I need to delete 5th to 9th row.

Case 2. It has got some 20 rows. Now same I want to delete rows between those two rows containing same field value of a Field 'X'. Here again, same value of that field could come on 1st and 17th row. Mean I will delete 2nd to 16th row. It could come in 7th and 19th row. Then I need to delete 8th to 18th row.