‎2007 May 15 6:45 PM
Hi Experts,
I know that the following statemnt works with select options,
<i><b>DELETE ITAB WHERE NOT KUNNR = S_KUNNR[ ]</b></i>
But, in my enhancing z_prog. the earlier programmer is defined it (s_kunnr) as RANGES! (now i can not change from range to select options, bcoz of some other constraints)
So,
1 - Can I use the similar statement for the Ranges also! to get deleted all the records from itab, which does not match, like,
<i><b>DELETE ITAB WHERE NOT KUNNR = R_KUNNR [ ]</b></i>
ThanQ.
‎2007 May 15 6:46 PM
Hi,
You have to use IN instead of =
DELETE ITAB WHERE NOT KUNNR <b>IN</b> R_KUNNR [ ]
Thanks,
Naren
‎2007 May 15 6:46 PM
Hi,
You have to use IN instead of =
DELETE ITAB WHERE NOT KUNNR <b>IN</b> R_KUNNR [ ]
Thanks,
Naren
‎2007 May 15 6:48 PM
Hi
Ranges also used similar to Select-options with IN operator in where condition
use
DELETE ITAB WHERE NOT KUNNR IN R_KUNNR .
it will work fine.
Reward points if useful
Regards
Anji
‎2007 May 15 6:58 PM
‎2007 May 15 7:00 PM
No need to use [] in Ranges and Select option.
just use
delete itab where cond in s_kunnr.
Reward Points if it is useful
Thanks
Seshu
‎2007 May 15 7:03 PM
Sridhar,
It is not necessary to use []. you can do this using IN.