2010 Mar 17 9:44 AM
Hi
I need help with a deletion coding.
I have created my own table where I store all of the employment data, etc.
I want to delete persons not included in my 3 personnel areas.
Here's the code I tried to use but it delete also the persons included in my 3 personnel areas.
Delete from itab where
( werks ne '1500' or
werks ne '1501' or
werks ne '1502' ) and
ready eq 'X' and
send ne 'X'.
Please help // Peter B
2010 Mar 17 9:50 AM
use AND, instead of OR. Just read it, imagine the values: somebody from the first area: 1) not = false 2) not 1502 = true, false or true is true. Otto
Hi
I need help with a deletion coding.
I have created my own table where I store all of the employment data, etc.
I want to delete persons not included in my 3 personnel areas.
Here's the code I tried to use but it delete also the persons included in my 3 personnel areas.
Delete from itab where
( werks ne '1500' or
werks ne '1501' or
werks ne '1502' ) and
ready eq 'X' and
send ne 'X'.
Please help // Peter B
2010 Mar 17 9:50 AM
use AND, instead of OR. Just read it, imagine the values: somebody from the first area: 1) not = false 2) not 1502 = true, false or true is true. Otto
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |