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