1 package hr_ru_person_api as
2 /* $Header: peperrui.pkh 120.1 2005/10/02 02:44:40 aroussel $ */
3 /*#
4 * This package contains update person APIs for Russia.
5 * @rep:scope public
6 * @rep:product PER
7 * @rep:displayname Update Person for Russia
8 */
9 --
10 -- ----------------------------------------------------------------------------
11 -- |-----------------------------< update_ru_person >-------------------------|
12 -- ----------------------------------------------------------------------------
13 --
14 -- {Start Of Comments}
15 /*#
16 * This API updates the various person types for Russia.
17 *
18 * This API is effectively an alternative to the API update_person. If
19 * p_validate is set to false, then the person record is updated.
20 *
21 * <p><b>Licensing</b><br>
22 * This API is licensed for use with Human Resources.
23 *
24 * <p><b>Prerequisites</b><br>
25 * The person record must exist on the effective date.
26 *
27 * <p><b>Post Success</b><br>
28 * The person entry will have been updated.
29 *
30 * <p><b>Post Failure</b><br>
31 * The API does not update the person and raises an error.
32 *
33 * @param p_validate If true, then validation alone will be performed and the
34 * database will remain unchanged. If false and all validation checks pass,
35 * then the database will be modified.
36 * @param p_effective_date Determines when the DateTrack operation comes into
37 * force.
38 * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
39 * updating the record. You must set to either UPDATE, CORRECTION,
40 * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
41 * particular record depend on the dates of previous record changes and the
42 * effective date of this change.
43 * @param p_person_id Identifies the person record to modify.
44 * @param p_object_version_number Pass in the current version number of the
45 * person to be updated. When the API completes if p_validate is false, will be
46 * set to the new version number of the updated person. If p_validate is true
47 * will be set to the same value which was passed in.
48 * @param p_person_type_id The person type identification of the person record
49 * that needs to be updated.
50 * @param p_last_name Person's last name.
51 * @param p_applicant_number Applicant number of the person.
52 * @param p_comments Comment text.
53 * @param p_date_employee_data_verified The date on which the person last
54 * verified the data.
55 * @param p_date_of_birth Date of birth.
56 * @param p_email_address E-mail address of the person.
57 * @param p_employee_number The business group's person number generation
58 * method determines when you can update the person value. To keep the existing
59 * person number pass in hr_api.g_varchar2. When the API call completes if
60 * p_validate is false then will be set to the person number. If p_validate is
61 * true then will be set to the passed value.
62 * @param p_expense_check_send_to_addres Type of mailing address. Valid values
63 * are defined by the 'HOME_OFFICE' lookup type.
64 * @param p_first_name Person's first name.
65 * @param p_known_as Alternative name of the person.
66 * @param p_marital_status Marital status of the person. Valid values are
67 * defined by the 'MAR_STATUS' lookup type.
68 * @param p_middle_names Person's middle name(s).
69 * @param p_nationality Person's nationality. Valid values are defined by the
70 * 'NATIONALITY' lookup type.
71 * @param p_inn National identifier.
72 * @param p_previous_last_name Previous last name.
73 * @param p_registered_disabled_flag Indicates whether person is classified as
74 * disabled. Valid values are defined by the 'REGISTERED_DISABLED' lookup type.
75 * @param p_sex Person's sex.
76 * @param p_title Person's title. Valid values are defined by the 'TITLE'
77 * lookup type.
78 * @param p_vendor_id Unique identifier of supplier.
79 * @param p_work_telephone Work telephone of the person.
80 * @param p_attribute_category This context value determines which flexfield
81 * structure to use with the descriptive flexfield segments.
82 * @param p_attribute1 Descriptive flexfield segment.
83 * @param p_attribute2 Descriptive flexfield segment.
84 * @param p_attribute3 Descriptive flexfield segment.
85 * @param p_attribute4 Descriptive flexfield segment.
86 * @param p_attribute5 Descriptive flexfield segment.
87 * @param p_attribute6 Descriptive flexfield segment.
88 * @param p_attribute7 Descriptive flexfield segment.
89 * @param p_attribute8 Descriptive flexfield segment.
90 * @param p_attribute9 Descriptive flexfield segment.
91 * @param p_attribute10 Descriptive flexfield segment.
92 * @param p_attribute11 Descriptive flexfield segment.
93 * @param p_attribute12 Descriptive flexfield segment.
94 * @param p_attribute13 Descriptive flexfield segment.
95 * @param p_attribute14 Descriptive flexfield segment.
96 * @param p_attribute15 Descriptive flexfield segment.
97 * @param p_attribute16 Descriptive flexfield segment.
98 * @param p_attribute17 Descriptive flexfield segment.
99 * @param p_attribute18 Descriptive flexfield segment.
100 * @param p_attribute19 Descriptive flexfield segment.
101 * @param p_attribute20 Descriptive flexfield segment.
102 * @param p_attribute21 Descriptive flexfield segment.
103 * @param p_attribute22 Descriptive flexfield segment.
104 * @param p_attribute23 Descriptive flexfield segment.
105 * @param p_attribute24 Descriptive flexfield segment.
106 * @param p_attribute25 Descriptive flexfield segment.
107 * @param p_attribute26 Descriptive flexfield segment.
108 * @param p_attribute27 Descriptive flexfield segment.
109 * @param p_attribute28 Descriptive flexfield segment.
110 * @param p_attribute29 Descriptive flexfield segment.
111 * @param p_attribute30 Descriptive flexfield segment.
112 * @param p_place_of_birth Person's place of birth.Valid values are defined by
113 * the 'RU_OKATO' lookup type.
114 * @param p_references References for the person in case of rehire.
115 * @param p_local_coefficient Valid for persons who live in Last North or
116 * regions that are equated to the Last North region.
117 * @param p_citizenship Person's citizenship. Valid values exist in the
118 * 'RU_CITIZENSHIP' lookup type.
119 * @param p_military_doc Military documents for the person. Valid values exist
120 * in the 'RU_MILITARY_DOC_TYPE' lookup type.
121 * @param p_reserve_category Reserve category of the person. Valid values exist
122 * in 'RU_RESERVE_CATEGORY' lookup type.
123 * @param p_military_rank Military rank of the person. Valid values exist in
124 * 'RU_MILITARY_RANK' lookup type.
125 * @param p_military_profile Military profile of the person. Valid values exist
126 * in 'RU_MILITARY_PROFILE' lookup type.
127 * @param p_military_reg_code Military registration board code of the person.
128 * @param p_mil_srvc_readiness_category Military readiness service category of
129 * the person. Valid values exist in 'RU_MILITARY_SERVICE_READINESS' lookup
130 * type.
131 * @param p_military_commissariat Military commissariat of the person.
132 * @param p_quitting_mark Conscription dismissal mark of the person. Valid
133 * values exist in 'RU_QUITTING_MARK' lookup type.
134 * @param p_military_unit_number Military unit number of the person.
135 * @param p_military_reg_type Military registration type. Valid values exist in
136 * the 'RU_MILITARY_REGISTRATION' lookup type.
137 * @param p_military_reg_details Military registration details.
138 * @param p_pension_fund_number Pension fund number of the person.
139 * @param p_date_of_death Date of death of the person.
140 * @param p_background_check_status Y/N flag indicates whether background check
141 * has been performed.
142 * @param p_background_date_check Date background check was performed.
143 * @param p_blood_type Type of blood group of the person. Valid values are
144 * defined by the 'BLOOD_TYPE' lookup type.
145 * @param p_correspondence_language Preferred language for correspondence.
146 * @param p_fast_path_employee This parameter is currently unsupported.
147 * @param p_fte_capacity Full time/part time availability for work.
148 * @param p_hold_applicant_date_until Date until which the applicant should be
149 * put on hold.
150 * @param p_honors Honors or degrees awarded.
151 * @param p_internal_location Internal location of office.
152 * @param p_last_medical_test_by Name of the physician who performed the last
153 * medical test.
154 * @param p_last_medical_test_date Date of the last medical test.
155 * @param p_mailstop Office identifier for internal mail.
156 * @param p_office_number Office number of the person.
157 * @param p_on_military_service Y/N flag indicating whether the person is
158 * employed in military service.
159 * @param p_genitive_last_name Genitive last name of the person
160 * @param p_projected_start_date This parameter is currently unsupported.
161 * @param p_rehire_authorizor This parameter is currently unsupported.
162 * @param p_rehire_recommendation Rehire recommendation.
163 * @param p_resume_exists Y/N flag indicating whether resume is on file.
164 * @param p_resume_last_updated Date when the resume was last updated.
165 * @param p_second_passport_exists Y/N flag indicating whether person has
166 * multiple passports.
167 * @param p_student_status Full time/part time status of student. Valid values
168 * are defined by the 'STUDENT_STATUS' lookup type.
169 * @param p_work_schedule Type of work schedule indicating which days the
170 * person works. Valid values are defined by the 'WORK_SCHEDULE' lookup type.
171 * @param p_rehire_reason Reason for rehiring the person.
172 * @param p_suffix This parameter is currently unsupported.
173 * @param p_benefit_group_id Identifies the benefit group.
174 * @param p_receipt_of_death_cert_date Date when the death certificate was
175 * received.
176 * @param p_coord_ben_med_pln_no Coordination of benefits medical group plan
177 * number.
178 * @param p_coord_ben_no_cvg_flag Coordination of benefits no other coverage
179 * flag.
180 * @param p_coord_ben_med_ext_er Secondary medical coverage external employer.
181 * @param p_coord_ben_med_pl_name Secondary medical coverage name.
182 * @param p_coord_ben_med_insr_crr_name Secondary medical coverage insurance
183 * carrier name.
184 * @param p_coord_ben_med_insr_crr_ident Identifier for secondary medical
185 * coverage insurance carrier.
186 * @param p_coord_ben_med_cvg_strt_dt Secondary medical coverage effective
187 * start date.
188 * @param p_coord_ben_med_cvg_end_dt Secondary medical coverage effective end
189 * date.
190 * @param p_uses_tobacco_flag Tobacco type used by the person. Valid values are
191 * defined by the 'TOBACCO_USER' lookup type.
192 * @param p_dpdnt_adoption_date Date dependent was adopted.
193 * @param p_dpdnt_vlntry_svce_flag Indicates whether the dependent is on
194 * voluntary service.
195 * @param p_original_date_of_hire Original date of hire of the person.
196 * @param p_adjusted_svc_date Adjusted service date.
197 * @param p_town_of_birth Town or city of birth of the person.
198 * @param p_region_of_birth Geographical region of birth of the person.
199 * @param p_country_of_birth Country of birth of the person.
200 * @param p_global_person_id Global identification number for the person.
201 * @param p_party_id Identifier for the party.
202 * @param p_npw_number Number of non-payrolled worker.
203 * @param p_effective_start_date If p_validate is false, this will be set to
204 * the effective start date of the person. If p_validate is true, this will be
205 * null.
206 * @param p_effective_end_date If p_validate is false, this will be set to the
207 * effective end date of the person. If p_validate is true, this will be null.
208 * @param p_full_name If p_validate is false, this will be set to the complete
209 * full name of the person. If p_validate is true, this will be null.
210 * @param p_comment_id If p_validate is false and comment text was provided,
211 * then will be set to the identifier of the created person record. If
212 * p_validate is true or no comment text was provided, then this will be null.
213 * @param p_name_combination_warning If set to true, then the combination of
214 * last name, first name and date of birth existed prior to calling this API.
215 * @param p_assign_payroll_warning If set to true, then the date of birth is
216 * not entered. If set to false, then the date of birth has been entered.
217 * Indicates if it will be possible to set the payroll on any of this person's
218 * assignments.
219 * @param p_orig_hire_warning Set to true if the original date of hire is not
220 * null and the person type is not EMP, EMP_APL, EX_EMP, or EX_EMP_APL.
221 * @rep:displayname Update Person for Russia
222 * @rep:category BUSINESS_ENTITY HR_PERSON
223 * @rep:lifecycle active
224 * @rep:category MISC_EXTENSIONS HR_DATAPUMP
225 * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
226 * @rep:scope public
227 * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
228 */
229 --
230 -- {End Of Comments}
231 --
232 procedure update_ru_person
233 (p_validate in boolean default false
234 ,p_effective_date in date
235 ,p_datetrack_update_mode in varchar2
236 ,p_person_id in number
237 ,p_object_version_number in out nocopy number
238 ,p_person_type_id in number default hr_api.g_number
239 ,p_last_name in varchar2 default hr_api.g_varchar2
240 ,p_applicant_number in varchar2 default hr_api.g_varchar2
241 ,p_comments in varchar2 default hr_api.g_varchar2
242 ,p_date_employee_data_verified in date default hr_api.g_date
243 ,p_date_of_birth in date default hr_api.g_date
244 ,p_email_address in varchar2 default hr_api.g_varchar2
245 ,p_employee_number in out nocopy varchar2
246 ,p_expense_check_send_to_addres in varchar2 default hr_api.g_varchar2
247 ,p_first_name in varchar2 default hr_api.g_varchar2
248 ,p_known_as in varchar2 default hr_api.g_varchar2
249 ,p_marital_status in varchar2 default hr_api.g_varchar2
250 ,p_middle_names in varchar2 default hr_api.g_varchar2
251 ,p_nationality in varchar2 default hr_api.g_varchar2
252 ,p_inn in varchar2 default hr_api.g_varchar2
253 ,p_previous_last_name in varchar2 default hr_api.g_varchar2
254 ,p_registered_disabled_flag in varchar2 default hr_api.g_varchar2
255 ,p_sex in varchar2 default hr_api.g_varchar2
256 ,p_title in varchar2 default hr_api.g_varchar2
257 ,p_vendor_id in number default hr_api.g_number
258 ,p_work_telephone in varchar2 default hr_api.g_varchar2
259 ,p_attribute_category in varchar2 default hr_api.g_varchar2
260 ,p_attribute1 in varchar2 default hr_api.g_varchar2
261 ,p_attribute2 in varchar2 default hr_api.g_varchar2
262 ,p_attribute3 in varchar2 default hr_api.g_varchar2
263 ,p_attribute4 in varchar2 default hr_api.g_varchar2
264 ,p_attribute5 in varchar2 default hr_api.g_varchar2
265 ,p_attribute6 in varchar2 default hr_api.g_varchar2
266 ,p_attribute7 in varchar2 default hr_api.g_varchar2
267 ,p_attribute8 in varchar2 default hr_api.g_varchar2
268 ,p_attribute9 in varchar2 default hr_api.g_varchar2
269 ,p_attribute10 in varchar2 default hr_api.g_varchar2
270 ,p_attribute11 in varchar2 default hr_api.g_varchar2
271 ,p_attribute12 in varchar2 default hr_api.g_varchar2
272 ,p_attribute13 in varchar2 default hr_api.g_varchar2
273 ,p_attribute14 in varchar2 default hr_api.g_varchar2
274 ,p_attribute15 in varchar2 default hr_api.g_varchar2
275 ,p_attribute16 in varchar2 default hr_api.g_varchar2
276 ,p_attribute17 in varchar2 default hr_api.g_varchar2
277 ,p_attribute18 in varchar2 default hr_api.g_varchar2
278 ,p_attribute19 in varchar2 default hr_api.g_varchar2
279 ,p_attribute20 in varchar2 default hr_api.g_varchar2
280 ,p_attribute21 in varchar2 default hr_api.g_varchar2
281 ,p_attribute22 in varchar2 default hr_api.g_varchar2
282 ,p_attribute23 in varchar2 default hr_api.g_varchar2
283 ,p_attribute24 in varchar2 default hr_api.g_varchar2
284 ,p_attribute25 in varchar2 default hr_api.g_varchar2
285 ,p_attribute26 in varchar2 default hr_api.g_varchar2
286 ,p_attribute27 in varchar2 default hr_api.g_varchar2
287 ,p_attribute28 in varchar2 default hr_api.g_varchar2
288 ,p_attribute29 in varchar2 default hr_api.g_varchar2
289 ,p_attribute30 in varchar2 default hr_api.g_varchar2
290 ,p_place_of_birth in varchar2 default hr_api.g_varchar2
291 ,p_references in varchar2 default hr_api.g_varchar2
292 ,p_local_coefficient in varchar2 default hr_api.g_varchar2
293 ,p_citizenship in varchar2 default hr_api.g_varchar2
294 ,p_military_doc in varchar2 default hr_api.g_varchar2
295 ,p_reserve_category in varchar2 default hr_api.g_varchar2
296 ,p_military_rank in varchar2 default hr_api.g_varchar2
297 ,p_military_profile in varchar2 default hr_api.g_varchar2
298 ,p_military_reg_code in varchar2 default hr_api.g_varchar2
299 ,p_mil_srvc_readiness_category in varchar2 default hr_api.g_varchar2
300 ,p_military_commissariat in varchar2 default hr_api.g_varchar2
301 ,p_quitting_mark in varchar2 default hr_api.g_varchar2
302 ,p_military_unit_number in varchar2 default hr_api.g_varchar2
303 ,p_military_reg_type in varchar2 default hr_api.g_varchar2
304 ,p_military_reg_details in varchar2 default hr_api.g_varchar2
305 ,p_pension_fund_number in varchar2 default hr_api.g_varchar2
306 ,p_date_of_death in date default hr_api.g_date
307 ,p_background_check_status in varchar2 default hr_api.g_varchar2
308 ,p_background_date_check in date default hr_api.g_date
309 ,p_blood_type in varchar2 default hr_api.g_varchar2
310 ,p_correspondence_language in varchar2 default hr_api.g_varchar2
311 ,p_fast_path_employee in varchar2 default hr_api.g_varchar2
312 ,p_fte_capacity in number default hr_api.g_number
313 ,p_hold_applicant_date_until in date default hr_api.g_date
314 ,p_honors in varchar2 default hr_api.g_varchar2
315 ,p_internal_location in varchar2 default hr_api.g_varchar2
316 ,p_last_medical_test_by in varchar2 default hr_api.g_varchar2
317 ,p_last_medical_test_date in date default hr_api.g_date
318 ,p_mailstop in varchar2 default hr_api.g_varchar2
319 ,p_office_number in varchar2 default hr_api.g_varchar2
320 ,p_on_military_service in varchar2 default hr_api.g_varchar2
321 ,p_genitive_last_name in varchar2 default hr_api.g_varchar2
322 ,p_projected_start_date in date default hr_api.g_date
323 ,p_rehire_authorizor in varchar2 default hr_api.g_varchar2
324 ,p_rehire_recommendation in varchar2 default hr_api.g_varchar2
325 ,p_resume_exists in varchar2 default hr_api.g_varchar2
326 ,p_resume_last_updated in date default hr_api.g_date
327 ,p_second_passport_exists in varchar2 default hr_api.g_varchar2
328 ,p_student_status in varchar2 default hr_api.g_varchar2
329 ,p_work_schedule in varchar2 default hr_api.g_varchar2
330 ,p_rehire_reason in varchar2 default hr_api.g_varchar2
331 ,p_suffix in varchar2 default hr_api.g_varchar2
332 ,p_benefit_group_id in number default hr_api.g_number
333 ,p_receipt_of_death_cert_date in date default hr_api.g_date
334 ,p_coord_ben_med_pln_no in varchar2 default hr_api.g_varchar2
335 ,p_coord_ben_no_cvg_flag in varchar2 default hr_api.g_varchar2
336 ,p_coord_ben_med_ext_er in varchar2 default hr_api.g_varchar2
337 ,p_coord_ben_med_pl_name in varchar2 default hr_api.g_varchar2
338 ,p_coord_ben_med_insr_crr_name in varchar2 default hr_api.g_varchar2
339 ,p_coord_ben_med_insr_crr_ident in varchar2 default hr_api.g_varchar2
340 ,p_coord_ben_med_cvg_strt_dt in date default hr_api.g_date
341 ,p_coord_ben_med_cvg_end_dt in date default hr_api.g_date
342 ,p_uses_tobacco_flag in varchar2 default hr_api.g_varchar2
343 ,p_dpdnt_adoption_date in date default hr_api.g_date
344 ,p_dpdnt_vlntry_svce_flag in varchar2 default hr_api.g_varchar2
345 ,p_original_date_of_hire in date default hr_api.g_date
346 ,p_adjusted_svc_date in date default hr_api.g_date
347 ,p_town_of_birth in varchar2 default hr_api.g_varchar2
348 ,p_region_of_birth in varchar2 default hr_api.g_varchar2
349 ,p_country_of_birth in varchar2 default hr_api.g_varchar2
350 ,p_global_person_id in varchar2 default hr_api.g_varchar2
351 ,p_party_id in number default hr_api.g_number
352 ,p_npw_number in varchar2 default hr_api.g_varchar2
353 ,p_effective_start_date out nocopy date
354 ,p_effective_end_date out nocopy date
355 ,p_full_name out nocopy varchar2
356 ,p_comment_id out nocopy number
357 ,p_name_combination_warning out nocopy boolean
358 ,p_assign_payroll_warning out nocopy boolean
359 ,p_orig_hire_warning out nocopy boolean
360 ) ;
361 end hr_ru_person_api;
362