Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Deletion coding in HCM

Former Member
0 Likes
427

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

1 ACCEPTED SOLUTION
Read only

OttoGold
Active Contributor
0 Likes
401

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

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

1 REPLY 1
Read only

OttoGold
Active Contributor
0 Likes
402

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