141: begin
142:
143: g_package := 'hr_pl_applicant_api.';
144: l_proc := g_package||'create_pl_applicant OLD';
145: hr_utility.set_location('Entering:'|| l_proc, 5);
146: /*
147: Replaced existing code with Call to new overloaded procedure
148:
149: --
155: fetch csr_bg
156: into l_legislation_code;
157: if csr_bg%notfound then
158: close csr_bg;
159: hr_utility.set_message(801, 'HR_7208_API_BUS_GRP_INVALID');
160: hr_utility.raise_error;
161: end if;
162: close csr_bg;
163: --
156: into l_legislation_code;
157: if csr_bg%notfound then
158: close csr_bg;
159: hr_utility.set_message(801, 'HR_7208_API_BUS_GRP_INVALID');
160: hr_utility.raise_error;
161: end if;
162: close csr_bg;
163: --
164: -- Check that the legislation of the specified business group is 'PL'.
163: --
164: -- Check that the legislation of the specified business group is 'PL'.
165: --
166: if l_legislation_code <> 'PL' then
167: hr_utility.set_message(801, 'HR_7961_PER_BUS_GRP_INVALID');
168: hr_utility.set_message_token('LEG_CODE','PL');
169: hr_utility.raise_error;
170: end if;
171:
164: -- Check that the legislation of the specified business group is 'PL'.
165: --
166: if l_legislation_code <> 'PL' then
167: hr_utility.set_message(801, 'HR_7961_PER_BUS_GRP_INVALID');
168: hr_utility.set_message_token('LEG_CODE','PL');
169: hr_utility.raise_error;
170: end if;
171:
172:
165: --
166: if l_legislation_code <> 'PL' then
167: hr_utility.set_message(801, 'HR_7961_PER_BUS_GRP_INVALID');
168: hr_utility.set_message_token('LEG_CODE','PL');
169: hr_utility.raise_error;
170: end if;
171:
172:
173: hr_utility.set_location(l_proc, 6);
169: hr_utility.raise_error;
170: end if;
171:
172:
173: hr_utility.set_location(l_proc, 6);
174: hr_applicant_api.create_applicant
175:
176: */
177:
281: ,p_assignment_sequence =>p_assignment_sequence
282: ,p_name_combination_warning =>p_name_combination_warning
283: ,p_orig_hire_warning =>p_orig_hire_warning );
284:
285: hr_utility.set_location('Leaving:'|| l_proc, 15);
286: END create_pl_applicant;
287:
288:
289:
409: begin
410:
411: g_package := 'hr_pl_applicant_api.';
412: l_proc := g_package||'create_pl_applicant';
413: hr_utility.set_location('Entering:'|| l_proc, 5);
414: --
415: -- Validation in addition to Row Handlers
416: --
417: -- Check that the specified business group is valid.
420: fetch csr_bg
421: into l_legislation_code;
422: if csr_bg%notfound then
423: close csr_bg;
424: hr_utility.set_message(801, 'HR_7208_API_BUS_GRP_INVALID');
425: hr_utility.raise_error;
426: end if;
427: close csr_bg;
428: --
421: into l_legislation_code;
422: if csr_bg%notfound then
423: close csr_bg;
424: hr_utility.set_message(801, 'HR_7208_API_BUS_GRP_INVALID');
425: hr_utility.raise_error;
426: end if;
427: close csr_bg;
428: --
429: -- Check that the legislation of the specified business group is 'PL'.
428: --
429: -- Check that the legislation of the specified business group is 'PL'.
430: --
431: if l_legislation_code <> 'PL' then
432: hr_utility.set_message(801, 'HR_7961_PER_BUS_GRP_INVALID');
433: hr_utility.set_message_token('LEG_CODE','PL');
434: hr_utility.raise_error;
435: end if;
436:
429: -- Check that the legislation of the specified business group is 'PL'.
430: --
431: if l_legislation_code <> 'PL' then
432: hr_utility.set_message(801, 'HR_7961_PER_BUS_GRP_INVALID');
433: hr_utility.set_message_token('LEG_CODE','PL');
434: hr_utility.raise_error;
435: end if;
436:
437:
430: --
431: if l_legislation_code <> 'PL' then
432: hr_utility.set_message(801, 'HR_7961_PER_BUS_GRP_INVALID');
433: hr_utility.set_message_token('LEG_CODE','PL');
434: hr_utility.raise_error;
435: end if;
436:
437:
438: hr_utility.set_location(l_proc, 6);
434: hr_utility.raise_error;
435: end if;
436:
437:
438: hr_utility.set_location(l_proc, 6);
439:
440: hr_applicant_api.create_applicant
441: (p_validate => p_validate
442: ,p_date_received => p_date_received