1 Package hr_person_api as
2 /* $Header: peperapi.pkh 120.1.12010000.1 2008/07/28 05:12:53 appldev ship $ */
3 /*#
4 * This API updates person information.
5 * @rep:scope public
6 * @rep:product per
7 * @rep:displayname Person
8 */
9 --
10 -- ----------------------------------------------------------------------------
11 -- |------------------------------< update_person >---------------------------|
12 -- ----------------------------------------------------------------------------
13 --
14 -- {Start Of Comments}
15 /*#
16 * This API updates person information.
17 *
18 *
19 * <p><b>Licensing</b><br>
20 * This API is licensed for use with Human Resources.
21 *
22 * <p><b>Prerequisites</b><br>
23 * The person must exist in the relevant business group on the effective date.
24 *
25 * <p><b>Post Success</b><br>
26 * The person record is updated successfully.
27 *
28 * <p><b>Post Failure</b><br>
29 * The API does not update the person and raises an error.
30 * @param p_validate If true, then validation alone will be performed and the
31 * database will remain unchanged. If false and all validation checks pass,
32 * then the database will be modified.
33 * @param p_effective_date Determines when the DateTrack operation comes into
34 * force.
35 * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
36 * updating the record. You must set to either UPDATE, CORRECTION,
37 * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
38 * particular record depend on the dates of previous record changes and the
39 * effective date of this change.
40 * @param p_person_id Person whose record needs to be modified.
41 * @param p_object_version_number Pass in the current version number of the
42 * person to be updated. When the API completes if p_validate is false, will be
43 * set to the new version number of the updated person. If p_validate is true
44 * will be set to the same value which was passed in.
45 * @param p_person_type_id Type of person being updated.
46 * @param p_last_name Last name.
47 * @param p_applicant_number The business group's applicant number generation
48 * method determines when the API derives and passes out an applicant number or
49 * when the calling program should pass in a value. When the API call completes
50 * if p_validate is true then will be set to the applicant number. If
51 * p_validate is true then will be set to the passed value.
52 * @param p_comments Comment text.
53 * @param p_date_employee_data_verified The date on which the person data was
54 * last verified.
55 * @param p_date_of_birth Date of birth.
56 * @param p_email_address Email address.
57 * @param p_employee_number The business group's employee number generation
58 * method determines when the API derives and passes out an employee number or
59 * when the calling program should pass in a value. When the API call completes
60 * if p_validate is false then will be set to the employee number. If
61 * p_validate is true then will be set to the passed value.
62 * @param p_expense_check_send_to_addres Mailing address.
63 * @param p_first_name First name.
64 * @param p_known_as Preferred name.
65 * @param p_marital_status Marital status. Valid values are defined by the
66 * MAR_STATUS lookup type.
67 * @param p_middle_names Middle names.
68 * @param p_nationality Nationality. Valid values are defined by the
69 * NATIONALITY lookup type.
70 * @param p_national_identifier Number by which a person is identified in a
71 * given legislation.
72 * @param p_previous_last_name Previous last name.
73 * @param p_registered_disabled_flag Flag indicating whether the person is
74 * classified as disabled.
75 * @param p_sex Legal gender. Valid values are defined by the SEX lookup type.
76 * @param p_title Title. Valid values are defined by the TITLE lookup type.
77 * @param p_vendor_id Obsolete parameter, do not use.
78 * @param p_work_telephone Obsolete parameter, do not use.
79 * @param p_attribute_category This context value determines which flexfield
80 * structure to use with the descriptive flexfield segments.
81 * @param p_attribute1 Descriptive flexfield segment.
82 * @param p_attribute2 Descriptive flexfield segment.
83 * @param p_attribute3 Descriptive flexfield segment.
84 * @param p_attribute4 Descriptive flexfield segment.
85 * @param p_attribute5 Descriptive flexfield segment.
86 * @param p_attribute6 Descriptive flexfield segment.
87 * @param p_attribute7 Descriptive flexfield segment.
88 * @param p_attribute8 Descriptive flexfield segment.
89 * @param p_attribute9 Descriptive flexfield segment.
90 * @param p_attribute10 Descriptive flexfield segment.
91 * @param p_attribute11 Descriptive flexfield segment.
92 * @param p_attribute12 Descriptive flexfield segment.
93 * @param p_attribute13 Descriptive flexfield segment.
94 * @param p_attribute14 Descriptive flexfield segment.
95 * @param p_attribute15 Descriptive flexfield segment.
96 * @param p_attribute16 Descriptive flexfield segment.
97 * @param p_attribute17 Descriptive flexfield segment.
98 * @param p_attribute18 Descriptive flexfield segment.
99 * @param p_attribute19 Descriptive flexfield segment.
100 * @param p_attribute20 Descriptive flexfield segment.
101 * @param p_attribute21 Descriptive flexfield segment.
102 * @param p_attribute22 Descriptive flexfield segment.
103 * @param p_attribute23 Descriptive flexfield segment.
104 * @param p_attribute24 Descriptive flexfield segment.
105 * @param p_attribute25 Descriptive flexfield segment.
106 * @param p_attribute26 Descriptive flexfield segment.
107 * @param p_attribute27 Descriptive flexfield segment.
108 * @param p_attribute28 Descriptive flexfield segment.
109 * @param p_attribute29 Descriptive flexfield segment.
110 * @param p_attribute30 Descriptive flexfield segment.
111 * @param p_per_information_category Obsolete parameter, do not use.
112 * @param p_per_information1 Developer descriptive flexfield segment.
113 * @param p_per_information2 Developer descriptive flexfield segment.
114 * @param p_per_information3 Developer descriptive flexfield segment.
115 * @param p_per_information4 Developer descriptive flexfield segment.
116 * @param p_per_information5 Developer descriptive flexfield segment.
117 * @param p_per_information6 Developer descriptive flexfield segment.
118 * @param p_per_information7 Developer descriptive flexfield segment.
119 * @param p_per_information8 Developer descriptive flexfield segment.
120 * @param p_per_information9 Developer descriptive flexfield segment.
121 * @param p_per_information10 Developer descriptive flexfield segment.
122 * @param p_per_information11 Developer descriptive flexfield segment.
123 * @param p_per_information12 Developer descriptive flexfield segment.
124 * @param p_per_information13 Developer descriptive flexfield segment.
125 * @param p_per_information14 Developer descriptive flexfield segment.
126 * @param p_per_information15 Developer descriptive flexfield segment.
127 * @param p_per_information16 Developer descriptive flexfield segment.
128 * @param p_per_information17 Developer descriptive flexfield segment.
129 * @param p_per_information18 Developer descriptive flexfield segment.
130 * @param p_per_information19 Developer descriptive flexfield segment.
131 * @param p_per_information20 Developer descriptive flexfield segment.
132 * @param p_per_information21 Developer descriptive flexfield segment.
133 * @param p_per_information22 Developer descriptive flexfield segment.
134 * @param p_per_information23 Developer descriptive flexfield segment.
135 * @param p_per_information24 Developer descriptive flexfield segment.
136 * @param p_per_information25 Developer descriptive flexfield segment.
137 * @param p_per_information26 Developer descriptive flexfield segment.
138 * @param p_per_information27 Developer descriptive flexfield segment.
139 * @param p_per_information28 Developer descriptive flexfield segment.
140 * @param p_per_information29 Developer descriptive flexfield segment.
141 * @param p_per_information30 Developer descriptive flexfield segment.
142 * @param p_date_of_death Date of death.
143 * @param p_background_check_status Flag indicating whether the person's
144 * background has been checked.
145 * @param p_background_date_check Date on which the background check was
146 * performed.
147 * @param p_blood_type Blood type.
148 * @param p_correspondence_language Preferred language for correspondence.
149 * @param p_fast_path_employee Obsolete parameter, do not use.
150 * @param p_fte_capacity Obsolete parameter, do not use.
151 * @param p_hold_applicant_date_until Date until when the applicant's
152 * information is to be maintained.
153 * @param p_honors Honors awarded.
154 * @param p_internal_location Internal location of office.
155 * @param p_last_medical_test_by Name of physician who performed the last
156 * medical test.
157 * @param p_last_medical_test_date Date of last medical test.
158 * @param p_mailstop Internal mail location.
159 * @param p_office_number Office number.
160 * @param p_on_military_service Flag indicating whether the person is on
161 * military service.
162 * @param p_pre_name_adjunct First part of the last name.
163 * @param p_projected_start_date Obsolete parameter, do not use.
164 * @param p_rehire_authorizor Obsolete parameter, do not use.
165 * @param p_rehire_recommendation Flag indicating whether this person should be
166 * considered for rehire. Valid values are defined in YES_NO lookup type.
167 * @param p_resume_exists Flag indicating whether the person's resume is on
168 * file.
169 * @param p_resume_last_updated Date on which the resume was last updated.
170 * @param p_second_passport_exists Flag indicating whether a person has
171 * multiple passports.
172 * @param p_student_status If this person is a student, this field is used to
173 * capture their status. Valid values are defined by the STUDENT_STATUS lookup
174 * type.
175 * @param p_work_schedule Days on which this person will work.
176 * @param p_rehire_reason Rehire reason.
177 * @param p_suffix Suffix after the person's last name e.g. Sr., Jr., III.
178 * @param p_benefit_group_id Benefit group to which this person will belong.
179 * @param p_receipt_of_death_cert_date Date death certificate was received.
180 * @param p_coord_ben_med_pln_no Secondary medical plan name. Column used for
181 * external processing.
182 * @param p_coord_ben_no_cvg_flag No secondary medical plan coverage. Column
183 * used for external processing.
184 * @param p_coord_ben_med_ext_er Secondary external medical coverage. Column
185 * used for external processing.
186 * @param p_coord_ben_med_pl_name Secondary medical coverage name. Column used
187 * for external processing.
188 * @param p_coord_ben_med_insr_crr_name Secondary medical coverage insurance
189 * carrier name. Column used for external processing.
190 * @param p_coord_ben_med_insr_crr_ident Secondary medical coverage insurance
191 * carrier identifier. Column used for external processing.
192 * @param p_coord_ben_med_cvg_strt_dt Secondary medical coverage effective
193 * start date. Column used for external processing.
194 * @param p_coord_ben_med_cvg_end_dt Secondary medical coverage effective end
195 * date. Column used for external processing.
196 * @param p_uses_tobacco_flag Flag indicating whether the person uses tobacco.
197 * @param p_dpdnt_adoption_date Date on which the dependent was adopted.
198 * @param p_dpdnt_vlntry_svce_flag Flag indicating whether the dependent is on
199 * voluntary service.
200 * @param p_original_date_of_hire Original date of hire.
201 * @param p_adjusted_svc_date Adjusted service date.
202 * @param p_town_of_birth Town or city of birth.
203 * @param p_region_of_birth Geographical region of birth.
204 * @param p_country_of_birth Country of birth.
205 * @param p_global_person_id Obsolete parameter, do not use.
206 * @param p_party_id TCA party for whom you are modifying the person record.
207 * @param p_npw_number The business group's contingent worker number generation
208 * method determines when the API derives and passes out a contingent worker
209 * number or when the calling program should pass in a value. When the API call
210 * completes if p_validate is true then will be set to the contingent worker
211 * number. If p_validate is true then will be set to the passed value.
212 * @param p_effective_start_date If p_validate is false, then set to the
213 * effective start date on the updated person row which now exists as of the
214 * effective date. If p_validate is true, then set to null.
215 * @param p_effective_end_date If p_validate is false, then set to the
216 * effective end date on the updated person row which now exists as of the
217 * effective date. If p_validate is true, then set to null.
218 * @param p_full_name If p_validate is false, then set to the complete full
219 * name of the person. If p_validate is true, then set to null.
220 * @param p_comment_id If p_validate is false and comment text was provided,
221 * then will be set to the identifier of the created person comment record. If
222 * p_validate is true or no comment text was provided, then will be null.
223 * @param p_name_combination_warning If set to true, then the combination of
224 * last name, first name and date of birth existed prior to calling this API.
225 * @param p_assign_payroll_warning If set to true, then the date of birth is
226 * not entered. If set to false, then the date of birth has been entered.
227 * Indicates if it will be possible to set the payroll on any of this person's
228 * assignments.
229 * @param p_orig_hire_warning If set to true, an orginal date of hire exists
230 * for a person who has never been an employee.
231 * @rep:displayname Update Person
232 * @rep:category BUSINESS_ENTITY HR_PERSON
233 * @rep:category MISC_EXTENSIONS HR_DATAPUMP
234 * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
235 * @rep:scope public
236 * @rep:lifecycle active
237 * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
238 */
239 --
240 -- {End Of Comments}
241 --
242 procedure update_person
243 (p_validate in boolean default false
244 ,p_effective_date in date
245 ,p_datetrack_update_mode in varchar2
246 ,p_person_id in number
247 ,p_object_version_number in out nocopy number
248 ,p_person_type_id in number default hr_api.g_number
249 ,p_last_name in varchar2 default hr_api.g_varchar2
250 ,p_applicant_number in varchar2 default hr_api.g_varchar2
251 ,p_comments in varchar2 default hr_api.g_varchar2
252 ,p_date_employee_data_verified in date default hr_api.g_date
253 ,p_date_of_birth in date default hr_api.g_date
254 ,p_email_address in varchar2 default hr_api.g_varchar2
255 ,p_employee_number in out nocopy varchar2
256 ,p_expense_check_send_to_addres in varchar2 default hr_api.g_varchar2
257 ,p_first_name in varchar2 default hr_api.g_varchar2
258 ,p_known_as in varchar2 default hr_api.g_varchar2
259 ,p_marital_status in varchar2 default hr_api.g_varchar2
260 ,p_middle_names in varchar2 default hr_api.g_varchar2
261 ,p_nationality in varchar2 default hr_api.g_varchar2
262 ,p_national_identifier in varchar2 default hr_api.g_varchar2
263 ,p_previous_last_name in varchar2 default hr_api.g_varchar2
264 ,p_registered_disabled_flag in varchar2 default hr_api.g_varchar2
265 ,p_sex in varchar2 default hr_api.g_varchar2
266 ,p_title in varchar2 default hr_api.g_varchar2
267 ,p_vendor_id in number default hr_api.g_number
268 ,p_work_telephone in varchar2 default hr_api.g_varchar2
269 ,p_attribute_category in varchar2 default hr_api.g_varchar2
270 ,p_attribute1 in varchar2 default hr_api.g_varchar2
271 ,p_attribute2 in varchar2 default hr_api.g_varchar2
272 ,p_attribute3 in varchar2 default hr_api.g_varchar2
273 ,p_attribute4 in varchar2 default hr_api.g_varchar2
274 ,p_attribute5 in varchar2 default hr_api.g_varchar2
275 ,p_attribute6 in varchar2 default hr_api.g_varchar2
276 ,p_attribute7 in varchar2 default hr_api.g_varchar2
277 ,p_attribute8 in varchar2 default hr_api.g_varchar2
278 ,p_attribute9 in varchar2 default hr_api.g_varchar2
279 ,p_attribute10 in varchar2 default hr_api.g_varchar2
280 ,p_attribute11 in varchar2 default hr_api.g_varchar2
281 ,p_attribute12 in varchar2 default hr_api.g_varchar2
282 ,p_attribute13 in varchar2 default hr_api.g_varchar2
283 ,p_attribute14 in varchar2 default hr_api.g_varchar2
284 ,p_attribute15 in varchar2 default hr_api.g_varchar2
285 ,p_attribute16 in varchar2 default hr_api.g_varchar2
286 ,p_attribute17 in varchar2 default hr_api.g_varchar2
287 ,p_attribute18 in varchar2 default hr_api.g_varchar2
288 ,p_attribute19 in varchar2 default hr_api.g_varchar2
289 ,p_attribute20 in varchar2 default hr_api.g_varchar2
290 ,p_attribute21 in varchar2 default hr_api.g_varchar2
291 ,p_attribute22 in varchar2 default hr_api.g_varchar2
292 ,p_attribute23 in varchar2 default hr_api.g_varchar2
293 ,p_attribute24 in varchar2 default hr_api.g_varchar2
294 ,p_attribute25 in varchar2 default hr_api.g_varchar2
295 ,p_attribute26 in varchar2 default hr_api.g_varchar2
296 ,p_attribute27 in varchar2 default hr_api.g_varchar2
297 ,p_attribute28 in varchar2 default hr_api.g_varchar2
298 ,p_attribute29 in varchar2 default hr_api.g_varchar2
299 ,p_attribute30 in varchar2 default hr_api.g_varchar2
300 ,p_per_information_category in varchar2 default hr_api.g_varchar2
301 -- p_per_information_category - Obsolete parameter, do not use
302 ,p_per_information1 in varchar2 default hr_api.g_varchar2
303 ,p_per_information2 in varchar2 default hr_api.g_varchar2
304 ,p_per_information3 in varchar2 default hr_api.g_varchar2
305 ,p_per_information4 in varchar2 default hr_api.g_varchar2
306 ,p_per_information5 in varchar2 default hr_api.g_varchar2
307 ,p_per_information6 in varchar2 default hr_api.g_varchar2
308 ,p_per_information7 in varchar2 default hr_api.g_varchar2
309 ,p_per_information8 in varchar2 default hr_api.g_varchar2
310 ,p_per_information9 in varchar2 default hr_api.g_varchar2
311 ,p_per_information10 in varchar2 default hr_api.g_varchar2
312 ,p_per_information11 in varchar2 default hr_api.g_varchar2
313 ,p_per_information12 in varchar2 default hr_api.g_varchar2
314 ,p_per_information13 in varchar2 default hr_api.g_varchar2
315 ,p_per_information14 in varchar2 default hr_api.g_varchar2
316 ,p_per_information15 in varchar2 default hr_api.g_varchar2
317 ,p_per_information16 in varchar2 default hr_api.g_varchar2
318 ,p_per_information17 in varchar2 default hr_api.g_varchar2
319 ,p_per_information18 in varchar2 default hr_api.g_varchar2
320 ,p_per_information19 in varchar2 default hr_api.g_varchar2
321 ,p_per_information20 in varchar2 default hr_api.g_varchar2
322 ,p_per_information21 in varchar2 default hr_api.g_varchar2
323 ,p_per_information22 in varchar2 default hr_api.g_varchar2
324 ,p_per_information23 in varchar2 default hr_api.g_varchar2
325 ,p_per_information24 in varchar2 default hr_api.g_varchar2
326 ,p_per_information25 in varchar2 default hr_api.g_varchar2
327 ,p_per_information26 in varchar2 default hr_api.g_varchar2
328 ,p_per_information27 in varchar2 default hr_api.g_varchar2
329 ,p_per_information28 in varchar2 default hr_api.g_varchar2
330 ,p_per_information29 in varchar2 default hr_api.g_varchar2
331 ,p_per_information30 in varchar2 default hr_api.g_varchar2
332 ,p_date_of_death in date default hr_api.g_date
333 ,p_background_check_status in varchar2 default hr_api.g_varchar2
334 ,p_background_date_check in date default hr_api.g_date
335 ,p_blood_type in varchar2 default hr_api.g_varchar2
336 ,p_correspondence_language in varchar2 default hr_api.g_varchar2
337 ,p_fast_path_employee in varchar2 default hr_api.g_varchar2
338 ,p_fte_capacity in number default hr_api.g_number
339 ,p_hold_applicant_date_until in date default hr_api.g_date
340 ,p_honors in varchar2 default hr_api.g_varchar2
341 ,p_internal_location in varchar2 default hr_api.g_varchar2
342 ,p_last_medical_test_by in varchar2 default hr_api.g_varchar2
343 ,p_last_medical_test_date in date default hr_api.g_date
344 ,p_mailstop in varchar2 default hr_api.g_varchar2
345 ,p_office_number in varchar2 default hr_api.g_varchar2
346 ,p_on_military_service in varchar2 default hr_api.g_varchar2
347 ,p_pre_name_adjunct in varchar2 default hr_api.g_varchar2
348 ,p_projected_start_date in date default hr_api.g_date
349 ,p_rehire_authorizor in varchar2 default hr_api.g_varchar2
350 ,p_rehire_recommendation in varchar2 default hr_api.g_varchar2
351 ,p_resume_exists in varchar2 default hr_api.g_varchar2
352 ,p_resume_last_updated in date default hr_api.g_date
353 ,p_second_passport_exists in varchar2 default hr_api.g_varchar2
354 ,p_student_status in varchar2 default hr_api.g_varchar2
355 ,p_work_schedule in varchar2 default hr_api.g_varchar2
356 ,p_rehire_reason in varchar2 default hr_api.g_varchar2
357 ,p_suffix in varchar2 default hr_api.g_varchar2
358 ,p_benefit_group_id in number default hr_api.g_number
359 ,p_receipt_of_death_cert_date in date default hr_api.g_date
360 ,p_coord_ben_med_pln_no in varchar2 default hr_api.g_varchar2
361 ,p_coord_ben_no_cvg_flag in varchar2 default hr_api.g_varchar2
362 ,p_coord_ben_med_ext_er in varchar2 default hr_api.g_varchar2
363 ,p_coord_ben_med_pl_name in varchar2 default hr_api.g_varchar2
364 ,p_coord_ben_med_insr_crr_name in varchar2 default hr_api.g_varchar2
365 ,p_coord_ben_med_insr_crr_ident in varchar2 default hr_api.g_varchar2
366 ,p_coord_ben_med_cvg_strt_dt in date default hr_api.g_date
367 ,p_coord_ben_med_cvg_end_dt in date default hr_api.g_date
368 ,p_uses_tobacco_flag in varchar2 default hr_api.g_varchar2
369 ,p_dpdnt_adoption_date in date default hr_api.g_date
370 ,p_dpdnt_vlntry_svce_flag in varchar2 default hr_api.g_varchar2
371 ,p_original_date_of_hire in date default hr_api.g_date
372 ,p_adjusted_svc_date in date default hr_api.g_date
373 ,p_town_of_birth in varchar2 default hr_api.g_varchar2
374 ,p_region_of_birth in varchar2 default hr_api.g_varchar2
375 ,p_country_of_birth in varchar2 default hr_api.g_varchar2
376 ,p_global_person_id in varchar2 default hr_api.g_varchar2
377 ,p_party_id in number default hr_api.g_number
378 ,p_npw_number in varchar2 default hr_api.g_varchar2
379 ,p_effective_start_date out nocopy date
380 ,p_effective_end_date out nocopy date
381 ,p_full_name out nocopy varchar2
382 ,p_comment_id out nocopy number
383 ,p_name_combination_warning out nocopy boolean
384 ,p_assign_payroll_warning out nocopy boolean
385 ,p_orig_hire_warning out nocopy boolean
386 );
387 --
388 -- ----------------------------------------------------------------------------
389 -- |-----------------------------< update_gb_person >-------------------------|
390 -- ----------------------------------------------------------------------------
391 --
392 -- {Start Of Comments}
393 /*#
394 * This API updates person information in a United Kingdom business group.
395 *
396 *
397 * <p><b>Licensing</b><br>
398 * This API is licensed for use with Human Resources.
399 *
400 * <p><b>Prerequisites</b><br>
401 * The person must exist in the relevant business group on the effective date.
402 *
403 * <p><b>Post Success</b><br>
404 * The person record is updated successfully.
405 *
406 * <p><b>Post Failure</b><br>
407 * The API does not update the person and raises an error.
408 * @param p_validate If true, then validation alone will be performed and the
409 * database will remain unchanged. If false and all validation checks pass,
410 * then the database will be modified.
411 * @param p_effective_date Determines when the DateTrack operation comes into
412 * force.
413 * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
414 * updating the record. You must set to either UPDATE, CORRECTION,
415 * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
416 * particular record depend on the dates of previous record changes and the
417 * effective date of this change.
418 * @param p_person_id Person whose record needs to be modified.
419 * @param p_object_version_number Pass in the current version number of the
420 * person to be updated. When the API completes if p_validate is false, will be
421 * set to the new version number of the updated person. If p_validate is true
422 * will be set to the same value which was passed in.
423 * @param p_person_type_id Type of person being updated.
424 * @param p_last_name Last name.
425 * @param p_applicant_number The business group's applicant number generation
426 * method determines when the API derives and passes out an applicant number or
427 * when the calling program should pass in a value. When the API call completes
428 * if p_validate is true then will be set to the applicant number. If
429 * p_validate is true then will be set to the passed value.
430 * @param p_comments Comment text.
431 * @param p_date_employee_data_verified Date on which the person data was last
432 * verified.
433 * @param p_date_of_birth Date of birth.
434 * @param p_email_address Email address.
435 * @param p_employee_number The business group's employee number generation
436 * method determines when the API derives and passes out an employee number or
437 * when the calling program should pass in a value. When the API call completes
438 * if p_validate is false then will be set to the employee number. If
439 * p_validate is true then will be set to the passed value.
440 * @param p_expense_check_send_to_addres Mailing address.
441 * @param p_first_name First name.
442 * @param p_known_as Preferred name.
443 * @param p_marital_status Marital status. Valid values are defined by the
444 * MAR_STATUS lookup type.
445 * @param p_middle_names Middle names.
446 * @param p_nationality Nationality. Valid values are defined by the
447 * NATIONALITY lookup type.
448 * @param p_ni_number Number by which a person is identified in a given
449 * legislation.
450 * @param p_previous_last_name Previous last name.
451 * @param p_registered_disabled_flag Flag indicating whether the person is
452 * classified as disabled.
453 * @param p_sex Legal gender. Valid values are defined by the SEX lookup type.
454 * @param p_title Title. Valid values are defined by the TITLE lookup type.
455 * @param p_vendor_id Obsolete parameter, do not use.
456 * @param p_work_telephone Obsolete parameter, do not use.
457 * @param p_attribute_category This context value determines which flexfield
458 * structure to use with the descriptive flexfield segments.
459 * @param p_attribute1 Descriptive flexfield segment.
460 * @param p_attribute2 Descriptive flexfield segment.
461 * @param p_attribute3 Descriptive flexfield segment.
462 * @param p_attribute4 Descriptive flexfield segment.
463 * @param p_attribute5 Descriptive flexfield segment.
464 * @param p_attribute6 Descriptive flexfield segment.
465 * @param p_attribute7 Descriptive flexfield segment.
466 * @param p_attribute8 Descriptive flexfield segment.
467 * @param p_attribute9 Descriptive flexfield segment.
468 * @param p_attribute10 Descriptive flexfield segment.
469 * @param p_attribute11 Descriptive flexfield segment.
470 * @param p_attribute12 Descriptive flexfield segment.
471 * @param p_attribute13 Descriptive flexfield segment.
472 * @param p_attribute14 Descriptive flexfield segment.
473 * @param p_attribute15 Descriptive flexfield segment.
474 * @param p_attribute16 Descriptive flexfield segment.
475 * @param p_attribute17 Descriptive flexfield segment.
476 * @param p_attribute18 Descriptive flexfield segment.
477 * @param p_attribute19 Descriptive flexfield segment.
478 * @param p_attribute20 Descriptive flexfield segment.
479 * @param p_attribute21 Descriptive flexfield segment.
480 * @param p_attribute22 Descriptive flexfield segment.
481 * @param p_attribute23 Descriptive flexfield segment.
482 * @param p_attribute24 Descriptive flexfield segment.
483 * @param p_attribute25 Descriptive flexfield segment.
484 * @param p_attribute26 Descriptive flexfield segment.
485 * @param p_attribute27 Descriptive flexfield segment.
486 * @param p_attribute28 Descriptive flexfield segment.
487 * @param p_attribute29 Descriptive flexfield segment.
488 * @param p_attribute30 Descriptive flexfield segment.
489 * @param p_ethnic_origin Ethnic origin. Valid values are defined by the
490 * ETH_TYPE lookup type.
491 * @param p_director Flag indicating whether the person is a company director.
492 * @param p_pensioner Flag indicating whether the person is a pensioner.
493 * @param p_work_permit_number Work permit number.
494 * @param p_addl_pension_years Additional pension years.
495 * @param p_addl_pension_months Additional pension months.
496 * @param p_addl_pension_days Additional pension days.
497 * @param p_ni_multiple_asg Identifies whether National Insurance should be
498 * calculated according to the Multiple Assignments rules. Valid values are
499 * defined by the YES_NO lookup type.
500 * @param p_paye_aggregate_assignment Indicates whether the assignments need to
501 * be aggregated for PAYE purposes. Valid values are defined by the YES_NO
502 * lookup type.
503 * @param p_date_of_death Date of death.
504 * @param p_background_check_status Flag indicating whether the person's
505 * background has been checked.
506 * @param p_background_date_check Date on which the background check was
507 * performed.
508 * @param p_blood_type Blood type.
509 * @param p_correspondence_language Preferred language for correspondence.
510 * @param p_fast_path_employee Obsolete parameter, do not use.
511 * @param p_fte_capacity Obsolete parameter, do not use.
512 * @param p_hold_applicant_date_until Date until when the applicant's
513 * information is to be maintained.
514 * @param p_honors Honors awarded.
515 * @param p_internal_location Internal location of office.
516 * @param p_last_medical_test_by Name of physician who performed the last
517 * medical test.
518 * @param p_last_medical_test_date Date of last medical test.
519 * @param p_mailstop Internal mail location.
520 * @param p_office_number Office number.
521 * @param p_on_military_service Flag indicating whether the person is on
522 * military service.
523 * @param p_pre_name_adjunct First part of the last name.
524 * @param p_projected_start_date Obsolete parameter, do not use.
525 * @param p_rehire_authorizor Obsolete parameter, do not use.
526 * @param p_rehire_recommendation Flag indicating whether this person should be
527 * considered for rehire. Valid values are defined in YES_NO lookup type.
528 * @param p_resume_exists Flag indicating whether the person's resume is on
529 * file.
530 * @param p_resume_last_updated Date on which the resume was last updated.
531 * @param p_second_passport_exists Flag indicating whether a person has
532 * multiple passports.
533 * @param p_student_status If this person is a student, this field is used to
534 * capture their status. Valid values are defined by the STUDENT_STATUS lookup
535 * type.
536 * @param p_work_schedule Days on which this person will work.
537 * @param p_rehire_reason Rehire reason.
538 * @param p_suffix Suffix after the person's last name e.g. Sr., Jr., III.
539 * @param p_benefit_group_id Benefit group to which this person will belong.
540 * @param p_receipt_of_death_cert_date Date death certificate was received.
541 * @param p_coord_ben_med_pln_no Secondary medical plan name. Column used for
542 * external processing.
543 * @param p_coord_ben_no_cvg_flag No secondary medical plan coverage. Column
544 * used for external processing.
545 * @param p_coord_ben_med_ext_er Secondary external medical coverage. Column
546 * used for external processing.
547 * @param p_coord_ben_med_pl_name Secondary medical coverage name. Column used
548 * for external processing.
549 * @param p_coord_ben_med_insr_crr_name Secondary medical coverage insurance
550 * carrier name. Column used for external processing.
551 * @param p_coord_ben_med_insr_crr_ident Secondary medical coverage insurance
552 * carrier identifier. Column used for external processing.
553 * @param p_coord_ben_med_cvg_strt_dt Secondary medical coverage effective
554 * start date. Column used for external processing.
555 * @param p_coord_ben_med_cvg_end_dt Secondary medical coverage effective end
556 * date. Column used for external processing.
557 * @param p_uses_tobacco_flag Flag indicating whether the person uses tobacco.
558 * @param p_dpdnt_adoption_date Date on which the dependent was adopted.
559 * @param p_dpdnt_vlntry_svce_flag Flag indicating whether the dependent is on
560 * voluntary service.
561 * @param p_original_date_of_hire Original date of hire.
562 * @param p_adjusted_svc_date Adjusted service date.
563 * @param p_town_of_birth Town or city of birth.
564 * @param p_region_of_birth Geographical region of birth.
565 * @param p_country_of_birth Country of birth.
566 * @param p_global_person_id Obsolete parameter, do not use.
567 * @param p_party_id TCA party for whom you are modifying the person record.
568 * @param p_npw_number The business group's contingent worker number generation
569 * method determines when the API derives and passes out a contingent worker
570 * number or when the calling program should pass in a value. When the API call
571 * completes if p_validate is true then will be set to the contingent worker
572 * number. If p_validate is true then will be set to the passed value.
573 * @param p_effective_start_date If p_validate is false, then set to the
574 * effective start date on the updated person row which now exists as of the
575 * effective date. If p_validate is true, then set to null.
576 * @param p_effective_end_date If p_validate is false, then set to the
577 * effective end date on the updated person row which now exists as of the
578 * effective date. If p_validate is true, then set to null.
579 * @param p_full_name If p_validate is false, then set to the complete full
580 * name of the person. If p_validate is true, then set to null.
581 * @param p_comment_id If p_validate is false and comment text was provided,
582 * then will be set to the identifier of the created person comment record. If
583 * p_validate is true or no comment text was provided, then will be null.
584 * @param p_name_combination_warning If set to true, then the combination of
585 * last name, first name and date of birth existed prior to calling this API.
586 * @param p_assign_payroll_warning If set to true, then the date of birth is
587 * not entered. If set to false, then the date of birth has been entered.
588 * Indicates if it will be possible to set the payroll on any of this person's
589 * assignments.
590 * @param p_orig_hire_warning If set to true, an orginal date of hire exists
591 * for a person who has never been an employee.
592 * @rep:displayname Update Person for United Kingdom
593 * @rep:category BUSINESS_ENTITY HR_PERSON
594 * @rep:category MISC_EXTENSIONS HR_DATAPUMP
595 * @rep:scope public
596 * @rep:lifecycle active
597 * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
598 */
599 --
600 -- {End Of Comments}
601 --
602 procedure update_gb_person
603 (p_validate in boolean default false
604 ,p_effective_date in date
605 ,p_datetrack_update_mode in varchar2
606 ,p_person_id in number
607 ,p_object_version_number in out nocopy number
608 ,p_person_type_id in number default hr_api.g_number
609 ,p_last_name in varchar2 default hr_api.g_varchar2
610 ,p_applicant_number in varchar2 default hr_api.g_varchar2
611 ,p_comments in varchar2 default hr_api.g_varchar2
612 ,p_date_employee_data_verified in date default hr_api.g_date
613 ,p_date_of_birth in date default hr_api.g_date
614 ,p_email_address in varchar2 default hr_api.g_varchar2
615 ,p_employee_number in out nocopy varchar2
616 ,p_expense_check_send_to_addres in varchar2 default hr_api.g_varchar2
617 ,p_first_name in varchar2 default hr_api.g_varchar2
618 ,p_known_as in varchar2 default hr_api.g_varchar2
619 ,p_marital_status in varchar2 default hr_api.g_varchar2
620 ,p_middle_names in varchar2 default hr_api.g_varchar2
621 ,p_nationality in varchar2 default hr_api.g_varchar2
622 ,p_ni_number in varchar2 default hr_api.g_varchar2
623 ,p_previous_last_name in varchar2 default hr_api.g_varchar2
624 ,p_registered_disabled_flag in varchar2 default hr_api.g_varchar2
625 ,p_sex in varchar2 default hr_api.g_varchar2
626 ,p_title in varchar2 default hr_api.g_varchar2
627 ,p_vendor_id in number default hr_api.g_number
628 ,p_work_telephone in varchar2 default hr_api.g_varchar2
629 ,p_attribute_category in varchar2 default hr_api.g_varchar2
630 ,p_attribute1 in varchar2 default hr_api.g_varchar2
631 ,p_attribute2 in varchar2 default hr_api.g_varchar2
632 ,p_attribute3 in varchar2 default hr_api.g_varchar2
633 ,p_attribute4 in varchar2 default hr_api.g_varchar2
634 ,p_attribute5 in varchar2 default hr_api.g_varchar2
635 ,p_attribute6 in varchar2 default hr_api.g_varchar2
636 ,p_attribute7 in varchar2 default hr_api.g_varchar2
637 ,p_attribute8 in varchar2 default hr_api.g_varchar2
638 ,p_attribute9 in varchar2 default hr_api.g_varchar2
639 ,p_attribute10 in varchar2 default hr_api.g_varchar2
640 ,p_attribute11 in varchar2 default hr_api.g_varchar2
641 ,p_attribute12 in varchar2 default hr_api.g_varchar2
642 ,p_attribute13 in varchar2 default hr_api.g_varchar2
643 ,p_attribute14 in varchar2 default hr_api.g_varchar2
644 ,p_attribute15 in varchar2 default hr_api.g_varchar2
645 ,p_attribute16 in varchar2 default hr_api.g_varchar2
646 ,p_attribute17 in varchar2 default hr_api.g_varchar2
647 ,p_attribute18 in varchar2 default hr_api.g_varchar2
648 ,p_attribute19 in varchar2 default hr_api.g_varchar2
649 ,p_attribute20 in varchar2 default hr_api.g_varchar2
650 ,p_attribute21 in varchar2 default hr_api.g_varchar2
651 ,p_attribute22 in varchar2 default hr_api.g_varchar2
652 ,p_attribute23 in varchar2 default hr_api.g_varchar2
653 ,p_attribute24 in varchar2 default hr_api.g_varchar2
654 ,p_attribute25 in varchar2 default hr_api.g_varchar2
655 ,p_attribute26 in varchar2 default hr_api.g_varchar2
656 ,p_attribute27 in varchar2 default hr_api.g_varchar2
657 ,p_attribute28 in varchar2 default hr_api.g_varchar2
658 ,p_attribute29 in varchar2 default hr_api.g_varchar2
659 ,p_attribute30 in varchar2 default hr_api.g_varchar2
660 ,p_ethnic_origin in varchar2 default hr_api.g_varchar2
661 ,p_director in varchar2 default hr_api.g_varchar2
662 ,p_pensioner in varchar2 default hr_api.g_varchar2
663 ,p_work_permit_number in varchar2 default hr_api.g_varchar2
664 ,p_addl_pension_years in varchar2 default hr_api.g_varchar2
665 ,p_addl_pension_months in varchar2 default hr_api.g_varchar2
666 ,p_addl_pension_days in varchar2 default hr_api.g_varchar2
667 ,p_ni_multiple_asg in varchar2 default hr_api.g_varchar2
668 ,p_paye_aggregate_assignment in varchar2 default hr_api.g_varchar2
669 ,p_date_of_death in date default hr_api.g_date
670 ,p_background_check_status in varchar2 default hr_api.g_varchar2
671 ,p_background_date_check in date default hr_api.g_date
672 ,p_blood_type in varchar2 default hr_api.g_varchar2
673 ,p_correspondence_language in varchar2 default hr_api.g_varchar2
674 ,p_fast_path_employee in varchar2 default hr_api.g_varchar2
675 ,p_fte_capacity in number default hr_api.g_number
676 ,p_hold_applicant_date_until in date default hr_api.g_date
677 ,p_honors in varchar2 default hr_api.g_varchar2
678 ,p_internal_location in varchar2 default hr_api.g_varchar2
679 ,p_last_medical_test_by in varchar2 default hr_api.g_varchar2
680 ,p_last_medical_test_date in date default hr_api.g_date
681 ,p_mailstop in varchar2 default hr_api.g_varchar2
682 ,p_office_number in varchar2 default hr_api.g_varchar2
683 ,p_on_military_service in varchar2 default hr_api.g_varchar2
684 ,p_pre_name_adjunct in varchar2 default hr_api.g_varchar2
685 ,p_projected_start_date in date default hr_api.g_date
686 ,p_rehire_authorizor in varchar2 default hr_api.g_varchar2
687 ,p_rehire_recommendation in varchar2 default hr_api.g_varchar2
688 ,p_resume_exists in varchar2 default hr_api.g_varchar2
689 ,p_resume_last_updated in date default hr_api.g_date
690 ,p_second_passport_exists in varchar2 default hr_api.g_varchar2
691 ,p_student_status in varchar2 default hr_api.g_varchar2
692 ,p_work_schedule in varchar2 default hr_api.g_varchar2
693 ,p_rehire_reason in varchar2 default hr_api.g_varchar2
694 ,p_suffix in varchar2 default hr_api.g_varchar2
695 ,p_benefit_group_id in number default hr_api.g_number
696 ,p_receipt_of_death_cert_date in date default hr_api.g_date
697 ,p_coord_ben_med_pln_no in varchar2 default hr_api.g_varchar2
698 ,p_coord_ben_no_cvg_flag in varchar2 default hr_api.g_varchar2
699 ,p_coord_ben_med_ext_er in varchar2 default hr_api.g_varchar2
700 ,p_coord_ben_med_pl_name in varchar2 default hr_api.g_varchar2
701 ,p_coord_ben_med_insr_crr_name in varchar2 default hr_api.g_varchar2
702 ,p_coord_ben_med_insr_crr_ident in varchar2 default hr_api.g_varchar2
703 ,p_coord_ben_med_cvg_strt_dt in date default hr_api.g_date
704 ,p_coord_ben_med_cvg_end_dt in date default hr_api.g_date
705 ,p_uses_tobacco_flag in varchar2 default hr_api.g_varchar2
706 ,p_dpdnt_adoption_date in date default hr_api.g_date
707 ,p_dpdnt_vlntry_svce_flag in varchar2 default hr_api.g_varchar2
708 ,p_original_date_of_hire in date default hr_api.g_date
709 ,p_adjusted_svc_date in date default hr_api.g_date
710 ,p_town_of_birth in varchar2 default hr_api.g_varchar2
711 ,p_region_of_birth in varchar2 default hr_api.g_varchar2
712 ,p_country_of_birth in varchar2 default hr_api.g_varchar2
713 ,p_global_person_id in varchar2 default hr_api.g_varchar2
714 ,p_party_id in number default hr_api.g_number
715 ,p_npw_number in varchar2 default hr_api.g_varchar2
716 ,p_effective_start_date out nocopy date
717 ,p_effective_end_date out nocopy date
718 ,p_full_name out nocopy varchar2
719 ,p_comment_id out nocopy number
720 ,p_name_combination_warning out nocopy boolean
721 ,p_assign_payroll_warning out nocopy boolean
722 ,p_orig_hire_warning out nocopy boolean
723 );
724 --
725 -- ----------------------------------------------------------------------------
726 -- |-----------------------------< update_us_person >-------------------------|
727 -- ----------------------------------------------------------------------------
728 --
729 -- {Start Of Comments}
730 /*#
731 * This API updates person information in a United States business group.
732 *
733 *
734 * <p><b>Licensing</b><br>
735 * This API is licensed for use with Human Resources.
736 *
737 * <p><b>Prerequisites</b><br>
738 * The person must exist in the relevant business group on the effective date.
739 *
740 * <p><b>Post Success</b><br>
741 * The person record is updated successfully.
742 *
743 * <p><b>Post Failure</b><br>
744 * The API does not update the person and raises an error.
745 * @param p_validate If true, then validation alone will be performed and the
746 * database will remain unchanged. If false and all validation checks pass,
747 * then the database will be modified.
748 * @param p_effective_date Determines when the DateTrack operation comes into
749 * force.
750 * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
751 * updating the record. You must set to either UPDATE, CORRECTION,
752 * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
753 * particular record depend on the dates of previous record changes and the
754 * effective date of this change.
755 * @param p_person_id Person whose record needs to be modified.
756 * @param p_object_version_number Pass in the current version number of the
757 * person to be updated. When the API completes if p_validate is false, will be
758 * set to the new version number of the updated person. If p_validate is true
759 * will be set to the same value which was passed in.
760 * @param p_person_type_id Type of person being updated.
761 * @param p_last_name Last name.
762 * @param p_applicant_number The business group's applicant number generation
763 * method determines when the API derives and passes out an applicant number or
764 * when the calling program should pass in a value. When the API call completes
765 * if p_validate is true then will be set to the applicant number. If
766 * p_validate is true then will be set to the passed value.
767 * @param p_comments Comment text.
768 * @param p_date_employee_data_verified Date on which the person data was last
769 * verified.
770 * @param p_date_of_birth Date of birth.
771 * @param p_email_address Email address.
772 * @param p_employee_number The business group's employee number generation
773 * method determines when the API derives and passes out an employee number or
774 * when the calling program should pass in a value. When the API call completes
775 * if p_validate is false then will be set to the employee number. If
776 * p_validate is true then will be set to the passed value.
777 * @param p_expense_check_send_to_addres Mailing address.
778 * @param p_first_name First name.
779 * @param p_known_as Preferred name.
780 * @param p_marital_status Marital status. Valid values are defined by the
781 * MAR_STATUS lookup type.
782 * @param p_middle_names Middle names.
783 * @param p_nationality Nationality. Valid values are defined by the
784 * NATIONALITY lookup type.
785 * @param p_ss_number Number by which a person is identified in a given
786 * legislation.
787 * @param p_previous_last_name Previous last name.
788 * @param p_registered_disabled_flag Flag indicating whether the person is
789 * classified as disabled.
790 * @param p_sex Legal gender. Valid values are defined by the SEX lookup type.
791 * @param p_title Title. Valid values are defined by the TITLE lookup type.
792 * @param p_vendor_id Obsolete parameter, do not use.
793 * @param p_work_telephone Obsolete parameter, do not use.
794 * @param p_attribute_category This context value determines which flexfield
795 * structure to use with the descriptive flexfield segments.
796 * @param p_attribute1 Descriptive flexfield segment.
797 * @param p_attribute2 Descriptive flexfield segment.
798 * @param p_attribute3 Descriptive flexfield segment.
799 * @param p_attribute4 Descriptive flexfield segment.
800 * @param p_attribute5 Descriptive flexfield segment.
801 * @param p_attribute6 Descriptive flexfield segment.
802 * @param p_attribute7 Descriptive flexfield segment.
803 * @param p_attribute8 Descriptive flexfield segment.
804 * @param p_attribute9 Descriptive flexfield segment.
805 * @param p_attribute10 Descriptive flexfield segment.
806 * @param p_attribute11 Descriptive flexfield segment.
807 * @param p_attribute12 Descriptive flexfield segment.
808 * @param p_attribute13 Descriptive flexfield segment.
809 * @param p_attribute14 Descriptive flexfield segment.
810 * @param p_attribute15 Descriptive flexfield segment.
811 * @param p_attribute16 Descriptive flexfield segment.
812 * @param p_attribute17 Descriptive flexfield segment.
813 * @param p_attribute18 Descriptive flexfield segment.
814 * @param p_attribute19 Descriptive flexfield segment.
815 * @param p_attribute20 Descriptive flexfield segment.
816 * @param p_attribute21 Descriptive flexfield segment.
817 * @param p_attribute22 Descriptive flexfield segment.
818 * @param p_attribute23 Descriptive flexfield segment.
819 * @param p_attribute24 Descriptive flexfield segment.
820 * @param p_attribute25 Descriptive flexfield segment.
821 * @param p_attribute26 Descriptive flexfield segment.
822 * @param p_attribute27 Descriptive flexfield segment.
823 * @param p_attribute28 Descriptive flexfield segment.
824 * @param p_attribute29 Descriptive flexfield segment.
825 * @param p_attribute30 Descriptive flexfield segment.
826 * @param p_ethnic_origin Ethnic origin. Valid values are defined by the
827 * US_ETHNIC_GROUP lookup type.
828 * @param p_i_9 Status of I9 Visa. Valid values are defined by the
829 * PER_US_I9_STATE lookup type.
830 * @param p_i_9_expiration_date I9 expiration date.
831 * @param p_veteran_status Indicates whether this person is a war veteran.
832 * Valid values are defined by the US_VETERAN_STATUS lookup type.
833 * @param p_new_hire Status of the new hire. Valid values are defined by the
834 * US_NEW_HIRE_STATUS lookup type.
835 * @param p_exception_reason New hire exception reason. Valid values are
836 * defined by the US_NEW_HIRE_EXCEPTIONS lookup type.
837 * @param p_child_support_obligation Flag indicating whether the person has a
838 * child support obligation.
839 * @param p_opted_for_medicare_flag Flag indicating whether the person has
840 * opted for additional medicare.
841 * @param p_date_of_death Date of death.
842 * @param p_background_check_status Flag indicating whether the person's
843 * background has been checked.
844 * @param p_background_date_check Date on which the background check was
845 * performed.
846 * @param p_blood_type Blood type.
847 * @param p_correspondence_language Preferred language for correspondence.
848 * @param p_fast_path_employee Obsolete parameter, do not use.
849 * @param p_fte_capacity Obsolete parameter, do not use.
850 * @param p_hold_applicant_date_until Date until when the applicant's
851 * information is to be maintained.
852 * @param p_honors Honors awarded.
853 * @param p_internal_location Internal location of office.
854 * @param p_last_medical_test_by Name of physician who performed the last
855 * medical test.
856 * @param p_last_medical_test_date Date of last medical test.
857 * @param p_mailstop Internal mail location.
858 * @param p_office_number Office number.
859 * @param p_on_military_service Flag indicating whether the person is on
860 * military service.
861 * @param p_pre_name_adjunct First part of the last name.
862 * @param p_projected_start_date Obsolete parameter, do not use.
863 * @param p_rehire_authorizor Obsolete parameter, do not use.
864 * @param p_rehire_recommendation Flag indicating whether this person should be
865 * considered for rehire. Valid values are defined in YES_NO lookup type.
866 * @param p_resume_exists Flag indicating whether the person's resume is on
867 * file.
868 * @param p_resume_last_updated Date on which the resume was last updated.
869 * @param p_second_passport_exists Flag indicating whether a person has
870 * multiple passports.
871 * @param p_student_status If this person is a student, this field is used to
872 * capture their status. Valid values are defined by the STUDENT_STATUS lookup
873 * type.
874 * @param p_work_schedule Days on which this person will work.
875 * @param p_rehire_reason Rehire reason.
876 * @param p_suffix Suffix after the person's last name e.g. Sr., Jr., III.
877 * @param p_benefit_group_id Benefit group to which this person will belong.
878 * @param p_receipt_of_death_cert_date Date death certificate was received.
879 * @param p_coord_ben_med_pln_no Secondary medical plan name. Column used for
880 * external processing.
881 * @param p_coord_ben_no_cvg_flag No secondary medical plan coverage. Column
882 * used for external processing.
883 * @param p_coord_ben_med_ext_er Secondary external medical coverage. Column
884 * used for external processing.
885 * @param p_coord_ben_med_pl_name Secondary medical coverage name. Column used
886 * for external processing.
887 * @param p_coord_ben_med_insr_crr_name Secondary medical coverage insurance
888 * carrier name. Column used for external processing.
889 * @param p_coord_ben_med_insr_crr_ident Secondary medical coverage insurance
890 * carrier identifier. Column used for external processing.
891 * @param p_coord_ben_med_cvg_strt_dt Secondary medical coverage effective
892 * start date. Column used for external processing.
893 * @param p_coord_ben_med_cvg_end_dt Secondary medical coverage effective end
894 * date. Column used for external processing.
895 * @param p_uses_tobacco_flag Flag indicating whether the person uses tobacco.
896 * @param p_dpdnt_adoption_date Date on which the dependent was adopted.
897 * @param p_dpdnt_vlntry_svce_flag Flag indicating whether the dependent is on
898 * voluntary service.
899 * @param p_original_date_of_hire Original date of hire.
900 * @param p_adjusted_svc_date Adjusted service date.
901 * @param p_town_of_birth Town or city of birth.
902 * @param p_region_of_birth Geographical region of birth.
903 * @param p_country_of_birth Country of birth.
904 * @param p_global_person_id Obsolete parameter, do not use.
905 * @param p_party_id TCA party for whom you are modifying the person record.
906 * @param p_npw_number The business group's contingent worker number generation
907 * method determines when the API derives and passes out a contingent worker
908 * number or when the calling program should pass in a value. When the API call
909 * completes if p_validate is true then will be set to the contingent worker
910 * number. If p_validate is true then will be set to the passed value.
911 * @param p_effective_start_date If p_validate is false, then set to the
912 * effective start date on the updated person row which now exists as of the
913 * effective date. If p_validate is true, then set to null.
914 * @param p_effective_end_date If p_validate is false, then set to the
915 * effective end date on the updated person row which now exists as of the
916 * effective date. If p_validate is true, then set to null.
917 * @param p_full_name If p_validate is false, then set to the complete full
918 * name of the person. If p_validate is true, then set to null.
919 * @param p_comment_id If p_validate is false and comment text was provided,
920 * then will be set to the identifier of the created person comment record. If
921 * p_validate is true or no comment text was provided, then will be null.
922 * @param p_name_combination_warning If set to true, then the combination of
923 * last name, first name and date of birth existed prior to calling this API.
924 * @param p_assign_payroll_warning If set to true, then the date of birth is
925 * not entered. If set to false, then the date of birth has been entered.
926 * Indicates if it will be possible to set the payroll on any of this person's
927 * assignments.
928 * @param p_orig_hire_warning If set to true, an orginal date of hire exists
929 * for a person who has never been an employee.
930 * @rep:displayname Update Person for United States
931 * @rep:category BUSINESS_ENTITY HR_PERSON
932 * @rep:category MISC_EXTENSIONS HR_DATAPUMP
933 * @rep:scope public
934 * @rep:lifecycle active
935 * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
936 */
937 --
938 -- {End Of Comments}
939 --
940 procedure update_us_person
941 (p_validate in boolean default false
942 ,p_effective_date in date
943 ,p_datetrack_update_mode in varchar2
944 ,p_person_id in number
945 ,p_object_version_number in out nocopy number
946 ,p_person_type_id in number default hr_api.g_number
947 ,p_last_name in varchar2 default hr_api.g_varchar2
948 ,p_applicant_number in varchar2 default hr_api.g_varchar2
949 ,p_comments in varchar2 default hr_api.g_varchar2
950 ,p_date_employee_data_verified in date default hr_api.g_date
951 ,p_date_of_birth in date default hr_api.g_date
952 ,p_email_address in varchar2 default hr_api.g_varchar2
953 ,p_employee_number in out nocopy varchar2
954 ,p_expense_check_send_to_addres in varchar2 default hr_api.g_varchar2
955 ,p_first_name in varchar2 default hr_api.g_varchar2
956 ,p_known_as in varchar2 default hr_api.g_varchar2
957 ,p_marital_status in varchar2 default hr_api.g_varchar2
958 ,p_middle_names in varchar2 default hr_api.g_varchar2
959 ,p_nationality in varchar2 default hr_api.g_varchar2
960 ,p_ss_number in varchar2 default hr_api.g_varchar2
961 ,p_previous_last_name in varchar2 default hr_api.g_varchar2
962 ,p_registered_disabled_flag in varchar2 default hr_api.g_varchar2
963 ,p_sex in varchar2 default hr_api.g_varchar2
964 ,p_title in varchar2 default hr_api.g_varchar2
965 ,p_vendor_id in number default hr_api.g_number
966 ,p_work_telephone in varchar2 default hr_api.g_varchar2
967 ,p_attribute_category in varchar2 default hr_api.g_varchar2
968 ,p_attribute1 in varchar2 default hr_api.g_varchar2
969 ,p_attribute2 in varchar2 default hr_api.g_varchar2
970 ,p_attribute3 in varchar2 default hr_api.g_varchar2
971 ,p_attribute4 in varchar2 default hr_api.g_varchar2
972 ,p_attribute5 in varchar2 default hr_api.g_varchar2
973 ,p_attribute6 in varchar2 default hr_api.g_varchar2
974 ,p_attribute7 in varchar2 default hr_api.g_varchar2
975 ,p_attribute8 in varchar2 default hr_api.g_varchar2
976 ,p_attribute9 in varchar2 default hr_api.g_varchar2
977 ,p_attribute10 in varchar2 default hr_api.g_varchar2
978 ,p_attribute11 in varchar2 default hr_api.g_varchar2
979 ,p_attribute12 in varchar2 default hr_api.g_varchar2
980 ,p_attribute13 in varchar2 default hr_api.g_varchar2
981 ,p_attribute14 in varchar2 default hr_api.g_varchar2
982 ,p_attribute15 in varchar2 default hr_api.g_varchar2
983 ,p_attribute16 in varchar2 default hr_api.g_varchar2
984 ,p_attribute17 in varchar2 default hr_api.g_varchar2
985 ,p_attribute18 in varchar2 default hr_api.g_varchar2
986 ,p_attribute19 in varchar2 default hr_api.g_varchar2
987 ,p_attribute20 in varchar2 default hr_api.g_varchar2
988 ,p_attribute21 in varchar2 default hr_api.g_varchar2
989 ,p_attribute22 in varchar2 default hr_api.g_varchar2
990 ,p_attribute23 in varchar2 default hr_api.g_varchar2
991 ,p_attribute24 in varchar2 default hr_api.g_varchar2
992 ,p_attribute25 in varchar2 default hr_api.g_varchar2
993 ,p_attribute26 in varchar2 default hr_api.g_varchar2
994 ,p_attribute27 in varchar2 default hr_api.g_varchar2
995 ,p_attribute28 in varchar2 default hr_api.g_varchar2
996 ,p_attribute29 in varchar2 default hr_api.g_varchar2
997 ,p_attribute30 in varchar2 default hr_api.g_varchar2
998 ,p_ethnic_origin in varchar2 default hr_api.g_varchar2
999 ,p_I_9 in varchar2 default hr_api.g_varchar2
1000 ,p_I_9_expiration_date in varchar2 default hr_api.g_varchar2
1001 -- ,p_visa_type in varchar2 default hr_api.g_varchar2
1002 ,p_veteran_status in varchar2 default hr_api.g_varchar2
1003 ,p_new_hire in varchar2 default hr_api.g_varchar2
1004 ,p_exception_reason in varchar2 default hr_api.g_varchar2
1005 ,p_child_support_obligation in varchar2 default hr_api.g_varchar2
1006 ,p_opted_for_medicare_flag in varchar2 default hr_api.g_varchar2
1007 ,p_date_of_death in date default hr_api.g_date
1008 ,p_background_check_status in varchar2 default hr_api.g_varchar2
1009 ,p_background_date_check in date default hr_api.g_date
1010 ,p_blood_type in varchar2 default hr_api.g_varchar2
1011 ,p_correspondence_language in varchar2 default hr_api.g_varchar2
1012 ,p_fast_path_employee in varchar2 default hr_api.g_varchar2
1013 ,p_fte_capacity in number default hr_api.g_number
1014 ,p_hold_applicant_date_until in date default hr_api.g_date
1015 ,p_honors in varchar2 default hr_api.g_varchar2
1016 ,p_internal_location in varchar2 default hr_api.g_varchar2
1017 ,p_last_medical_test_by in varchar2 default hr_api.g_varchar2
1018 ,p_last_medical_test_date in date default hr_api.g_date
1019 ,p_mailstop in varchar2 default hr_api.g_varchar2
1020 ,p_office_number in varchar2 default hr_api.g_varchar2
1021 ,p_on_military_service in varchar2 default hr_api.g_varchar2
1022 ,p_pre_name_adjunct in varchar2 default hr_api.g_varchar2
1023 ,p_projected_start_date in date default hr_api.g_date
1024 ,p_rehire_authorizor in varchar2 default hr_api.g_varchar2
1025 ,p_rehire_recommendation in varchar2 default hr_api.g_varchar2
1026 ,p_resume_exists in varchar2 default hr_api.g_varchar2
1027 ,p_resume_last_updated in date default hr_api.g_date
1028 ,p_second_passport_exists in varchar2 default hr_api.g_varchar2
1029 ,p_student_status in varchar2 default hr_api.g_varchar2
1030 ,p_work_schedule in varchar2 default hr_api.g_varchar2
1031 ,p_rehire_reason in varchar2 default hr_api.g_varchar2
1032 ,p_suffix in varchar2 default hr_api.g_varchar2
1033 ,p_benefit_group_id in number default hr_api.g_number
1034 ,p_receipt_of_death_cert_date in date default hr_api.g_date
1035 ,p_coord_ben_med_pln_no in varchar2 default hr_api.g_varchar2
1036 ,p_coord_ben_no_cvg_flag in varchar2 default hr_api.g_varchar2
1037 ,p_coord_ben_med_ext_er in varchar2 default hr_api.g_varchar2
1038 ,p_coord_ben_med_pl_name in varchar2 default hr_api.g_varchar2
1039 ,p_coord_ben_med_insr_crr_name in varchar2 default hr_api.g_varchar2
1040 ,p_coord_ben_med_insr_crr_ident in varchar2 default hr_api.g_varchar2
1041 ,p_coord_ben_med_cvg_strt_dt in date default hr_api.g_date
1042 ,p_coord_ben_med_cvg_end_dt in date default hr_api.g_date
1043 ,p_uses_tobacco_flag in varchar2 default hr_api.g_varchar2
1044 ,p_dpdnt_adoption_date in date default hr_api.g_date
1045 ,p_dpdnt_vlntry_svce_flag in varchar2 default hr_api.g_varchar2
1046 ,p_original_date_of_hire in date default hr_api.g_date
1047 ,p_adjusted_svc_date in date default hr_api.g_date
1048 ,p_town_of_birth in varchar2 default hr_api.g_varchar2
1049 ,p_region_of_birth in varchar2 default hr_api.g_varchar2
1050 ,p_country_of_birth in varchar2 default hr_api.g_varchar2
1051 ,p_global_person_id in varchar2 default hr_api.g_varchar2
1052 ,p_party_id in number default hr_api.g_number
1053 ,p_npw_number in varchar2 default hr_api.g_varchar2
1054 ,p_effective_start_date out nocopy date
1055 ,p_effective_end_date out nocopy date
1056 ,p_full_name out nocopy varchar2
1057 ,p_comment_id out nocopy number
1058 ,p_name_combination_warning out nocopy boolean
1059 ,p_assign_payroll_warning out nocopy boolean
1060 ,p_orig_hire_warning out nocopy boolean
1061 );
1062 --
1063 -- ----------------------------------------------------------------------------
1064 -- |------------------------------< delete_person >---------------------------|
1065 -- ----------------------------------------------------------------------------
1066 --
1067 -- {Start Of Comments}
1068 /*#
1069 * This API deletes the person and the associated person related records.
1070 *
1071 * This API deletes the person as identified by by p_person_id from HRMS
1072 * Applications.
1073 *
1074 * <p><b>Licensing</b><br>
1075 * This API is licensed for use with Human Resources.
1076 *
1077 * <p><b>Prerequisites</b><br>
1078 * The person, identified by p_person_id must already exist.
1079 *
1080 * <p><b>Post Success</b><br>
1081 * The API deletes the person and the associated person related records and
1082 * sets the following out parameters: p_person_org_manager_warning warning
1083 * message.
1084 *
1085 * <p><b>Post Failure</b><br>
1086 * The API does not delete the person and raises an error.
1087 *
1088 * @param p_validate If true, then validation alone will be performed and the
1089 * database will remain unchanged. If false and all validation checks pass,
1090 * then the database will be modified.
1091 * @param p_effective_date Reference date for validating lookup values are
1092 * applicable during the start to end active date range. This date does not
1093 * determine when the changes take effect.
1094 * @param p_person_id Identifies the person record to be deleted.
1095 * @param p_perform_predel_validation When this parameter is set to TRUE, the
1096 * API performs a check to see if any data in addition to that set up by
1097 * default, e.g. data in per_all_people_f, per_all_assignments_f,
1098 * per_periods_of_service exists for the person. If no additional data exists,
1099 * then the API cascade deletes the person data. If any additional data exists
1100 * for this person in any non-HRMS tables, then this person will not be deleted
1101 * irrespective of whether only default data exists. When this parameter is set
1102 * to FALSE, the API cascade deletes all data held in HRMS tables for this
1103 * person, provided no additional data exists in any non-HRMS tables.
1104 * @param p_person_org_manager_warning If the person being deleted is an
1105 * organization manager, then a warning message will be returned otherwise no
1106 * value will be returned.
1107 * @rep:displayname Delete Person
1108 * @rep:category BUSINESS_ENTITY HR_PERSON
1109 * @rep:lifecycle active
1110 * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
1111 * @rep:scope public
1112 * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
1113 */
1114 --
1115 -- {End Of Comments}
1116 --
1117 procedure delete_person (p_validate in boolean default false
1118 ,p_effective_date in date
1119 ,p_person_id in number
1120 ,p_perform_predel_validation in boolean default false
1121 ,p_person_org_manager_warning out nocopy varchar2);
1122
1123 --
1124 -- Fix for 3908271 ends here.
1125 --
1126 --
1127 end hr_person_api;