124: FROM per_business_groups pbg
125: WHERE pbg.business_group_id = p_business_group_id;
126: --
127: begin
128: hr_utility.set_location('Entering:'|| l_proc, 45);
129: --
130: -- Validation IN addition to Table Handlers
131: --
132: -- Check that the specified business group IS valid.
135: FETCH csr_bg
136: INTO l_legislation_code;
137: IF csr_bg%notfound then
138: close csr_bg;
139: hr_utility.set_message(801, 'HR_7208_API_BUS_GRP_INVALID');
140: hr_utility.raise_error;
141: END IF;
142: close csr_bg;
143: --
136: INTO l_legislation_code;
137: IF csr_bg%notfound then
138: close csr_bg;
139: hr_utility.set_message(801, 'HR_7208_API_BUS_GRP_INVALID');
140: hr_utility.raise_error;
141: END IF;
142: close csr_bg;
143: --
144: -- Check that the legislation of the specified business group IS 'AE'.
143: --
144: -- Check that the legislation of the specified business group IS 'AE'.
145: --
146: IF l_legislation_code <> 'AE' then
147: hr_utility.set_message(801, 'HR_7961_PER_BUS_GRP_INVALID');
148: hr_utility.set_message_token('LEG_CODE','AE');
149: hr_utility.raise_error;
150: END IF;
151:
144: -- Check that the legislation of the specified business group IS 'AE'.
145: --
146: IF l_legislation_code <> 'AE' then
147: hr_utility.set_message(801, 'HR_7961_PER_BUS_GRP_INVALID');
148: hr_utility.set_message_token('LEG_CODE','AE');
149: hr_utility.raise_error;
150: END IF;
151:
152: hr_utility.set_location(l_proc, 50);
145: --
146: IF l_legislation_code <> 'AE' then
147: hr_utility.set_message(801, 'HR_7961_PER_BUS_GRP_INVALID');
148: hr_utility.set_message_token('LEG_CODE','AE');
149: hr_utility.raise_error;
150: END IF;
151:
152: hr_utility.set_location(l_proc, 50);
153: --
148: hr_utility.set_message_token('LEG_CODE','AE');
149: hr_utility.raise_error;
150: END IF;
151:
152: hr_utility.set_location(l_proc, 50);
153: --
154: -- Call the person business process
155: --
156: hr_applicant_api.create_applicant
263: ,p_name_combination_warning => p_name_combination_warning
264: ,p_orig_hire_warning => p_orig_hire_warning
265: );
266: --
267: hr_utility.set_location(' Leaving:'||l_proc, 55);
268: end create_ae_applicant;
269: --
270: end hr_ae_applicant_api;