Skip to Content
0
Former Member
Feb 20, 2009 at 08:17 PM

Delete from Internal table

22 Views

Hi I have an internal table Itab and it has the following :

Field1 Field2

-


A1 B1

A2 B2

A3 B3

A4 B2

Now I want to retain only the records which have B2 or B3 in the internal table and delete all other records.

I am trying to do this:

Delete Itab where Field2 <> 'B2' or Field2 <> 'B3'.

This statement is not working and it deletes all the contents of the internal table.

Can someone tell me how I can acheieve the delete .

Thanks in advance.