When you say certain group of employees I hope the EG/ESG group is identified. I guess you will need the help of PCRs to generate the PL based on the conditions mentioned. Unless you post the entire business requirement we cannot suggest.
Regards
Pramod