‎2019 Aug 27 6:42 PM
Hello Expert!!!
I have an internal table where having different department ,based on werks (Personnel area).Like i have werks = DBRS and want to use it like wa-werks = 'D%' , but don't get the result.Need your assist.

‎2019 Aug 27 7:01 PM
Hello Rajib Hossain
I think what you are looking for is Contains pattern CP. instead of "=" use "CP" and '*'
" where cond CP 'D*' ".
https://help.sap.com/doc/abapdocu_731_index_htm/7.31/en-US/abenlogexp_strings.htm
Thanks,
Mahesh
‎2019 Aug 27 7:29 PM
Hello Mahesh !! Thanks for your link.
I write my condition like :
if wa_principal-werks = 'D*' and ( wa_principal-btrtl <> '*DS' and wa_principal-btrtl <>'*MS') and wa_principal-btrtl eq '*SP'.
Could you please write it using CP.
‎2019 Aug 27 7:37 PM
Rajib Hossain sorry my bad, I gave some incoorrect link. Now check the help link.
Just replace "=" with "CP". Check the help.
Br,
Mahesh
‎2019 Aug 27 7:44 PM
Hello Mahesh
insted of = use CP but insted of <> what i used.....
‎2019 Aug 27 8:18 PM
‎2019 Aug 28 8:35 AM
NP is the same as NOT CP (choose the one you prefer, sometimes people don't remember all the operators, so using NOT is a good tip)