The UD fields should be in the Erp.JobHead view already, why are you attaching the JobHead_UD table manually?