311: --
312: -- The primary key is invalid therefore we must error
313: --
314: close csr_leg_code;
315: fnd_message.set_name('PAY','HR_7220_INVALID_PRIMARY_KEY');
316: fnd_message.raise_error;
317: end if;
318: hr_utility.set_location(l_proc,30);
319: --
312: -- The primary key is invalid therefore we must error
313: --
314: close csr_leg_code;
315: fnd_message.set_name('PAY','HR_7220_INVALID_PRIMARY_KEY');
316: fnd_message.raise_error;
317: end if;
318: hr_utility.set_location(l_proc,30);
319: --
320: -- Set the global variables so the values are