Hi,
Please check the wage type of medical reimbursement processing class in 512w_d and check the alllowance grouping for those employees.If its medical exemption,check the function INMED.As IN)) is a standard shema ,and u copied it to ur existing custom schema,it works.
Pls send a screen shot of ur schema used.
Regards,
Pradip