2009 Jan 22 3:29 PM
have code like this
data : itab type table of c_trket.
data : wa type c_trket.
In itab there are 7 records.
number name
1 abc-1
2 abc-2
3 abc-3
4 abc-4
5 test
6 disp
7 mod
I have to delete records from itab where name ne 'test' or name ne 'disp' or name ne 'mod'.
I am using command
delete itab where name ne 'test' or name ne 'disp' or name ne 'mod'.
giving me an error : c_trket is not an internal table with workarea.
How I can delete these records from itab ?
Study SAP
2009 Jan 22 3:34 PM
have code like this
data : itab type table of c_trket.
data : wa type c_trket.
In itab there are 7 records.
number name
1 abc-1
2 abc-2
3 abc-3
4 abc-4
5 test
6 disp
7 mod
I have to delete records from itab where name ne 'test' or name ne 'disp' or name ne 'mod'.
I am using command
delete itab where name ne 'test' or name ne 'disp' or name ne 'mod'.
giving me an error : c_trket is not an internal table with workarea.
How I can delete these records from itab ?
Study SAP
2009 Jan 22 3:34 PM
2009 Jan 22 3:36 PM
if not using or operator in delete command :
using like :
delete itab where name eq 'disp'.
delete itab where name eq 'mod'.
the error is same,
how i can solve the problem ?
Study SAP
2009 Jan 22 3:38 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |