DBA Data[Home] [Help]

PACKAGE: APPS.HR_DK_PERSON_API

Source


1 PACKAGE HR_DK_PERSON_API as
2 /* $Header: peperdki.pkh 120.4 2006/10/11 07:34:12 saurai noship $ */
3 /*#
4  * This package contains person APIs.
5  * @rep:scope public
6  * @rep:product PER
7  * @rep:displayname Person for Denmark
8 */
9 --
10 -- ----------------------------------------------------------------------------
11 -- |-----------------------------< update_dk_person >-------------------------|
12 -- ----------------------------------------------------------------------------
13 --
14 -- {Start Of Comments}
15 /*#
16  * The following procedure updates a person.
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 will have been updated.
29  *
30  * <p><b>Post Failure</b><br>
31  * The API will 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 Person type id.
49  * @param p_last_name Last name of the person.
50  * @param p_applicant_number Applicant number.
51  * @param p_comments Applicant comment text.
52  * @param p_date_employee_data_verified The date on which the person data was
53  * last verified.
54  * @param p_date_of_birth Date of birth.
55  * @param p_email_address Email address.
56  * @param p_employee_number The business group's employee number generation
57  * method determines when you can update the employee value. To keep the
58  * existing employee number pass in hr_api.g_varchar2. When the API call
59  * completes if p_validate is false then will be set to the employee number. If
60  * p_validate is true then will be set to the passed value.
61  * @param p_expense_check_send_to_addres Address to use as mailing address.
62  * @param p_first_name Person's first name.
63  * @param p_middle_names Person's middle name.
64  * @param p_known_as Alternative name.
65  * @param p_marital_status Marital status. Valid values are defined by
66  * 'MAR_STATUS' lookup type.
67  * @param p_nationality Person's nationality. Valid values are defined by
68  * 'NATIONALITY' lookup type.
69  * @param p_national_identifier National identifier.
70  * @param p_previous_last_name Previous last name.
71  * @param p_registered_disabled_flag Registered disabled flag.Valid values are
72  * defined by 'REGISTERED_DISABLED' lookup type.
73  * @param p_sex Person's sex. Valid values are defined by 'SEX' lookup type.
74  * @param p_title Person's title. Valid values are defined by 'TITLE' lookup
75  * type.
76  * @param p_vendor_id Identifier of workers supplying organization.
77  * @param p_work_telephone Work telephone.
78  * @param p_attribute_category This context value determines which flexfield
79  * structure to use with the descriptive flexfield segments.
80  * @param p_attribute1 Descriptive flexfield segment.
81  * @param p_attribute2 Descriptive flexfield segment.
82  * @param p_attribute3 Descriptive flexfield segment.
83  * @param p_attribute4 Descriptive flexfield segment.
84  * @param p_attribute5 Descriptive flexfield segment.
85  * @param p_attribute6 Descriptive flexfield segment.
86  * @param p_attribute7 Descriptive flexfield segment.
87  * @param p_attribute8 Descriptive flexfield segment.
88  * @param p_attribute9 Descriptive flexfield segment.
89  * @param p_attribute10 Descriptive flexfield segment.
90  * @param p_attribute11 Descriptive flexfield segment.
91  * @param p_attribute12 Descriptive flexfield segment.
92  * @param p_attribute13 Descriptive flexfield segment.
93  * @param p_attribute14 Descriptive flexfield segment.
94  * @param p_attribute15 Descriptive flexfield segment.
95  * @param p_attribute16 Descriptive flexfield segment.
96  * @param p_attribute17 Descriptive flexfield segment.
97  * @param p_attribute18 Descriptive flexfield segment.
98  * @param p_attribute19 Descriptive flexfield segment.
99  * @param p_attribute20 Descriptive flexfield segment.
100  * @param p_attribute21 Descriptive flexfield segment.
101  * @param p_attribute22 Descriptive flexfield segment.
102  * @param p_attribute23 Descriptive flexfield segment.
103  * @param p_attribute24 Descriptive flexfield segment.
104  * @param p_attribute25 Descriptive flexfield segment.
105  * @param p_attribute26 Descriptive flexfield segment.
106  * @param p_attribute27 Descriptive flexfield segment.
107  * @param p_attribute28 Descriptive flexfield segment.
108  * @param p_attribute29 Descriptive flexfield segment.
109  * @param p_attribute30 Descriptive flexfield segment.
110  * @param p_initials Intials.
111  * @param p_jubilee_date Jubilee Date.
112  * @param p_trainee Trainee.
113  * @param p_date_of_death Date of death.
114  * @param p_background_check_status Y/N flag indicates whether background check
115  * has been performed.
116  * @param p_background_date_check Date background check was performed.
117  * @param p_blood_type Blood group.
118  * @param p_correspondence_language Preferred language for correspondence.
119  * @param p_fast_path_employee Date up to which applicant's file to be
120  * maintained.
121  * @param p_fte_capacity Currently unsupported.
122  * @param p_hold_applicant_date_until Date up to which applicant's file to be
123  * maintained.
124  * @param p_honors Honors or degrees awarded.
125  * @param p_internal_location Office identifier for internal mail.
126  * @param p_last_medical_test_by Name of physician who performed last medical
127  * test.
128  * @param p_last_medical_test_date Date of last medical test.
129  * @param p_mailstop Number of office.
130  * @param p_office_number Number of office.
131  * @param p_on_military_service Type of military service.
132  * @param p_projected_start_date Currently unsupported.
133  * @param p_rehire_authorizor Currently unsupported.
134  * @param p_rehire_recommendation Re-hire recommendation.
135  * @param p_resume_exists Y/N flag indicating whether resume is on file.
136  * @param p_resume_last_updated Date resume last updated.
137  * @param p_second_passport_exists Y/N flag indicaing whether person has
138  * multiple passports.
139  * @param p_student_status Type of student status.Valid values are defined by
140  * 'STUDENT_STATUS' lookup type.
141  * @param p_work_schedule Type of work schedule indicating which days person
142  * works.Valid values are defined by 'WORK_SCHEDULE' lookup type.
143  * @param p_rehire_reason Reason for re-hiring.
144  * @param p_benefit_group_id Benefit group id.
145  * @param p_receipt_of_death_cert_date Date the death certificate is received.
146  * @param p_coord_ben_med_pln_no Number of an externally provided medical plan.
147  * @param p_coord_ben_no_cvg_flag No other coverage flag.
148  * @param p_coord_ben_med_ext_er Secondary medical coverage external employer.
149  * @param p_coord_ben_med_pl_name Secondary medical coverage name.
150  * @param p_coord_ben_med_insr_crr_name Secondary medical coverage insurance
151  * carrier.
152  * @param p_coord_ben_med_insr_crr_ident Secondary medical coverage insurance
153  * carrier id.
154  * @param p_coord_ben_med_cvg_strt_dt Secondary medical coverage effective
155  * start date.
156  * @param p_coord_ben_med_cvg_end_dt Secondary medical coverage effective end
157  * date.
158  * @param p_uses_tobacco_flag Uses tobacco list of values.Valid values are
159  * defined by 'TOBACCO_USER' lookup type.
160  * @param p_dpdnt_adoption_date Dependent's adoption date.
161  * @param p_dpdnt_vlntry_svce_flag Dependent's voluntary service flag.
162  * @param p_original_date_of_hire Original date of hire.
163  * @param p_adjusted_svc_date Adjusted service date.
164  * @param p_town_of_birth Town or city of birth.
165  * @param p_region_of_birth Geographical region of birth.
166  * @param p_country_of_birth Country of birth.
167  * @param p_global_person_id Global ID for the person.
168  * @param p_party_id Party ID for the person.
169  * @param p_npw_number Non-payrolled worker number.
170  * @param p_effective_start_date If p_validate is false, then set to the
171  * effective start date on the updated person row which now exists as of the
172  * effective date. If p_validate is true, then set to null.
173  * @param p_effective_end_date If p_validate is false, then set to the
174  * effective end date on the updated person row which now exists as of the
175  * effective date. If p_validate is true, then set to null.
176  * @param p_full_name If p_validate is false, set to the complete full name of
177  * the person. If p_validate is true, set to null.
178  * @param p_comment_id If p_validate is false and new or existing comment text
179  * exists, then will be set to the identifier of the person comment record. If
180  * p_validate is true or no comment text exists, then will be null.
181  * @param p_name_combination_warning If set to true, then the combination of
182  * last name, first name and date of birth existed prior to calling this API.
183  * @param p_assign_payroll_warning If set to true, then the date of birth is
184  * not entered. If set to false, then the date of birth has been entered.
185  * Indicates if it will be possible to set the payroll on any of this person's
186  * assignments.
187  * @param p_orig_hire_warning Set to true if the original date of hire is not
188  * null and the person type is not EMP,EMP_APL, EX_EMP or EX_EMP_APL.
189  * @rep:displayname Update Person for Denmark
190  * @rep:category BUSINESS_ENTITY HR_PERSON
191  * @rep:lifecycle active
192  * @rep:scope public
193  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
194 */
195 --
196 -- {End Of Comments}
197 --
198 procedure update_dk_person
199   (p_validate                     in      boolean   default false
200   ,p_effective_date               in      date
201   ,p_datetrack_update_mode        in      varchar2
202   ,p_person_id                    in      number
203   ,p_object_version_number        in out nocopy  number
204   ,p_person_type_id               in      number   default hr_api.g_number
205   ,p_last_name                  in      varchar2 default hr_api.g_varchar2
206   ,p_applicant_number             in      varchar2 default hr_api.g_varchar2
207   ,p_comments                     in      varchar2 default hr_api.g_varchar2
208   ,p_date_employee_data_verified  in      date     default hr_api.g_date
209   ,p_date_of_birth                in      date     default hr_api.g_date
210   ,p_email_address                in      varchar2 default hr_api.g_varchar2
211   ,p_employee_number              in out nocopy  varchar2
212   ,p_expense_check_send_to_addres in      varchar2 default hr_api.g_varchar2
213   ,p_first_name                   in      varchar2 default hr_api.g_varchar2
214   -- Added for bug fix 4666216
215   ,p_middle_names                 in     varchar2 default  hr_api.g_varchar2
216   ,p_known_as                     in      varchar2 default hr_api.g_varchar2
217   ,p_marital_status               in      varchar2 default hr_api.g_varchar2
218   ,p_nationality                  in      varchar2 default hr_api.g_varchar2
219   ,p_national_identifier          in      varchar2 default hr_api.g_varchar2
220   ,p_previous_last_name           in      varchar2 default hr_api.g_varchar2
221   ,p_registered_disabled_flag     in      varchar2 default hr_api.g_varchar2
222   ,p_sex                          in      varchar2 default hr_api.g_varchar2
223   ,p_title                        in      varchar2 default hr_api.g_varchar2
224   ,p_vendor_id                    in      number   default hr_api.g_number
225   ,p_work_telephone               in      varchar2 default hr_api.g_varchar2
226   ,p_attribute_category           in      varchar2 default hr_api.g_varchar2
227   ,p_attribute1                   in      varchar2 default hr_api.g_varchar2
228   ,p_attribute2                   in      varchar2 default hr_api.g_varchar2
229   ,p_attribute3                   in      varchar2 default hr_api.g_varchar2
230   ,p_attribute4                   in      varchar2 default hr_api.g_varchar2
231   ,p_attribute5                   in      varchar2 default hr_api.g_varchar2
232   ,p_attribute6                   in      varchar2 default hr_api.g_varchar2
233   ,p_attribute7                   in      varchar2 default hr_api.g_varchar2
234   ,p_attribute8                   in      varchar2 default hr_api.g_varchar2
235   ,p_attribute9                   in      varchar2 default hr_api.g_varchar2
236   ,p_attribute10                  in      varchar2 default hr_api.g_varchar2
237   ,p_attribute11                  in      varchar2 default hr_api.g_varchar2
238   ,p_attribute12                  in      varchar2 default hr_api.g_varchar2
239   ,p_attribute13                  in      varchar2 default hr_api.g_varchar2
240   ,p_attribute14                  in      varchar2 default hr_api.g_varchar2
241   ,p_attribute15                  in      varchar2 default hr_api.g_varchar2
242   ,p_attribute16                  in      varchar2 default hr_api.g_varchar2
243   ,p_attribute17                  in      varchar2 default hr_api.g_varchar2
244   ,p_attribute18                  in      varchar2 default hr_api.g_varchar2
245   ,p_attribute19                  in      varchar2 default hr_api.g_varchar2
246   ,p_attribute20                  in      varchar2 default hr_api.g_varchar2
247   ,p_attribute21                  in      varchar2 default hr_api.g_varchar2
248   ,p_attribute22                  in      varchar2 default hr_api.g_varchar2
249   ,p_attribute23                  in      varchar2 default hr_api.g_varchar2
250   ,p_attribute24                  in      varchar2 default hr_api.g_varchar2
251   ,p_attribute25                  in      varchar2 default hr_api.g_varchar2
252   ,p_attribute26                  in      varchar2 default hr_api.g_varchar2
253   ,p_attribute27                  in      varchar2 default hr_api.g_varchar2
254   ,p_attribute28                  in      varchar2 default hr_api.g_varchar2
255   ,p_attribute29                  in      varchar2 default hr_api.g_varchar2
256   ,p_attribute30                  in      varchar2 default hr_api.g_varchar2
257   ,p_initials        	  in      varchar2 default hr_api.g_varchar2
258     ,p_jubilee_date		   in		date default hr_api.g_date
259   ,p_trainee                      IN      VARCHAR2 DEFAULT hr_api.g_varchar2
260   ,p_date_of_death                in      date     default hr_api.g_date
261   ,p_background_check_status      in      varchar2 default hr_api.g_varchar2
262   ,p_background_date_check        in      date     default hr_api.g_date
263   ,p_blood_type                   in      varchar2 default hr_api.g_varchar2
264   ,p_correspondence_language      in      varchar2 default hr_api.g_varchar2
265   ,p_fast_path_employee           in      varchar2 default hr_api.g_varchar2
266   ,p_fte_capacity                 in      number   default hr_api.g_number
267   ,p_hold_applicant_date_until    in      date     default hr_api.g_date
268   ,p_honors                       in      varchar2 default hr_api.g_varchar2
269   ,p_internal_location            in      varchar2 default hr_api.g_varchar2
270   ,p_last_medical_test_by         in      varchar2 default hr_api.g_varchar2
271   ,p_last_medical_test_date       in      date     default hr_api.g_date
272   ,p_mailstop                     in      varchar2 default hr_api.g_varchar2
273   ,p_office_number                in      varchar2 default hr_api.g_varchar2
274   ,p_on_military_service          in      varchar2 default hr_api.g_varchar2
275   ,p_projected_start_date         in      date     default hr_api.g_date
276   ,p_rehire_authorizor            in      varchar2 default hr_api.g_varchar2
277   ,p_rehire_recommendation        in      varchar2 default hr_api.g_varchar2
278   ,p_resume_exists                in      varchar2 default hr_api.g_varchar2
279   ,p_resume_last_updated          in      date     default hr_api.g_date
280   ,p_second_passport_exists       in      varchar2 default hr_api.g_varchar2
281   ,p_student_status               in      varchar2 default hr_api.g_varchar2
282   ,p_work_schedule                in      varchar2 default hr_api.g_varchar2
283   ,p_rehire_reason                in      varchar2 default hr_api.g_varchar2
284   ,p_benefit_group_id             in      number   default hr_api.g_number
285   ,p_receipt_of_death_cert_date   in      date     default hr_api.g_date
286   ,p_coord_ben_med_pln_no         in      varchar2 default hr_api.g_varchar2
287   ,p_coord_ben_no_cvg_flag        in      varchar2 default hr_api.g_varchar2
288   ,p_coord_ben_med_ext_er         in      varchar2 default hr_api.g_varchar2
289   ,p_coord_ben_med_pl_name        in      varchar2 default hr_api.g_varchar2
290   ,p_coord_ben_med_insr_crr_name  in      varchar2 default hr_api.g_varchar2
291   ,p_coord_ben_med_insr_crr_ident in      varchar2 default hr_api.g_varchar2
292   ,p_coord_ben_med_cvg_strt_dt    in      date     default hr_api.g_date
293   ,p_coord_ben_med_cvg_end_dt     in      date     default hr_api.g_date
294   ,p_uses_tobacco_flag            in      varchar2 default hr_api.g_varchar2
295   ,p_dpdnt_adoption_date          in      date     default hr_api.g_date
296   ,p_dpdnt_vlntry_svce_flag       in      varchar2 default hr_api.g_varchar2
297   ,p_original_date_of_hire        in      date     default hr_api.g_date
298   ,p_adjusted_svc_date            in      date     default hr_api.g_date
299   ,p_town_of_birth                in      varchar2 default hr_api.g_varchar2
300   ,p_region_of_birth              in      varchar2 default hr_api.g_varchar2
301   ,p_country_of_birth             in      varchar2 default hr_api.g_varchar2
302   ,p_global_person_id             in      varchar2 default hr_api.g_varchar2
303   ,p_party_id                     in      number   default hr_api.g_number
304   ,p_npw_number                   in      varchar2 default hr_api.g_varchar2
305   ,p_effective_start_date            out nocopy  date
306   ,p_effective_end_date              out nocopy  date
307   ,p_full_name                       out nocopy  varchar2
308   ,p_comment_id                      out nocopy  number
309   ,p_name_combination_warning        out nocopy  boolean
310   ,p_assign_payroll_warning          out nocopy  boolean
311   ,p_orig_hire_warning               out nocopy  boolean
312   );
313 
314 end HR_DK_PERSON_API;