Hi Somendra,
Logic is working fine. I have one more condition to add in below logic.
wa_join-pstyv ---I have to add 2 conditons
1. Some records for item category 'ztab' has no EK02 value then it will go 'VPRS to select konv-kbetr.
2. some records for item category 'ztax' has no VPRS value then it will go 'Z004' to select konv-kbetr.
Can I add this logic in my below query ? if yes please guide me how ?
If we can write some <if condition > after <when>......?