120: FROM per_business_groups pbg
121: WHERE pbg.business_group_id = p_business_group_id;
122: --
123: begin
124: hr_utility.set_location('Entering:'|| l_proc, 45);
125: --
126: -- Validation IN addition to Table Handlers
127: --
128: -- Check that the specified business group IS valid.
131: FETCH csr_bg
132: INTO l_legislation_code;
133: IF csr_bg%notfound then
134: close csr_bg;
135: hr_utility.set_message(801, 'HR_7208_API_BUS_GRP_INVALID');
136: hr_utility.raise_error;
137: END IF;
138: close csr_bg;
139: --
132: INTO l_legislation_code;
133: IF csr_bg%notfound then
134: close csr_bg;
135: hr_utility.set_message(801, 'HR_7208_API_BUS_GRP_INVALID');
136: hr_utility.raise_error;
137: END IF;
138: close csr_bg;
139: --
140: -- Check that the legislation of the specified business group IS 'DK'.
139: --
140: -- Check that the legislation of the specified business group IS 'DK'.
141: --
142: IF l_legislation_code <> 'DK' then
143: hr_utility.set_message(801, 'HR_7961_PER_BUS_GRP_INVALID');
144: hr_utility.set_message_token('LEG_CODE','DK');
145: hr_utility.raise_error;
146: END IF;
147:
140: -- Check that the legislation of the specified business group IS 'DK'.
141: --
142: IF l_legislation_code <> 'DK' then
143: hr_utility.set_message(801, 'HR_7961_PER_BUS_GRP_INVALID');
144: hr_utility.set_message_token('LEG_CODE','DK');
145: hr_utility.raise_error;
146: END IF;
147:
148: hr_utility.set_location(l_proc, 50);
141: --
142: IF l_legislation_code <> 'DK' then
143: hr_utility.set_message(801, 'HR_7961_PER_BUS_GRP_INVALID');
144: hr_utility.set_message_token('LEG_CODE','DK');
145: hr_utility.raise_error;
146: END IF;
147:
148: hr_utility.set_location(l_proc, 50);
149: --
144: hr_utility.set_message_token('LEG_CODE','DK');
145: hr_utility.raise_error;
146: END IF;
147:
148: hr_utility.set_location(l_proc, 50);
149: --
150: -- Call the person business process
151: --
152: hr_applicant_api.create_applicant
249: ,p_name_combination_warning => p_name_combination_warning
250: ,p_orig_hire_warning => p_orig_hire_warning
251: );
252: --
253: hr_utility.set_location(' Leaving:'||l_proc, 55);
254: null;
255: end create_dk_applicant ;
256:
257: END HR_DK_APPLICANT_API;