as per Brent van Dyck's recommendation, are you using context authorizations? i.e. are you using the P_ORGINCON object with the newly created structural profile in the PROFL field?
if you are only using P_PERNR for the actual employee, no authorization will exist for the retired employee.