DBA Data[Home] [Help]

PACKAGE: APPS.HR_ASSIGNMENT_API

Source


1 Package hr_assignment_api as
2 /* $Header: peasgapi.pkh 120.11.12010000.3 2008/11/06 13:11:19 brsinha ship $ */
3 /*#
4  * This package contains APIs for maintaining employee, applicant and
5  * contingent worker assignment details.
6  * @rep:scope public
7  * @rep:product per
8  * @rep:displayname Assignment
9 */
10 --
11 -- -----------------------------------------------------------------------------
12 -- |--------------------------< last_apl_asg >---------------------------------|
13 -- -----------------------------------------------------------------------------
14 --
15 -- {Start of Comments}
16 --
17 -- Description:
18 --   Determines if the assignment is the last applicant assignment on a given
19 --   date
20 --
21 -- Prerequisites:
22 --   None
23 --
24 -- In Parameters
25 --   Name                           Reqd Type     Description
26 --   p_assignment_id                Yes  number   Assignment id
27 --   p_effective_date               Yes  date     Effective date
28 --
29 -- Post Success:
30 --   A boolean indicator signifying if the assignment is the last applicant
31 --   assignment on the effective date is returned.
32 --
33 -- Post Failure:
34 --   An error is raised
35 --
36 -- Access Status:
37 --   Internal Development Use Only
38 --
39 -- {End of Comments}
40 --
41 FUNCTION last_apl_asg
42   (p_assignment_id                IN     per_all_assignments_f.assignment_id%TYPE
43   ,p_effective_date               IN     DATE
44   )
45 RETURN BOOLEAN;
46 --
47 -- ----------------------------------------------------------------------------
48 -- |--------------------------< activate_emp_asg >----------------------------|
49 -- ----------------------------------------------------------------------------
50 --
51 -- {Start Of Comments}
52 /*#
53  * This API updates the status of an employee assignment to an Active status.
54  *
55  *
56  * <p><b>Licensing</b><br>
57  * This API is licensed for use with Human Resources.
58  *
59  * <p><b>Prerequisites</b><br>
60  * The assignment must be an employee assignment. The assignment must exist as
61  * of the effective date of the change
62  *
63  * <p><b>Post Success</b><br>
64  * The employee assignment will be set to an active status
65  *
66  * <p><b>Post Failure</b><br>
67  * The status of the employee assignment will not be changed and an error will
68  * be raised
69  * @param p_validate If true, then validation alone will be performed and the
70  * database will remain unchanged. If false and all validation checks pass,
71  * then the database will be modified.
72  * @param p_effective_date Determines when the DateTrack operation comes into
73  * force.
74  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
75  * updating the record. You must set to either UPDATE, CORRECTION,
76  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
77  * particular record depend on the dates of previous record changes and the
78  * effective date of this change.
79  * @param p_assignment_id Identifies the assignment record to be modified.
80  * @param p_change_reason Reason for the assignment status change. If there is
81  * no change reason the parameter can be null. Valid values are defined in the
82  * EMP_ASSIGN_REASON lookup type.
83  * @param p_object_version_number Pass in the current version number of the
84  * assignment to be updated. When the API completes if p_validate is false,
85  * will be set to the new version number of the updated assignment. If
86  * p_validate is true will be set to the same value which was passed in.
87  * @param p_assignment_status_type_id The new assignment status must have a
88  * system assignment status of ACTIVE_ASSIGN. If the assignment status is
89  * already a type of ACTIVE_ASSIGN, this API can be used to set a different
90  * active status. If no value is supplied, this API uses the default
91  * ACTIVE_ASSIGN status for the business group in which this assignment exists.
92  * @param p_effective_start_date If p_validate is false, then set to the
93  * effective start date on the updated assignment row which now exists as of
94  * the effective date. If p_validate is true, then set to null.
95  * @param p_effective_end_date If p_validate is false, then set to the
96  * effective end date on the updated assignment row which now exists as of the
97  * effective date. If p_validate is true, then set to null.
98  * @rep:displayname Activate Employee Assignment
99  * @rep:category BUSINESS_ENTITY PER_EMPLOYEE_ASG
100  * @rep:category MISC_EXTENSIONS HR_DATAPUMP
101  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
102  * @rep:scope public
103  * @rep:lifecycle active
104  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
105 */
106 --
107 -- {End Of Comments}
108 --
109 procedure activate_emp_asg
110   (p_validate                     in     boolean  default false
111   ,p_effective_date               in     date
112   ,p_datetrack_update_mode        in     varchar2
113   ,p_assignment_id                in     number
114   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
115   ,p_object_version_number        in out nocopy number
116   ,p_assignment_status_type_id    in     number   default hr_api.g_number
117   ,p_effective_start_date            out nocopy date
118   ,p_effective_end_date              out nocopy date
119   );
120 --
121 -- ----------------------------------------------------------------------------
122 -- |--------------------------< activate_cwk_asg >----------------------------|
123 -- ----------------------------------------------------------------------------
124 --
125 -- {Start Of Comments}
126 /*#
127  * This API updates the status of a contingent worker assignment to an Active
128  * status.
129  *
130  *
131  * <p><b>Licensing</b><br>
132  * This API is licensed for use with Human Resources.
133  *
134  * <p><b>Prerequisites</b><br>
135  * The assignment must be an contingent worker assignment. The assignment must
136  * exist as of the effective date of the change
137  *
138  * <p><b>Post Success</b><br>
139  * The contingent worker assignment will be set to an active status
140  *
141  * <p><b>Post Failure</b><br>
142  * The status of the contingent worker assignment will not be changed and an
143  * error will be raised
144  * @param p_validate If true, then validation alone will be performed and the
145  * database will remain unchanged. If false and all validation checks pass,
146  * then the database will be modified.
147  * @param p_effective_date Determines when the DateTrack operation comes into
148  * force.
149  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
150  * updating the record. You must set to either UPDATE, CORRECTION,
151  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
152  * particular record depend on the dates of previous record changes and the
153  * effective date of this change.
154  * @param p_assignment_id Identifies the assignment record to be modified.
155  * @param p_change_reason Reason for the assignment status change. If there is
156  * no change reason the parameter can be null. Valid values are defined in the
157  * CWK_ASSIGN_REASON lookup_type.
158  * @param p_object_version_number Pass in the current version number of the
159  * assignment to be updated. When the API completes if p_validate is false,
160  * will be set to the new version number of the updated assignment. If
161  * p_validate is true will be set to the same value which was passed in.
162  * @param p_assignment_status_type_id The new assignment status must have a
163  * system assignment status of ACTIVE_CWK. If the assignment status is already
164  * a type of ACTIVE_CWK, this API can be used to set a different active status.
165  * If no value is supplied, this API uses the default ACTIVE_CWK status for the
166  * business group in which this assignment exists.
167  * @param p_effective_start_date If p_validate is false, then set to the
168  * effective start date on the updated assignment row which now exists as of
169  * the effective date. If p_validate is true, then set to null.
170  * @param p_effective_end_date If p_validate is false, then set to the
171  * effective end date on the updated assignment row which now exists as of the
172  * effective date. If p_validate is true, then set to null.
173  * @rep:displayname Activate Contingent Worker assignment
174  * @rep:category BUSINESS_ENTITY PER_CWK_ASG
175  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
176  * @rep:scope public
177  * @rep:lifecycle active
178  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
179 */
180 --
181 -- {End Of Comments}
182 --
183 procedure activate_cwk_asg
184   (p_validate                     in     boolean  default false
185   ,p_effective_date               in     date
186   ,p_datetrack_update_mode        in     varchar2
187   ,p_assignment_id                in     number
188   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
189   ,p_object_version_number        in out nocopy number
190   ,p_assignment_status_type_id    in     number   default hr_api.g_number
191   ,p_effective_start_date            out nocopy date
192   ,p_effective_end_date              out nocopy date
193   );
194 --
195 -- ----------------------------------------------------------------------------
196 -- |----------------------< actual_termination_emp_asg >----------------------|
197 -- ----------------------------------------------------------------------------
198 --
199 -- {Start Of Comments}
200 /*#
201  * This API updates the status of an employee assignment to a Termination
202  * status.
203  *
204  * This API covers the first step in terminating an employee assignment. When
205  * an employee has more than one assignment, this API will terminate any
206  * secondary assignment, but cannot terminate the primary assignment. The
207  * second step of the termination process should be performed using the API
208  * final_process_emp_asg. actual_termination_emp_asg is used to set the actual
209  * termination date and to change the assignment status to a type of
210  * TERM_ASSIGN. If you want to change the actual termination date after it has
211  * been entered, you must cancel the termination and then re-apply the
212  * termination as of the new date.
213  *
214  * <p><b>Licensing</b><br>
215  * This API is licensed for use with Human Resources.
216  *
217  * <p><b>Prerequisites</b><br>
218  * The assignment must be a secondary employee assignment, and must exist on
219  * the effective date.
220  *
221  * <p><b>Post Success</b><br>
222  * The API updates the assignment status. Using this API may have an effect on
223  * element entries. Element entries for the assignment that have an element
224  * termination rule of 'Actual Termination' are ended as of the actual
225  * termination date. Element entries for the assignment that have an element
226  * termination rule of 'Final Close' are not affected by this API. These
227  * entries are updated by the final_process_emp_asg API. In non-US
228  * legislations, element entries for the assignment that have an element
229  * termination rule of 'Last Standard Process' are ended. (In a US legislation,
230  * the element termination rule of 'Last Standard Process' is not used.) The
231  * date used depends on the payroll component of the employee's assignment.
232  * When the assignment does not include a payroll, the entries are ended as of
233  * the actual termination date. When the assignment includes a payroll, the
234  * entries are ended as of the end date of the payroll period in which the
235  * actual termination date occurs.
236  *
237  * <p><b>Post Failure</b><br>
238  * The API does not update the assignment or element entries and raises an
239  * error.
240  * @param p_validate If true, then validation alone will be performed and the
241  * database will remain unchanged. If false and all validation checks pass,
242  * then the database will be modified.
243  * @param p_assignment_id Identifies the assignment record to be modified.
244  * @param p_object_version_number Pass in the current version number of the
245  * assignment to be updated. When the API completes if p_validate is false,
246  * will be set to the new version number of the updated assignment. If
247  * p_validate is true will be set to the same value which was passed in.
248  * @param p_actual_termination_date Actual termination date
249  * @param p_assignment_status_type_id The new assignment status must have a
250  * system assignment status of TERM_ASSIGN. If no value is supplied, this API
251  * uses the default TERM_ASSIGN status for the business group in which this
252  * assignment exists.
253  * @param p_effective_start_date If p_validate is false, then set to the
254  * effective start date on the updated assignment row which now exists as of
255  * the effective date. If p_validate is true, then set to null.
256  * @param p_effective_end_date If p_validate is false, then set to the
257  * effective end date on the updated assignment row which now exists as of the
258  * effective date. If p_validate is true, then set to null.
259  * @param p_asg_future_changes_warning Set to true if at least one assignment
260  * change, after the actual termination date, has been overwritten with the new
261  * assignment status. Set to false when there were no changes in the future.
262  * @param p_entries_changed_warning This is set to 'Y', if at least one element
263  * entry was altered due to the assignment change. It is set to 'S', if at
264  * least one salary element entry was affected (This is a more specific case
265  * than 'Y').
266  * Otherwise set to 'N', if no element entries were changed.
267  * @param p_pay_proposal_warning Set to true if any salary proposal existing
268  * after the actual termination date has been deleted. Set to false when there
269  * are no salary proposals after actual termination date.
270  * @rep:displayname Actual Termination Employee Assignment
271  * @rep:category BUSINESS_ENTITY PER_EMPLOYEE_ASG
272  * @rep:category MISC_EXTENSIONS HR_DATAPUMP
273  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
274  * @rep:scope public
275  * @rep:lifecycle active
276  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
277 */
278 --
279 -- {End Of Comments}
280 --
281 procedure actual_termination_emp_asg
282   (p_validate                      in     boolean  default false
283   ,p_assignment_id                 in     number
284   ,p_object_version_number         in out nocopy number
285   ,p_actual_termination_date       in     date
286   ,p_assignment_status_type_id     in     number   default hr_api.g_number
287   ,p_effective_start_date             out nocopy date
288   ,p_effective_end_date               out nocopy date
289   ,p_asg_future_changes_warning       out nocopy boolean
290   ,p_entries_changed_warning          out nocopy varchar2
291   ,p_pay_proposal_warning             out nocopy boolean
292   );
293   --
294 -- ----------------------------------------------------------------------------
295 -- |----------------------< actual_termination_cwk_asg >----------------------|
296 -- ----------------------------------------------------------------------------
297 -- {Start Of Comments}
298 --
299 -- Description:
300 --   This API covers the first step in terminating a placement
301 --   assignment.  When a placement has more than one assignment, you can
302 --   use this API to terminate any assignment except the primary assignment.
303 --
304 --   Note:  If the placement has only one assignment, or if you want to
305 --          terminate all current assignments, you should use the
306 --          hr_cwk_api.terminate_placement API.
307 --          Also, you cannot use this API to update an applicant or
308 --          employee assignment status.
309 --
310 --   The termination process has two distinct steps, using two
311 --   APIs.  Use the actual_termination_cwk_asg API to set the actual
312 --   termination date and to change the assignment status to a type of
313 --   TERM_CWK_ASSIGN.  Then use the final_process_cwk_asg API to date
314 --   effectively delete the assignment with effect from the final process
315 --   date.
316 --
317 --   The new assignment status must have a corresponding system status of
318 --   TERM_CWK_ASSIGN. If a status is not passed into the API, the default
319 --   TERM_CWK_ASSIGN status for the assignment's business group is used. The
320 --   new status takes affect on the day after the actual termination date.
321 --
322 --   If you want to change the actual termination date after it has been
323 --   entered, you must cancel the termination and then re-apply the termination
324 --   as of the new date.
325 --
326 --   Element entries for the assignment that have an element
327 --   termination rule of 'Actual Termination' are date effectively
328 --   deleted as of the actual termination date.
329 --
330 --   Element entries for the assignment that have an element
331 --   termination rule of 'Final Close' are not affected by this API.
332 --   These entries are updated by the 'final_process_cwk_asg' API.
333 --
334 --   In a US legislation, the element termination rule of 'Last Standard
335 --   Process' is not used.
336 --
337 --   In non-US legislations, element entries for the
338 --   assignment that have an element termination rule of 'Last Standard
339 --   Process' are date effectively deleted. The date used depends on
340 --   the payroll component of the contingent worker assignment.
341 --         When the assignment does not include a payroll, the entries are
342 --         deleted as of the actual termination date.
343 --         When the assignment includes a payroll, the entries are deleted
344 --         as of the end date of the payroll period in which the actual
345 --         termination date occurs.
346 --
347 -- Prerequisites:
348 --   The assignment record, identified by p_assignment_id and
349 --   p_object_version_number, must exist as a secondary contingent worker
350 --   assignment.
351 --   The assignment status type, identified by p_assignment_status_type_id,
352 --   must exist for the same business group as the assignment, must be active,
353 --   and must have a system status of TERM_CWK_ASSIGN.  If no assignment status
354 --   is specified, the API uses the default user status for TERM_CWK_ASSIGN.
355 --
356 -- In Parameters:
357 --   Name                           Reqd Type     Description
358 --   p_validate                     No   boolean  If true, the database
359 --                                                remains unchanged. If false
360 --                                                then the assignment and
361 --                                                element entries are
362 --                                                updated.
363 --   p_assignment_id                Yes  number   ID of the assignment
364 --   p_object_version_number        Yes  number   Version number of the
365 --                                                assignment record
366 --   p_actual_termination_date      Yes  date     Actual termination date
367 --   p_assignment_status_type_id    No   number   Assignment status type
368 --
369 -- Post Success:
370 --   The API updates the assignment, modifies the element entries, and sets
371 --   the following out parameters:
372 --
373 --   Name                           Type     Description
374 --   p_object_version_number        number   If p_validate is false, set to
375 --                                           the new version number of the
376 --                                           actual termination date
377 --                                           assignment record. If p_validate
378 --                                           is true, set to the same value
379 --                                           you passed in.
380 --   p_effective_start_date         date     If p_validate is false, set to
381 --                                           the effective start date of the
382 --                                           actual termination date assignment
383 --                                           record. If p_validate is true set
384 --                                           to null.
385 --   p_effective_end_date           date     If p_validate is false, set to
386 --                                           the effective end date of the
387 --                                           actual termination date assignment
388 --                                           record. If p_validate is true set
389 --                                           to null.
390 --   p_asg_future_changes_warning   boolean  Set to true if at least one
391 --                                           assignment change, after the
392 --                                           actual termination date, has been
393 --                                           overwritten with the new
394 --                                           assignment status. Set to
395 --                                           false when there were no changes
396 --                                           in the future.
397 --   p_entries_changed_warning      varchar2 Set to 'Y' if at least one
398 --                                           element entry was altered due to
399 --                                           the assignment change.
400 --                                           Set to 'S' if at least one salary
401 --                                           element entry was affected. (This
402 --                                           (is a more specific case than
403 --                                           'Y'.) Otherwise set to 'N', if
404 --                                           no element entries were changed.
405 --
406 --   p_pay_proposal_warning         boolean  Set to true if any salary proposal
407 --                                           existing after the
408 --                                           actual_termination_date has been
409 --                                           deleted. Set to false when there
410 --                                           are no salary proposals after actual_
411 --                                           termination_date.
412 -- Post Failure:
413 --   The API does not update the assignment or element entries and raises an
414 --   error.
415 --
416 -- Access Status:
417 --   Public.
418 --
419 -- {End Of Comments}
420 --
421 procedure actual_termination_cwk_asg
422   (p_validate                      in     boolean  default false
423   ,p_assignment_id                 in     number
424   ,p_object_version_number         in out nocopy number
425   ,p_actual_termination_date       in     date
426   ,p_assignment_status_type_id     in     number   default hr_api.g_number
427   ,p_effective_start_date             out nocopy date
428   ,p_effective_end_date               out nocopy date
429   ,p_asg_future_changes_warning       out nocopy boolean
430   ,p_entries_changed_warning          out nocopy varchar2
431   ,p_pay_proposal_warning             out nocopy boolean
432   );
433 --
434 -- ----------------------------------------------------------------------------
435 -- |-------------------------< final_process_cwk_asg >------------------------|
436 -- ----------------------------------------------------------------------------
437 -- {Start Of Comments}
438 --
439 -- Description:
440 --   This API covers the second step in terminating an individual cwk
441 --   assignment.  You can use this API to terminate any assignment except
442 --   the primary assignment.
443 --
444 --   Note:  If the person has only one assignment, or if you want to
445 --          terminate all current assignments, you should use the
446 --          'terminate_placement' API.
447 --
448 --   The termination process has two distinct steps, using two APIs.
449 --   Use the actual_termination_cwk_asg API to set the actual termination
450 --   date and to change the assignment status to a type of TERM_CWK_ASSIGN.
451 --   Then use the final_process_cwk_asg API to date-effectively delete the
452 --   assignment with effect from the final process date.
453 --
454 --   Note: The cwk assignment must already have an actual termination
455 --         date.  The actual termination date is not held on the assignment
456 --         record.  It is derived from the date when the assignment status
457 --         first changes to a TERM_CWK_ASSIGN system status.
458 --
459 --   Element entries for the assignment that have an element
460 --   termination rule of 'Final Close' are date effectively deleted as
461 --   of the final process date.
462 --
463 --   Element entries for the assignment that have an element
464 --   termination rule of 'Last Standard Process' are date effectively
465 --   deleted as of the final process date, if the last standard process date
466 --   is later than the final process date.
467 --
468 --   Any cost allocations, grade step/point placements, cobra coverage benefits
469 --   and personal payment methods for this assignment are date effectively
470 --   deleted as of the final process date.
471 --
472 -- Prerequisites:
473 --   The assignment must be a secondary contingent worker assignment.
474 --   The assignment must already have an actual termination date.
475 --   The final process date cannot be earlier than the actual termination
476 --   date.
477 --
478 -- In Parameters:
479 --   Name                           Reqd Type     Description
480 --   p_validate                     No   boolean  If true, the database
481 --                                                remains unchanged. If false
482 --                                                then the assignment and
483 --                                                element entries are
484 --                                                changed.
485 --   p_assignment_id                Yes  number   ID of the assignment
486 --   p_object_version_number        Yes  number   Version number of the
487 --                                                assignment record
488 --   p_final_process_date           Yes  date     Final Process Date
489 --
490 -- Post Success:
491 --   The API date effectively deletes the assignment and element entries,
492 --   and sets the following out parameters:
493 --
494 --   Name                           Type     Description
495 --   p_object_version_number        number   If p_validate is false, set to
496 --                                           the new version number of the
497 --                                           modified assignment record. If
498 --                                           p_validate is true, set to the
499 --                                           same value you passed in.
500 --   p_effective_start_date         date     If p_validate is false, set to
501 --                                           the effective start date for
502 --                                           this assignment change. If
503 --                                           p_validate is true set to null.
504 --   p_effective_end_date           date     If p_validate is false, set to
505 --                                           the effective end date for
506 --                                           this assignment change. If
507 --                                           p_validate is true set to null.
508 --   p_org_now_no_manager_warning   boolean  Set to true if this assignment
509 --                                           had the manager flag set to 'Y'
510 --                                           and there are no other managers
511 --                                           in the assignment's organization.
512 --                                           Set to false if there is another manager
513 --                                           in the assignment's organization
514 --                                           or if this assignment did not have
515 --                                           the manager flag set to 'Y'.
516 --                                           The warning value only applies as
517 --                                           of the final process date.
518 --   p_asg_future_changes_warning   boolean  Set to true if at least one
519 --                                           assignment change, after the final
520 --                                           process date, has been deleted
521 --                                           as a result of terminating the
522 --                                           assignment. (The only valid change after the
523 --                                           actual termination date is setting the
524 --                                           assignment status to another
525 --                                           TERM_CWK_ASSIGN status.) Set to false
526 --                                           when there were no changes after
527 --                                           final process date.
528 --   p_entries_changed_warning      varchar2 Set to 'Y' when at least one
529 --                                           element entry was altered due to
530 --                                           the assignment change.
531 --                                           Set to 'S' if at least one salary
532 --                                           element entry was affected. (This
533 --                                           (is a more specific case than
534 --                                           'Y'.) Otherwise set to 'N', when
535 --                                           no element entries were changed.
536 --
537 -- Post Failure:
538 --   The API does not update the assignment or element entries and raises an
539 --   error.
540 --
541 -- Access Status:
542 --   Public.
543 --
544 -- {End Of Comments}
545 --
546 procedure final_process_cwk_asg
547   (p_validate                      in     boolean  default false
548   ,p_assignment_id                 in     number
549   ,p_object_version_number         in out nocopy number
550   ,p_final_process_date            in     date
551   ,p_effective_start_date             out nocopy date
552   ,p_effective_end_date               out nocopy date
553   ,p_org_now_no_manager_warning       out nocopy boolean
554   ,p_asg_future_changes_warning       out nocopy boolean
555   ,p_entries_changed_warning          out nocopy varchar2
556   );
557 --
558 -- ----------------------------------------------------------------------------
559 -- |---------------------------< suspend_cwk_asg >----------------------------|
560 -- ----------------------------------------------------------------------------
561 --
562 -- {Start Of Comments}
563 /*#
564  * This API changes the status of a contingent worker assignment to a Suspended
565  * status.
566  *
567  *
568  * <p><b>Licensing</b><br>
569  * This API is licensed for use with Human Resources.
570  *
571  * <p><b>Prerequisites</b><br>
572  * The assignment must be a contingent worker assignment, and must exist on the
573  * effective date.
574  *
575  * <p><b>Post Success</b><br>
576  * The contingent worker assignment will be set to a suspended status.
577  *
578  * <p><b>Post Failure</b><br>
579  * The API does not update the assignment and raises an error.
580  * @param p_validate If true, then validation alone will be performed and the
581  * database will remain unchanged. If false and all validation checks pass,
582  * then the database will be modified.
583  * @param p_effective_date Determines when the DateTrack operation comes into
584  * force.
585  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
586  * updating the record. You must set to either UPDATE, CORRECTION,
587  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
588  * particular record depend on the dates of previous record changes and the
589  * effective date of this change.
590  * @param p_assignment_id Identifies the assignment record to be modified.
591  * @param p_change_reason Reason for the assignment status change. If there is
592  * no change reason the parameter can be null. Valid values are defined in the
593  * CWK_ASSIGN_REASON lookup_type.
594  * @param p_object_version_number Pass in the current version number of the
595  * assignment to be updated. When the API completes if p_validate is false,
596  * will be set to the new version number of the updated assignment. If
597  * p_validate is true will be set to the same value which was passed in.
598  * @param p_assignment_status_type_id The new assignment status. The new status
599  * must have a system status of SUSP_CWK_ASG. If the assignment status is
600  * already a type of SUSP_CWK_ASG this API can be used to set a different
601  * suspend status. If this parameter is not explicitly passed, the API uses the
602  * default SUSP_CWK_ASG status for the assignment's business group.
603  * @param p_effective_start_date If p_validate is false, then set to the
604  * effective start date on the updated assignment row which now exists as of
605  * the effective date. If p_validate is true, then set to null.
606  * @param p_effective_end_date If p_validate is false, then set to the
607  * effective end date on the updated assignment row which now exists as of the
608  * effective date. If p_validate is true, then set to null.
609  * @rep:displayname Suspend Contingent Worker assignment
610  * @rep:category BUSINESS_ENTITY PER_CWK_ASG
611  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
612  * @rep:scope public
613  * @rep:lifecycle active
614  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
615 */
616 --
617 -- {End Of Comments}
618 --
619 procedure suspend_cwk_asg
620   (p_validate                     in     boolean  default false
621   ,p_effective_date               in     date
622   ,p_datetrack_update_mode        in     varchar2
623   ,p_assignment_id                in     number
624   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
625   ,p_object_version_number        in out nocopy number
626   ,p_assignment_status_type_id    in     number   default hr_api.g_number
627   ,p_effective_start_date            out nocopy date
628   ,p_effective_end_date              out nocopy date
629   );
630 --
631 -- ----------------------------------------------------------------------------
632 -- |-------------------------< create_secondary_emp_asg >---------------------|
633 -- ----------------------------------------------------------------------------
634 --
635 -- This version of the API is now out-of-date however it has been provided to
636 -- you for backward compatibility support and will be removed in the future.
637 -- Oracle recommends you to modify existing calling programs in advance of the
638 -- support being withdrawn thus avoiding any potential disruption.
639 --
640 procedure create_secondary_emp_asg
641   (p_validate                     in     boolean  default false
642   ,p_effective_date               in     date
643   ,p_person_id                    in     number
644   ,p_organization_id              in     number
645   ,p_grade_id                     in     number   default null
646   ,p_position_id                  in     number   default null
647   ,p_job_id                       in     number   default null
648   ,p_assignment_status_type_id    in     number   default null
649   ,p_payroll_id                   in     number   default null
650   ,p_location_id                  in     number   default null
651   ,p_supervisor_id                in     number   default null
652   ,p_special_ceiling_step_id      in     number   default null
653   ,p_pay_basis_id                 in     number   default null
654   ,p_assignment_number            in out nocopy varchar2
655   ,p_change_reason                in     varchar2 default null
656   ,p_comments                     in     varchar2 default null
657   ,p_date_probation_end           in     date     default null
658   ,p_default_code_comb_id         in     number   default null
659   ,p_employment_category          in     varchar2 default null
660   ,p_frequency                    in     varchar2 default null
661   ,p_internal_address_line        in     varchar2 default null
662   ,p_manager_flag                 in     varchar2 default null
663   ,p_normal_hours                 in     number   default null
664   ,p_perf_review_period           in     number   default null
665   ,p_perf_review_period_frequency in     varchar2 default null
666   ,p_probation_period             in     number   default null
667   ,p_probation_unit               in     varchar2 default null
668   ,p_sal_review_period            in     number   default null
669   ,p_sal_review_period_frequency  in     varchar2 default null
670   ,p_set_of_books_id              in     number   default null
671   ,p_source_type                  in     varchar2 default null
672   ,p_time_normal_finish           in     varchar2 default null
673   ,p_time_normal_start            in     varchar2 default null
674   ,p_bargaining_unit_code         in     varchar2 default null
675   ,p_labour_union_member_flag     in     varchar2 default 'N'
676   ,p_hourly_salaried_code         in     varchar2 default null
677   ,p_ass_attribute_category       in     varchar2 default null
678   ,p_ass_attribute1               in     varchar2 default null
679   ,p_ass_attribute2               in     varchar2 default null
680   ,p_ass_attribute3               in     varchar2 default null
681   ,p_ass_attribute4               in     varchar2 default null
682   ,p_ass_attribute5               in     varchar2 default null
683   ,p_ass_attribute6               in     varchar2 default null
684   ,p_ass_attribute7               in     varchar2 default null
685   ,p_ass_attribute8               in     varchar2 default null
686   ,p_ass_attribute9               in     varchar2 default null
687   ,p_ass_attribute10              in     varchar2 default null
688   ,p_ass_attribute11              in     varchar2 default null
689   ,p_ass_attribute12              in     varchar2 default null
690   ,p_ass_attribute13              in     varchar2 default null
691   ,p_ass_attribute14              in     varchar2 default null
692   ,p_ass_attribute15              in     varchar2 default null
693   ,p_ass_attribute16              in     varchar2 default null
694   ,p_ass_attribute17              in     varchar2 default null
695   ,p_ass_attribute18              in     varchar2 default null
696   ,p_ass_attribute19              in     varchar2 default null
697   ,p_ass_attribute20              in     varchar2 default null
698   ,p_ass_attribute21              in     varchar2 default null
699   ,p_ass_attribute22              in     varchar2 default null
700   ,p_ass_attribute23              in     varchar2 default null
701   ,p_ass_attribute24              in     varchar2 default null
702   ,p_ass_attribute25              in     varchar2 default null
703   ,p_ass_attribute26              in     varchar2 default null
704   ,p_ass_attribute27              in     varchar2 default null
705   ,p_ass_attribute28              in     varchar2 default null
706   ,p_ass_attribute29              in     varchar2 default null
707   ,p_ass_attribute30              in     varchar2 default null
708   ,p_title                        in     varchar2 default null
709   ,p_scl_segment1                 in     varchar2 default null
710   ,p_scl_segment2                 in     varchar2 default null
711   ,p_scl_segment3                 in     varchar2 default null
712   ,p_scl_segment4                 in     varchar2 default null
713   ,p_scl_segment5                 in     varchar2 default null
714   ,p_scl_segment6                 in     varchar2 default null
715   ,p_scl_segment7                 in     varchar2 default null
716   ,p_scl_segment8                 in     varchar2 default null
717   ,p_scl_segment9                 in     varchar2 default null
718   ,p_scl_segment10                in     varchar2 default null
719   ,p_scl_segment11                in     varchar2 default null
720   ,p_scl_segment12                in     varchar2 default null
721   ,p_scl_segment13                in     varchar2 default null
722   ,p_scl_segment14                in     varchar2 default null
723   ,p_scl_segment15                in     varchar2 default null
724   ,p_scl_segment16                in     varchar2 default null
725   ,p_scl_segment17                in     varchar2 default null
726   ,p_scl_segment18                in     varchar2 default null
727   ,p_scl_segment19                in     varchar2 default null
728   ,p_scl_segment20                in     varchar2 default null
729   ,p_scl_segment21                in     varchar2 default null
730   ,p_scl_segment22                in     varchar2 default null
731   ,p_scl_segment23                in     varchar2 default null
732   ,p_scl_segment24                in     varchar2 default null
733   ,p_scl_segment25                in     varchar2 default null
734   ,p_scl_segment26                in     varchar2 default null
735   ,p_scl_segment27                in     varchar2 default null
736   ,p_scl_segment28                in     varchar2 default null
737   ,p_scl_segment29                in     varchar2 default null
738   ,p_scl_segment30                in     varchar2 default null
739 -- Bug 944911
740 -- Added scl_concat_segments and amended scl_concatenated_segments
741 -- to be an out instead of in out
742   ,p_scl_concat_segments          in     varchar2 default null
743   ,p_pgp_segment1                 in     varchar2 default null
744   ,p_pgp_segment2                 in     varchar2 default null
745   ,p_pgp_segment3                 in     varchar2 default null
746   ,p_pgp_segment4                 in     varchar2 default null
747   ,p_pgp_segment5                 in     varchar2 default null
748   ,p_pgp_segment6                 in     varchar2 default null
749   ,p_pgp_segment7                 in     varchar2 default null
750   ,p_pgp_segment8                 in     varchar2 default null
751   ,p_pgp_segment9                 in     varchar2 default null
752   ,p_pgp_segment10                in     varchar2 default null
753   ,p_pgp_segment11                in     varchar2 default null
754   ,p_pgp_segment12                in     varchar2 default null
755   ,p_pgp_segment13                in     varchar2 default null
756   ,p_pgp_segment14                in     varchar2 default null
757   ,p_pgp_segment15                in     varchar2 default null
758   ,p_pgp_segment16                in     varchar2 default null
759   ,p_pgp_segment17                in     varchar2 default null
760   ,p_pgp_segment18                in     varchar2 default null
761   ,p_pgp_segment19                in     varchar2 default null
762   ,p_pgp_segment20                in     varchar2 default null
763   ,p_pgp_segment21                in     varchar2 default null
764   ,p_pgp_segment22                in     varchar2 default null
765   ,p_pgp_segment23                in     varchar2 default null
766   ,p_pgp_segment24                in     varchar2 default null
767   ,p_pgp_segment25                in     varchar2 default null
768   ,p_pgp_segment26                in     varchar2 default null
769   ,p_pgp_segment27                in     varchar2 default null
770   ,p_pgp_segment28                in     varchar2 default null
771   ,p_pgp_segment29                in     varchar2 default null
772   ,p_pgp_segment30                in     varchar2 default null
773 -- Bug 944911
774 -- Changed this to out
775 -- Added new param p_concat_segments in for non sec asg
776 -- else added p_pgp_concat_segments
777   ,p_pgp_concat_segments	  in     varchar2 default null
778   ,p_supervisor_assignment_id     in     number   default null
779   ,p_group_name                   out nocopy varchar2
780 -- Bug 944911
781 -- Added scl_concat_segments and amended scl_concatenated_segments
782 -- to be an out instead of in out
783 -- Amended this to be p_concatenated_segments
784   ,p_concatenated_segments       out nocopy varchar2
785   ,p_assignment_id                   out nocopy number
786   ,p_soft_coding_keyflex_id      in  out nocopy number -- bug 2359997
787   ,p_people_group_id             in  out nocopy number -- bug 2359997
788   ,p_object_version_number           out nocopy number
789   ,p_effective_start_date            out nocopy date
790   ,p_effective_end_date              out nocopy date
791   ,p_assignment_sequence             out nocopy number
792   ,p_comment_id                      out nocopy number
793   ,p_other_manager_warning           out nocopy boolean
794   );
795 
796 --
797 -- ----------------------------------------------------------------------------
798 -- |-------------------------< create_secondary_emp_asg >---------------------|
799 -- ----------------------------------------------------------------------------
800 --
801 -- This version of the API is now out-of-date however it has been provided to
802 -- you for backward compatibility support and will be removed in the future.
803 -- Oracle recommends you to modify existing calling programs in advance of the
804 -- support being withdrawn thus avoiding any potential disruption.
805 --
806 procedure create_secondary_emp_asg
807   (p_validate                     in     boolean  default false
808   ,p_effective_date               in     date
809   ,p_person_id                    in     number
810   ,p_organization_id              in     number
811   ,p_grade_id                     in     number   default null
812   ,p_position_id                  in     number   default null
813   ,p_job_id                       in     number   default null
814   ,p_assignment_status_type_id    in     number   default null
815   ,p_payroll_id                   in     number   default null
816   ,p_location_id                  in     number   default null
817   ,p_supervisor_id                in     number   default null
818   ,p_special_ceiling_step_id      in     number   default null
819   ,p_pay_basis_id                 in     number   default null
820   ,p_assignment_number            in out nocopy varchar2
821   ,p_change_reason                in     varchar2 default null
822   ,p_comments                     in     varchar2 default null
823   ,p_date_probation_end           in     date     default null
824   ,p_default_code_comb_id         in     number   default null
825   ,p_employment_category          in     varchar2 default null
826   ,p_frequency                    in     varchar2 default null
827   ,p_internal_address_line        in     varchar2 default null
828   ,p_manager_flag                 in     varchar2 default null
829   ,p_normal_hours                 in     number   default null
830   ,p_perf_review_period           in     number   default null
831   ,p_perf_review_period_frequency in     varchar2 default null
832   ,p_probation_period             in     number   default null
833   ,p_probation_unit               in     varchar2 default null
834   ,p_sal_review_period            in     number   default null
835   ,p_sal_review_period_frequency  in     varchar2 default null
836   ,p_set_of_books_id              in     number   default null
837   ,p_source_type                  in     varchar2 default null
838   ,p_time_normal_finish           in     varchar2 default null
839   ,p_time_normal_start            in     varchar2 default null
840   ,p_bargaining_unit_code         in     varchar2 default null
841   ,p_labour_union_member_flag     in     varchar2 default 'N'
842   ,p_hourly_salaried_code         in     varchar2 default null
843   ,p_ass_attribute_category       in     varchar2 default null
844   ,p_ass_attribute1               in     varchar2 default null
845   ,p_ass_attribute2               in     varchar2 default null
846   ,p_ass_attribute3               in     varchar2 default null
847   ,p_ass_attribute4               in     varchar2 default null
848   ,p_ass_attribute5               in     varchar2 default null
849   ,p_ass_attribute6               in     varchar2 default null
850   ,p_ass_attribute7               in     varchar2 default null
851   ,p_ass_attribute8               in     varchar2 default null
852   ,p_ass_attribute9               in     varchar2 default null
853   ,p_ass_attribute10              in     varchar2 default null
854   ,p_ass_attribute11              in     varchar2 default null
855   ,p_ass_attribute12              in     varchar2 default null
856   ,p_ass_attribute13              in     varchar2 default null
857   ,p_ass_attribute14              in     varchar2 default null
858   ,p_ass_attribute15              in     varchar2 default null
859   ,p_ass_attribute16              in     varchar2 default null
860   ,p_ass_attribute17              in     varchar2 default null
861   ,p_ass_attribute18              in     varchar2 default null
862   ,p_ass_attribute19              in     varchar2 default null
863   ,p_ass_attribute20              in     varchar2 default null
864   ,p_ass_attribute21              in     varchar2 default null
865   ,p_ass_attribute22              in     varchar2 default null
866   ,p_ass_attribute23              in     varchar2 default null
867   ,p_ass_attribute24              in     varchar2 default null
868   ,p_ass_attribute25              in     varchar2 default null
869   ,p_ass_attribute26              in     varchar2 default null
870   ,p_ass_attribute27              in     varchar2 default null
871   ,p_ass_attribute28              in     varchar2 default null
872   ,p_ass_attribute29              in     varchar2 default null
873   ,p_ass_attribute30              in     varchar2 default null
874   ,p_title                        in     varchar2 default null
875   ,p_scl_segment1                 in     varchar2 default null
876   ,p_scl_segment2                 in     varchar2 default null
877   ,p_scl_segment3                 in     varchar2 default null
878   ,p_scl_segment4                 in     varchar2 default null
879   ,p_scl_segment5                 in     varchar2 default null
880   ,p_scl_segment6                 in     varchar2 default null
881   ,p_scl_segment7                 in     varchar2 default null
882   ,p_scl_segment8                 in     varchar2 default null
883   ,p_scl_segment9                 in     varchar2 default null
884   ,p_scl_segment10                in     varchar2 default null
885   ,p_scl_segment11                in     varchar2 default null
886   ,p_scl_segment12                in     varchar2 default null
887   ,p_scl_segment13                in     varchar2 default null
888   ,p_scl_segment14                in     varchar2 default null
889   ,p_scl_segment15                in     varchar2 default null
890   ,p_scl_segment16                in     varchar2 default null
891   ,p_scl_segment17                in     varchar2 default null
892   ,p_scl_segment18                in     varchar2 default null
893   ,p_scl_segment19                in     varchar2 default null
894   ,p_scl_segment20                in     varchar2 default null
895   ,p_scl_segment21                in     varchar2 default null
896   ,p_scl_segment22                in     varchar2 default null
897   ,p_scl_segment23                in     varchar2 default null
898   ,p_scl_segment24                in     varchar2 default null
899   ,p_scl_segment25                in     varchar2 default null
900   ,p_scl_segment26                in     varchar2 default null
901   ,p_scl_segment27                in     varchar2 default null
902   ,p_scl_segment28                in     varchar2 default null
903   ,p_scl_segment29                in     varchar2 default null
904   ,p_scl_segment30                in     varchar2 default null
905 -- Bug 944911
906 -- Added scl_concat_segments and amended scl_concatenated_segments
907 -- to be an out instead of in out
908   ,p_scl_concat_segments          in     varchar2 default null
909   ,p_pgp_segment1                 in     varchar2 default null
910   ,p_pgp_segment2                 in     varchar2 default null
911   ,p_pgp_segment3                 in     varchar2 default null
912   ,p_pgp_segment4                 in     varchar2 default null
913   ,p_pgp_segment5                 in     varchar2 default null
914   ,p_pgp_segment6                 in     varchar2 default null
915   ,p_pgp_segment7                 in     varchar2 default null
916   ,p_pgp_segment8                 in     varchar2 default null
917   ,p_pgp_segment9                 in     varchar2 default null
918   ,p_pgp_segment10                in     varchar2 default null
919   ,p_pgp_segment11                in     varchar2 default null
920   ,p_pgp_segment12                in     varchar2 default null
921   ,p_pgp_segment13                in     varchar2 default null
922   ,p_pgp_segment14                in     varchar2 default null
923   ,p_pgp_segment15                in     varchar2 default null
924   ,p_pgp_segment16                in     varchar2 default null
925   ,p_pgp_segment17                in     varchar2 default null
926   ,p_pgp_segment18                in     varchar2 default null
927   ,p_pgp_segment19                in     varchar2 default null
928   ,p_pgp_segment20                in     varchar2 default null
929   ,p_pgp_segment21                in     varchar2 default null
930   ,p_pgp_segment22                in     varchar2 default null
931   ,p_pgp_segment23                in     varchar2 default null
932   ,p_pgp_segment24                in     varchar2 default null
933   ,p_pgp_segment25                in     varchar2 default null
934   ,p_pgp_segment26                in     varchar2 default null
935   ,p_pgp_segment27                in     varchar2 default null
936   ,p_pgp_segment28                in     varchar2 default null
937   ,p_pgp_segment29                in     varchar2 default null
938   ,p_pgp_segment30                in     varchar2 default null
939 -- Bug 944911
940 -- Changed this to out
941 -- Added new param p_concat_segments in for non sec asg
942 -- else added p_pgp_concat_segments
943   ,p_pgp_concat_segments	  in     varchar2 default null
944   ,p_contract_id                  in     number default null
945   ,p_establishment_id             in     number default null
946   ,p_collective_agreement_id      in     number default null
947   ,p_cagr_id_flex_num             in     number default null
948   ,p_cag_segment1                 in     varchar2 default null
949   ,p_cag_segment2                 in     varchar2 default null
950   ,p_cag_segment3                 in     varchar2 default null
951   ,p_cag_segment4                 in     varchar2 default null
952   ,p_cag_segment5                 in     varchar2 default null
953   ,p_cag_segment6                 in     varchar2 default null
954   ,p_cag_segment7                 in     varchar2 default null
955   ,p_cag_segment8                 in     varchar2 default null
956   ,p_cag_segment9                 in     varchar2 default null
957   ,p_cag_segment10                in     varchar2 default null
958   ,p_cag_segment11                in     varchar2 default null
959   ,p_cag_segment12                in     varchar2 default null
960   ,p_cag_segment13                in     varchar2 default null
961   ,p_cag_segment14                in     varchar2 default null
962   ,p_cag_segment15                in     varchar2 default null
963   ,p_cag_segment16                in     varchar2 default null
964   ,p_cag_segment17                in     varchar2 default null
965   ,p_cag_segment18                in     varchar2 default null
966   ,p_cag_segment19                in     varchar2 default null
967   ,p_cag_segment20                in     varchar2 default null
968   ,p_notice_period		  in	 number   default null
969   ,p_notice_period_uom		  in     varchar2 default null
970   ,p_employee_category		  in     varchar2 default null
971   ,p_work_at_home		  in	 varchar2 default null
972   ,p_job_post_source_name         in     varchar2 default null
973   ,p_grade_ladder_pgm_id          in     number   default null
974   ,p_supervisor_assignment_id     in     number   default null
975   ,p_group_name                   out nocopy varchar2
976 -- Bug 944911
977 -- Added scl_concat_segments and amended scl_concatenated_segments
978 -- to be an out instead of in out
979 -- Amended this to be p_concatenated_segments
980   ,p_concatenated_segments           out nocopy varchar2
981   ,p_cagr_grade_def_id            in out nocopy number -- bug 2359997
982   ,p_cagr_concatenated_segments      out nocopy varchar2
983   ,p_assignment_id                   out nocopy number
984   ,p_soft_coding_keyflex_id       in out nocopy number -- bug 2359997
985   ,p_people_group_id              in out nocopy number -- bug 2359997
986   ,p_object_version_number           out nocopy number
987   ,p_effective_start_date            out nocopy date
988   ,p_effective_end_date              out nocopy date
989   ,p_assignment_sequence             out nocopy number
990   ,p_comment_id                      out nocopy number
991   ,p_other_manager_warning           out nocopy boolean
992   );
993 --
994 -- ----------------------------------------------------------------------------
995 -- |-------------------------< create_secondary_emp_asg >---------------------|
996 -- ----------------------------------------------------------------------------
997 --
998 -- This version of the API is now out-of-date however it has been provided to
999 -- you for backward compatibility support and will be removed in the future.
1000 -- Oracle recommends you to modify existing calling programs in advance of the
1001 -- support being withdrawn thus avoiding any potential disruption.
1002 --
1003 procedure create_secondary_emp_asg
1004   (p_validate                     in     boolean  default false
1005   ,p_effective_date               in     date
1006   ,p_person_id                    in     number
1007   ,p_organization_id              in     number
1008   ,p_grade_id                     in     number   default null
1009   ,p_position_id                  in     number   default null
1010   ,p_job_id                       in     number   default null
1011   ,p_assignment_status_type_id    in     number   default null
1012   ,p_payroll_id                   in     number   default null
1013   ,p_location_id                  in     number   default null
1014   ,p_supervisor_id                in     number   default null
1015   ,p_special_ceiling_step_id      in     number   default null
1016   ,p_pay_basis_id                 in     number   default null
1017   ,p_assignment_number            in out nocopy varchar2
1018   ,p_change_reason                in     varchar2 default null
1019   ,p_comments                     in     varchar2 default null
1020   ,p_date_probation_end           in     date     default null
1021   ,p_default_code_comb_id         in     number   default null
1022   ,p_employment_category          in     varchar2 default null
1023   ,p_frequency                    in     varchar2 default null
1024   ,p_internal_address_line        in     varchar2 default null
1025   ,p_manager_flag                 in     varchar2 default null
1026   ,p_normal_hours                 in     number   default null
1027   ,p_perf_review_period           in     number   default null
1028   ,p_perf_review_period_frequency in     varchar2 default null
1029   ,p_probation_period             in     number   default null
1030   ,p_probation_unit               in     varchar2 default null
1031   ,p_sal_review_period            in     number   default null
1032   ,p_sal_review_period_frequency  in     varchar2 default null
1033   ,p_set_of_books_id              in     number   default null
1034   ,p_source_type                  in     varchar2 default null
1035   ,p_time_normal_finish           in     varchar2 default null
1036   ,p_time_normal_start            in     varchar2 default null
1037   ,p_bargaining_unit_code         in     varchar2 default null
1038   ,p_labour_union_member_flag     in     varchar2 default 'N'
1039   ,p_hourly_salaried_code         in     varchar2 default null
1040   ,p_ass_attribute_category       in     varchar2 default null
1041   ,p_ass_attribute1               in     varchar2 default null
1042   ,p_ass_attribute2               in     varchar2 default null
1043   ,p_ass_attribute3               in     varchar2 default null
1044   ,p_ass_attribute4               in     varchar2 default null
1045   ,p_ass_attribute5               in     varchar2 default null
1046   ,p_ass_attribute6               in     varchar2 default null
1047   ,p_ass_attribute7               in     varchar2 default null
1048   ,p_ass_attribute8               in     varchar2 default null
1049   ,p_ass_attribute9               in     varchar2 default null
1050   ,p_ass_attribute10              in     varchar2 default null
1051   ,p_ass_attribute11              in     varchar2 default null
1052   ,p_ass_attribute12              in     varchar2 default null
1053   ,p_ass_attribute13              in     varchar2 default null
1054   ,p_ass_attribute14              in     varchar2 default null
1055   ,p_ass_attribute15              in     varchar2 default null
1056   ,p_ass_attribute16              in     varchar2 default null
1057   ,p_ass_attribute17              in     varchar2 default null
1058   ,p_ass_attribute18              in     varchar2 default null
1059   ,p_ass_attribute19              in     varchar2 default null
1060   ,p_ass_attribute20              in     varchar2 default null
1061   ,p_ass_attribute21              in     varchar2 default null
1062   ,p_ass_attribute22              in     varchar2 default null
1063   ,p_ass_attribute23              in     varchar2 default null
1064   ,p_ass_attribute24              in     varchar2 default null
1065   ,p_ass_attribute25              in     varchar2 default null
1066   ,p_ass_attribute26              in     varchar2 default null
1067   ,p_ass_attribute27              in     varchar2 default null
1068   ,p_ass_attribute28              in     varchar2 default null
1069   ,p_ass_attribute29              in     varchar2 default null
1070   ,p_ass_attribute30              in     varchar2 default null
1071   ,p_title                        in     varchar2 default null
1072   ,p_scl_segment1                 in     varchar2 default null
1073   ,p_scl_segment2                 in     varchar2 default null
1074   ,p_scl_segment3                 in     varchar2 default null
1075   ,p_scl_segment4                 in     varchar2 default null
1076   ,p_scl_segment5                 in     varchar2 default null
1077   ,p_scl_segment6                 in     varchar2 default null
1078   ,p_scl_segment7                 in     varchar2 default null
1079   ,p_scl_segment8                 in     varchar2 default null
1080   ,p_scl_segment9                 in     varchar2 default null
1081   ,p_scl_segment10                in     varchar2 default null
1082   ,p_scl_segment11                in     varchar2 default null
1083   ,p_scl_segment12                in     varchar2 default null
1084   ,p_scl_segment13                in     varchar2 default null
1085   ,p_scl_segment14                in     varchar2 default null
1086   ,p_scl_segment15                in     varchar2 default null
1087   ,p_scl_segment16                in     varchar2 default null
1088   ,p_scl_segment17                in     varchar2 default null
1089   ,p_scl_segment18                in     varchar2 default null
1090   ,p_scl_segment19                in     varchar2 default null
1091   ,p_scl_segment20                in     varchar2 default null
1092   ,p_scl_segment21                in     varchar2 default null
1093   ,p_scl_segment22                in     varchar2 default null
1094   ,p_scl_segment23                in     varchar2 default null
1095   ,p_scl_segment24                in     varchar2 default null
1096   ,p_scl_segment25                in     varchar2 default null
1097   ,p_scl_segment26                in     varchar2 default null
1098   ,p_scl_segment27                in     varchar2 default null
1099   ,p_scl_segment28                in     varchar2 default null
1100   ,p_scl_segment29                in     varchar2 default null
1101   ,p_scl_segment30                in     varchar2 default null
1102 -- Bug 944911
1103 -- Added scl_concat_segments and amended scl_concatenated_segments
1104 -- to be an out instead of in out
1105   ,p_scl_concat_segments          in     varchar2 default null
1106   ,p_pgp_segment1                 in     varchar2 default null
1107   ,p_pgp_segment2                 in     varchar2 default null
1108   ,p_pgp_segment3                 in     varchar2 default null
1109   ,p_pgp_segment4                 in     varchar2 default null
1110   ,p_pgp_segment5                 in     varchar2 default null
1111   ,p_pgp_segment6                 in     varchar2 default null
1112   ,p_pgp_segment7                 in     varchar2 default null
1113   ,p_pgp_segment8                 in     varchar2 default null
1114   ,p_pgp_segment9                 in     varchar2 default null
1115   ,p_pgp_segment10                in     varchar2 default null
1116   ,p_pgp_segment11                in     varchar2 default null
1117   ,p_pgp_segment12                in     varchar2 default null
1118   ,p_pgp_segment13                in     varchar2 default null
1119   ,p_pgp_segment14                in     varchar2 default null
1120   ,p_pgp_segment15                in     varchar2 default null
1121   ,p_pgp_segment16                in     varchar2 default null
1122   ,p_pgp_segment17                in     varchar2 default null
1123   ,p_pgp_segment18                in     varchar2 default null
1124   ,p_pgp_segment19                in     varchar2 default null
1125   ,p_pgp_segment20                in     varchar2 default null
1126   ,p_pgp_segment21                in     varchar2 default null
1127   ,p_pgp_segment22                in     varchar2 default null
1128   ,p_pgp_segment23                in     varchar2 default null
1129   ,p_pgp_segment24                in     varchar2 default null
1130   ,p_pgp_segment25                in     varchar2 default null
1131   ,p_pgp_segment26                in     varchar2 default null
1132   ,p_pgp_segment27                in     varchar2 default null
1133   ,p_pgp_segment28                in     varchar2 default null
1134   ,p_pgp_segment29                in     varchar2 default null
1135   ,p_pgp_segment30                in     varchar2 default null
1136 -- Bug 944911
1137 -- Changed this to out
1138 -- Added new param p_concat_segments in for non sec asg
1139 -- else added p_pgp_concat_segments
1140   ,p_pgp_concat_segments	  in     varchar2 default null
1141   ,p_contract_id                  in     number default null
1142   ,p_establishment_id             in     number default null
1143   ,p_collective_agreement_id      in     number default null
1144   ,p_cagr_id_flex_num             in     number default null
1145   ,p_cag_segment1                 in     varchar2 default null
1146   ,p_cag_segment2                 in     varchar2 default null
1147   ,p_cag_segment3                 in     varchar2 default null
1148   ,p_cag_segment4                 in     varchar2 default null
1149   ,p_cag_segment5                 in     varchar2 default null
1150   ,p_cag_segment6                 in     varchar2 default null
1151   ,p_cag_segment7                 in     varchar2 default null
1152   ,p_cag_segment8                 in     varchar2 default null
1153   ,p_cag_segment9                 in     varchar2 default null
1154   ,p_cag_segment10                in     varchar2 default null
1155   ,p_cag_segment11                in     varchar2 default null
1156   ,p_cag_segment12                in     varchar2 default null
1157   ,p_cag_segment13                in     varchar2 default null
1158   ,p_cag_segment14                in     varchar2 default null
1159   ,p_cag_segment15                in     varchar2 default null
1160   ,p_cag_segment16                in     varchar2 default null
1161   ,p_cag_segment17                in     varchar2 default null
1162   ,p_cag_segment18                in     varchar2 default null
1163   ,p_cag_segment19                in     varchar2 default null
1164   ,p_cag_segment20                in     varchar2 default null
1165   ,p_notice_period		  in	 number   default null
1166   ,p_notice_period_uom		  in     varchar2 default null
1167   ,p_employee_category		  in     varchar2 default null
1168   ,p_work_at_home		  in	 varchar2 default null
1169   ,p_job_post_source_name         in     varchar2 default null
1170   ,p_grade_ladder_pgm_id	  in	 number   default null
1171   ,p_supervisor_assignment_id	  in	 number   default null
1172   ,p_group_name                   out nocopy varchar2
1173 -- Bug 944911
1174 -- Added scl_concat_segments and amended scl_concatenated_segments
1175 -- to be an out instead of in out
1176 -- Amended this to be p_concatenated_segments
1177   ,p_concatenated_segments           out nocopy varchar2
1178   ,p_cagr_grade_def_id            in out nocopy number  -- bug 2359997
1179   ,p_cagr_concatenated_segments      out nocopy varchar2
1180   ,p_assignment_id                   out nocopy number
1181   ,p_soft_coding_keyflex_id       in out nocopy number  -- bug 2359997
1182   ,p_people_group_id              in out nocopy number  -- bug 2359997
1183   ,p_object_version_number           out nocopy number
1184   ,p_effective_start_date            out nocopy date
1185   ,p_effective_end_date              out nocopy date
1186   ,p_assignment_sequence             out nocopy number
1187   ,p_comment_id                      out nocopy number
1188   ,p_other_manager_warning           out nocopy boolean
1189   ,p_hourly_salaried_warning         out nocopy boolean
1190   );
1191 --
1192 -- ----------------------------------------------------------------------------
1193 -- |-------------------------< create_secondary_emp_asg >---------------------|
1194 -- ----------------------------------------------------------------------------
1195 --
1196 -- {Start Of Comments}
1197 /*#
1198  * This API creates a new secondary assignment for an employee.
1199  *
1200  * This API cannot create a primary assignment.
1201  *
1202  * <p><b>Licensing</b><br>
1203  * This API is licensed for use with Human Resources.
1204  *
1205  * <p><b>Prerequisites</b><br>
1206  * The person and organization must exist at the effective start date of the
1207  * assignment.
1208  *
1209  * <p><b>Post Success</b><br>
1210  * A new secondary assignment is created for the employee
1211  *
1212  * <p><b>Post Failure</b><br>
1213  * The API does not create the secondary assignment and raises an error.
1214  * @param p_validate If true, then validation alone will be performed and the
1215  * database will remain unchanged. If false and all validation checks pass,
1216  * then the database will be modified.
1217  * @param p_effective_date Determines when the DateTrack operation comes into
1218  * force.
1219  * @param p_person_id Identifies the person for whom you create the secondary
1220  * assignment record
1221  * @param p_organization_id Identifies the organization of the secondary
1222  * assignment
1223  * @param p_grade_id Identifies the grade of the secondary assignment
1224  * @param p_position_id Identifies the position of the secondary assignment
1225  * @param p_job_id Identifies the job of the secondary assignment
1226  * @param p_assignment_status_type_id Identifies the assignment status of the
1227  * secondary assignment.
1228  * @param p_payroll_id Identifies the payroll for the secondary assignment
1229  * @param p_location_id Identifies the location of the secondary assignment
1230  * @param p_supervisor_id Identifies the supervisor for the secondary
1231  * assignment. The value refers to the supervisor's person record.
1232  * @param p_special_ceiling_step_id Highest allowed step for the grade scale
1233  * associated with the grade of the secondary assignment.
1234  * @param p_pay_basis_id Salary basis for the secondary assignment
1235  * @param p_assignment_number If a value is passed in, this is used as the
1236  * assignment number. If no value is passed in an assignment number is
1237  * generated.
1238  * @param p_change_reason Reason for the assignment status change. If there is
1239  * no change reason the parameter can be null. Valid values are defined in the
1240  * EMP_ASSIGN_REASON lookup type.
1241  * @param p_comments Comment text.
1242  * @param p_date_probation_end End date of probation period
1243  * @param p_default_code_comb_id Identifier for the General Ledger Accounting
1244  * Flexfield combination that applies to this assignment
1245  * @param p_employment_category Employment category. Valid values are defined
1246  * in the EMP_CAT lookup type.
1247  * @param p_frequency Frequency associated with the defined normal working
1248  * hours. Valid values are defined in the FREQUENCY lookup type.
1249  * @param p_internal_address_line Internal address identified with the
1250  * secondary assignment.
1251  * @param p_manager_flag Indicates whether the employee is a manager
1252  * @param p_normal_hours Normal working hours for this assignment
1253  * @param p_perf_review_period Length of performance review period.
1254  * @param p_perf_review_period_frequency Units of performance review period.
1255  * Valid values are defined in the FREQUENCY lookup type.
1256  * @param p_probation_period Length of probation period
1257  * @param p_probation_unit Units of probation period. Valid values are defined
1258  * in the QUALIFYING_UNITS lookup type.
1259  * @param p_sal_review_period Length of salary review period
1260  * @param p_sal_review_period_frequency Units of salary review period. Valid
1261  * values are defined in the FREQUENCY lookup type.
1262  * @param p_set_of_books_id Identifies General Ledger set of books.
1263  * @param p_source_type Recruitment activity which this assignment is sourced
1264  * from. Valid values are defined in the REC_TYPE lookup type.
1265  * @param p_time_normal_finish Normal work finish time
1266  * @param p_time_normal_start Normal work start time
1267  * @param p_bargaining_unit_code Code for bargaining unit. Valid values are
1268  * defined in the BARGAINING_UNIT_CODE lookup type.
1269  * @param p_labour_union_member_flag Value 'Y' indicates employee is a labour
1270  * union member. Other values indicate not a member.
1271  * @param p_hourly_salaried_code Identifies if the assignment is paid hourly or
1272  * is salaried. Valid values defined in the HOURLY_SALARIED_CODE lookup type.
1273  * @param p_ass_attribute_category This context value determines which
1274  * Flexfield Structure to use with the Descriptive flexfield segments.
1275  * @param p_ass_attribute1 Descriptive flexfield segment
1276  * @param p_ass_attribute2 Descriptive flexfield segment
1277  * @param p_ass_attribute3 Descriptive flexfield segment
1278  * @param p_ass_attribute4 Descriptive flexfield segment
1279  * @param p_ass_attribute5 Descriptive flexfield segment
1280  * @param p_ass_attribute6 Descriptive flexfield segment
1281  * @param p_ass_attribute7 Descriptive flexfield segment
1282  * @param p_ass_attribute8 Descriptive flexfield segment
1283  * @param p_ass_attribute9 Descriptive flexfield segment
1284  * @param p_ass_attribute10 Descriptive flexfield segment
1285  * @param p_ass_attribute11 Descriptive flexfield segment
1286  * @param p_ass_attribute12 Descriptive flexfield segment
1287  * @param p_ass_attribute13 Descriptive flexfield segment
1288  * @param p_ass_attribute14 Descriptive flexfield segment
1289  * @param p_ass_attribute15 Descriptive flexfield segment
1290  * @param p_ass_attribute16 Descriptive flexfield segment
1291  * @param p_ass_attribute17 Descriptive flexfield segment
1292  * @param p_ass_attribute18 Descriptive flexfield segment
1293  * @param p_ass_attribute19 Descriptive flexfield segment
1294  * @param p_ass_attribute20 Descriptive flexfield segment
1295  * @param p_ass_attribute21 Descriptive flexfield segment
1296  * @param p_ass_attribute22 Descriptive flexfield segment
1297  * @param p_ass_attribute23 Descriptive flexfield segment
1298  * @param p_ass_attribute24 Descriptive flexfield segment
1299  * @param p_ass_attribute25 Descriptive flexfield segment
1300  * @param p_ass_attribute26 Descriptive flexfield segment
1301  * @param p_ass_attribute27 Descriptive flexfield segment
1302  * @param p_ass_attribute28 Descriptive flexfield segment
1303  * @param p_ass_attribute29 Descriptive flexfield segment
1304  * @param p_ass_attribute30 Descriptive flexfield segment
1305  * @param p_title Obsolete parameter, do not use.
1306  * @param p_scl_segment1 Soft Coded key flexfield segment
1307  * @param p_scl_segment2 Soft Coded key flexfield segment
1308  * @param p_scl_segment3 Soft Coded key flexfield segment
1309  * @param p_scl_segment4 Soft Coded key flexfield segment
1310  * @param p_scl_segment5 Soft Coded key flexfield segment
1311  * @param p_scl_segment6 Soft Coded key flexfield segment
1312  * @param p_scl_segment7 Soft Coded key flexfield segment
1313  * @param p_scl_segment8 Soft Coded key flexfield segment
1314  * @param p_scl_segment9 Soft Coded key flexfield segment
1315  * @param p_scl_segment10 Soft Coded key flexfield segment
1316  * @param p_scl_segment11 Soft Coded key flexfield segment
1317  * @param p_scl_segment12 Soft Coded key flexfield segment
1318  * @param p_scl_segment13 Soft Coded key flexfield segment
1319  * @param p_scl_segment14 Soft Coded key flexfield segment
1320  * @param p_scl_segment15 Soft Coded key flexfield segment
1321  * @param p_scl_segment16 Soft Coded key flexfield segment
1322  * @param p_scl_segment17 Soft Coded key flexfield segment
1323  * @param p_scl_segment18 Soft Coded key flexfield segment
1324  * @param p_scl_segment19 Soft Coded key flexfield segment
1325  * @param p_scl_segment20 Soft Coded key flexfield segment
1326  * @param p_scl_segment21 Soft Coded key flexfield segment
1327  * @param p_scl_segment22 Soft Coded key flexfield segment
1328  * @param p_scl_segment23 Soft Coded key flexfield segment
1329  * @param p_scl_segment24 Soft Coded key flexfield segment
1330  * @param p_scl_segment25 Soft Coded key flexfield segment
1331  * @param p_scl_segment26 Soft Coded key flexfield segment
1332  * @param p_scl_segment27 Soft Coded key flexfield segment
1333  * @param p_scl_segment28 Soft Coded key flexfield segment
1334  * @param p_scl_segment29 Soft Coded key flexfield segment
1335  * @param p_scl_segment30 Soft Coded key flexfield segment
1336  * @param p_scl_concat_segments Concatenated segments for Soft Coded Key
1337  * Flexfield. Concatenated segments can be supplied instead of individual
1338  * segments.
1339  * @param p_pgp_segment1 People group key flexfield segment
1340  * @param p_pgp_segment2 People group key flexfield segment
1341  * @param p_pgp_segment3 People group key flexfield segment
1342  * @param p_pgp_segment4 People group key flexfield segment
1343  * @param p_pgp_segment5 People group key flexfield segment
1344  * @param p_pgp_segment6 People group key flexfield segment
1345  * @param p_pgp_segment7 People group key flexfield segment
1346  * @param p_pgp_segment8 People group key flexfield segment
1347  * @param p_pgp_segment9 People group key flexfield segment
1348  * @param p_pgp_segment10 People group key flexfield segment
1349  * @param p_pgp_segment11 People group key flexfield segment
1350  * @param p_pgp_segment12 People group key flexfield segment
1351  * @param p_pgp_segment13 People group key flexfield segment
1352  * @param p_pgp_segment14 People group key flexfield segment
1353  * @param p_pgp_segment15 People group key flexfield segment
1354  * @param p_pgp_segment16 People group key flexfield segment
1355  * @param p_pgp_segment17 People group key flexfield segment
1356  * @param p_pgp_segment18 People group key flexfield segment
1357  * @param p_pgp_segment19 People group key flexfield segment
1358  * @param p_pgp_segment20 People group key flexfield segment
1359  * @param p_pgp_segment21 People group key flexfield segment
1360  * @param p_pgp_segment22 People group key flexfield segment
1361  * @param p_pgp_segment23 People group key flexfield segment
1362  * @param p_pgp_segment24 People group key flexfield segment
1363  * @param p_pgp_segment25 People group key flexfield segment
1364  * @param p_pgp_segment26 People group key flexfield segment
1365  * @param p_pgp_segment27 People group key flexfield segment
1366  * @param p_pgp_segment28 People group key flexfield segment
1367  * @param p_pgp_segment29 People group key flexfield segment
1368  * @param p_pgp_segment30 People group key flexfield segment
1369  * @param p_pgp_concat_segments Concatenated segments for People Group Key
1370  * Flexfield. Concatenated segments can be supplied instead of individual
1371  * segments.
1372  * @param p_contract_id Contract associated with this assignment
1373  * @param p_establishment_id For French business groups, this identifies the
1374  * Establishment Legal Entity for this assignment.
1375  * @param p_collective_agreement_id Collective Agreement that applies to this
1376  * assignment
1377  * @param p_cagr_id_flex_num Identifier for the structure from CAGR Key
1378  * flexfield to use for this assignment
1379  * @param p_cag_segment1 CAGR Key Flexfield segment
1380  * @param p_cag_segment2 CAGR Key Flexfield segment
1381  * @param p_cag_segment3 CAGR Key Flexfield segment
1382  * @param p_cag_segment4 CAGR Key Flexfield segment
1383  * @param p_cag_segment5 CAGR Key Flexfield segment
1384  * @param p_cag_segment6 CAGR Key Flexfield segment
1385  * @param p_cag_segment7 CAGR Key Flexfield segment
1386  * @param p_cag_segment8 CAGR Key Flexfield segment
1387  * @param p_cag_segment9 CAGR Key Flexfield segment
1388  * @param p_cag_segment10 CAGR Key Flexfield segment
1389  * @param p_cag_segment11 CAGR Key Flexfield segment
1390  * @param p_cag_segment12 CAGR Key Flexfield segment
1391  * @param p_cag_segment13 CAGR Key Flexfield segment
1392  * @param p_cag_segment14 CAGR Key Flexfield segment
1393  * @param p_cag_segment15 CAGR Key Flexfield segment
1394  * @param p_cag_segment16 CAGR Key Flexfield segment
1395  * @param p_cag_segment17 CAGR Key Flexfield segment
1396  * @param p_cag_segment18 CAGR Key Flexfield segment
1397  * @param p_cag_segment19 CAGR Key Flexfield segment
1398  * @param p_cag_segment20 CAGR Key Flexfield segment
1399  * @param p_notice_period Length of notice period
1400  * @param p_notice_period_uom Units for notice period. Valid values are defined
1401  * in the QUALIFYING_UNITS lookup type.
1402  * @param p_employee_category Employee Category. Valid values are defined in
1403  * the EMPLOYEE_CATG lookup type.
1404  * @param p_work_at_home Indicate whether this assignment is to work at home.
1405  * Valid values are defined in the YES_NO lookup type.
1406  * @param p_job_post_source_name The source of the job posting that was
1407  * answered for this assignment.
1408  * @param p_grade_ladder_pgm_id Grade Ladder for this assignment
1409  * @param p_supervisor_assignment_id Supervisor's assignment that is
1410  * responsible for supervising this assignment.
1411  * @param p_group_name If p_validate is false, set to the People Group Key
1412  * Flexfield concatenated segments. If p_validate is true, set to null.
1413  * @param p_concatenated_segments If p_validate is false, set to Soft Coded Key
1414  * Flexfield concatenated segments, if p_validate is true, set to null.
1415  * @param p_cagr_grade_def_id If a value is passed in for this parameter, it
1416  * identifies an existing CAGR Key Flexfield combination to associate with the
1417  * assignment, and segment values are ignored. If a value is not passed in,
1418  * then the individual CAGR Key Flexfield segments supplied will be used to
1419  * choose an existing combination or create a new combination. When the API
1420  * completes, if p_validate is false, then this uniquely identifies the
1421  * associated combination of the CAGR Key flexfield for this assignment. If
1422  * p_validate is true, then set to null.
1423  * @param p_cagr_concatenated_segments CAGR Key Flexfield concatenated segments
1424  * @param p_assignment_id If p_validate is false, then this uniquely identifies
1425  * the created assignment. If p_validate is true, then set to null.
1426  * @param p_soft_coding_keyflex_id If a value is passed in for this parameter,
1427  * it identifies an existing Soft Coded Key Flexfield combination to associate
1428  * with the assignment, and segment values are ignored. If a value is not
1429  * passed in, then the individual Soft Coded Key Flexfield segments supplied
1430  * will be used to choose an existing combination or create a new combination.
1431  * When the API completes, if p_validate is false, then this uniquely
1432  * identifies the associated combination of the Soft Coded Key flexfield for
1433  * this assignment. If p_validate is true, then set to null.
1434  * @param p_people_group_id If a value is passed in for this parameter, it
1435  * identifies an existing People Group Key Flexfield combination to associate
1436  * with the assignment, and segment values are ignored. If a value is not
1437  * passed in, then the individual People Group Key Flexfield segments supplied
1438  * will be used to choose an existing combination or create a new combination.
1439  * When the API completes, if p_validate is false, then this uniquely
1440  * identifies the associated combination of the People Group Key flexfield for
1441  * this assignment. If p_validate is true, then set to null.
1442  * @param p_object_version_number If p_validate is false, then set to the
1443  * version number of the created assignment. If p_validate is true, then the
1444  * value will be null.
1445  * @param p_effective_start_date If p_validate is false, then set to the
1446  * earliest effective start date for the created assignment. If p_validate is
1447  * true, then set to null.
1448  * @param p_effective_end_date If p_validate is false, then set to the
1449  * effective end date for the created assignment. If p_validate is true, then
1450  * set to null.
1451  * @param p_assignment_sequence If p_validate is false, then an automatically
1452  * incremented number is associated with this assignment, depending on the
1453  * number of assignment which already exist. If p_validate is true then set to
1454  * null.
1455  * @param p_comment_id If p_validate is false and comment text was provided,
1456  * then will be set to the identifier of the created assignment comment record.
1457  * If p_validate is true or no comment text was provided, then will be null.
1458  * @param p_other_manager_warning If set to true, then a manager existed in the
1459  * organization prior to calling this API and the manager flag has been set to
1460  * 'Y' for yes.
1461  * @param p_hourly_salaried_warning Set to true if values entered for Salary
1462  * Basis and Hourly Salaried Code are invalid as of p_effective_date.
1463  * @param p_gsp_post_process_warning Set to the name of a warning message from
1464  * the Message Dictionary if any Grade Ladder related errors have been
1465  * encountered while running this API.
1466  * @rep:displayname Create Secondary Employee Assignment
1467  * @rep:category BUSINESS_ENTITY PER_EMPLOYEE_ASG
1468  * @rep:category MISC_EXTENSIONS HR_DATAPUMP
1469  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
1470  * @rep:scope public
1471  * @rep:lifecycle active
1472  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
1473 */
1474 --
1475 -- {End Of Comments}
1476 --
1477 procedure create_secondary_emp_asg
1478   (p_validate                     in     boolean  default false
1479   ,p_effective_date               in     date
1480   ,p_person_id                    in     number
1481   ,p_organization_id              in     number
1482   ,p_grade_id                     in     number   default null
1483   ,p_position_id                  in     number   default null
1484   ,p_job_id                       in     number   default null
1485   ,p_assignment_status_type_id    in     number   default null
1486   ,p_payroll_id                   in     number   default null
1487   ,p_location_id                  in     number   default null
1488   ,p_supervisor_id                in     number   default null
1489   ,p_special_ceiling_step_id      in     number   default null
1490   ,p_pay_basis_id                 in     number   default null
1491   ,p_assignment_number            in out nocopy varchar2
1492   ,p_change_reason                in     varchar2 default null
1493   ,p_comments                     in     varchar2 default null
1494   ,p_date_probation_end           in     date     default null
1495   ,p_default_code_comb_id         in     number   default null
1496   ,p_employment_category          in     varchar2 default null
1497   ,p_frequency                    in     varchar2 default null
1498   ,p_internal_address_line        in     varchar2 default null
1499   ,p_manager_flag                 in     varchar2 default null
1500   ,p_normal_hours                 in     number   default null
1501   ,p_perf_review_period           in     number   default null
1502   ,p_perf_review_period_frequency in     varchar2 default null
1503   ,p_probation_period             in     number   default null
1504   ,p_probation_unit               in     varchar2 default null
1505   ,p_sal_review_period            in     number   default null
1506   ,p_sal_review_period_frequency  in     varchar2 default null
1507   ,p_set_of_books_id              in     number   default null
1508   ,p_source_type                  in     varchar2 default null
1509   ,p_time_normal_finish           in     varchar2 default null
1510   ,p_time_normal_start            in     varchar2 default null
1511   ,p_bargaining_unit_code         in     varchar2 default null
1512   ,p_labour_union_member_flag     in     varchar2 default 'N'
1513   ,p_hourly_salaried_code         in     varchar2 default null
1514   ,p_ass_attribute_category       in     varchar2 default null
1515   ,p_ass_attribute1               in     varchar2 default null
1516   ,p_ass_attribute2               in     varchar2 default null
1517   ,p_ass_attribute3               in     varchar2 default null
1518   ,p_ass_attribute4               in     varchar2 default null
1519   ,p_ass_attribute5               in     varchar2 default null
1520   ,p_ass_attribute6               in     varchar2 default null
1521   ,p_ass_attribute7               in     varchar2 default null
1522   ,p_ass_attribute8               in     varchar2 default null
1523   ,p_ass_attribute9               in     varchar2 default null
1524   ,p_ass_attribute10              in     varchar2 default null
1525   ,p_ass_attribute11              in     varchar2 default null
1526   ,p_ass_attribute12              in     varchar2 default null
1527   ,p_ass_attribute13              in     varchar2 default null
1528   ,p_ass_attribute14              in     varchar2 default null
1529   ,p_ass_attribute15              in     varchar2 default null
1530   ,p_ass_attribute16              in     varchar2 default null
1531   ,p_ass_attribute17              in     varchar2 default null
1532   ,p_ass_attribute18              in     varchar2 default null
1533   ,p_ass_attribute19              in     varchar2 default null
1534   ,p_ass_attribute20              in     varchar2 default null
1535   ,p_ass_attribute21              in     varchar2 default null
1536   ,p_ass_attribute22              in     varchar2 default null
1537   ,p_ass_attribute23              in     varchar2 default null
1538   ,p_ass_attribute24              in     varchar2 default null
1539   ,p_ass_attribute25              in     varchar2 default null
1540   ,p_ass_attribute26              in     varchar2 default null
1541   ,p_ass_attribute27              in     varchar2 default null
1542   ,p_ass_attribute28              in     varchar2 default null
1543   ,p_ass_attribute29              in     varchar2 default null
1544   ,p_ass_attribute30              in     varchar2 default null
1545   ,p_title                        in     varchar2 default null
1546   ,p_scl_segment1                 in     varchar2 default null
1547   ,p_scl_segment2                 in     varchar2 default null
1548   ,p_scl_segment3                 in     varchar2 default null
1549   ,p_scl_segment4                 in     varchar2 default null
1550   ,p_scl_segment5                 in     varchar2 default null
1551   ,p_scl_segment6                 in     varchar2 default null
1552   ,p_scl_segment7                 in     varchar2 default null
1553   ,p_scl_segment8                 in     varchar2 default null
1554   ,p_scl_segment9                 in     varchar2 default null
1555   ,p_scl_segment10                in     varchar2 default null
1556   ,p_scl_segment11                in     varchar2 default null
1557   ,p_scl_segment12                in     varchar2 default null
1558   ,p_scl_segment13                in     varchar2 default null
1559   ,p_scl_segment14                in     varchar2 default null
1560   ,p_scl_segment15                in     varchar2 default null
1561   ,p_scl_segment16                in     varchar2 default null
1562   ,p_scl_segment17                in     varchar2 default null
1563   ,p_scl_segment18                in     varchar2 default null
1564   ,p_scl_segment19                in     varchar2 default null
1565   ,p_scl_segment20                in     varchar2 default null
1566   ,p_scl_segment21                in     varchar2 default null
1567   ,p_scl_segment22                in     varchar2 default null
1568   ,p_scl_segment23                in     varchar2 default null
1569   ,p_scl_segment24                in     varchar2 default null
1570   ,p_scl_segment25                in     varchar2 default null
1571   ,p_scl_segment26                in     varchar2 default null
1572   ,p_scl_segment27                in     varchar2 default null
1573   ,p_scl_segment28                in     varchar2 default null
1574   ,p_scl_segment29                in     varchar2 default null
1575   ,p_scl_segment30                in     varchar2 default null
1576 -- Bug 944911
1577 -- Added scl_concat_segments and amended scl_concatenated_segments
1578 -- to be an out instead of in out
1579   ,p_scl_concat_segments          in     varchar2 default null
1580   ,p_pgp_segment1                 in     varchar2 default null
1581   ,p_pgp_segment2                 in     varchar2 default null
1582   ,p_pgp_segment3                 in     varchar2 default null
1583   ,p_pgp_segment4                 in     varchar2 default null
1584   ,p_pgp_segment5                 in     varchar2 default null
1585   ,p_pgp_segment6                 in     varchar2 default null
1586   ,p_pgp_segment7                 in     varchar2 default null
1587   ,p_pgp_segment8                 in     varchar2 default null
1588   ,p_pgp_segment9                 in     varchar2 default null
1589   ,p_pgp_segment10                in     varchar2 default null
1590   ,p_pgp_segment11                in     varchar2 default null
1591   ,p_pgp_segment12                in     varchar2 default null
1592   ,p_pgp_segment13                in     varchar2 default null
1593   ,p_pgp_segment14                in     varchar2 default null
1594   ,p_pgp_segment15                in     varchar2 default null
1595   ,p_pgp_segment16                in     varchar2 default null
1596   ,p_pgp_segment17                in     varchar2 default null
1597   ,p_pgp_segment18                in     varchar2 default null
1598   ,p_pgp_segment19                in     varchar2 default null
1599   ,p_pgp_segment20                in     varchar2 default null
1600   ,p_pgp_segment21                in     varchar2 default null
1601   ,p_pgp_segment22                in     varchar2 default null
1602   ,p_pgp_segment23                in     varchar2 default null
1603   ,p_pgp_segment24                in     varchar2 default null
1604   ,p_pgp_segment25                in     varchar2 default null
1605   ,p_pgp_segment26                in     varchar2 default null
1606   ,p_pgp_segment27                in     varchar2 default null
1607   ,p_pgp_segment28                in     varchar2 default null
1608   ,p_pgp_segment29                in     varchar2 default null
1609   ,p_pgp_segment30                in     varchar2 default null
1610 -- Bug 944911
1611 -- Changed this to out
1612 -- Added new param p_concat_segments in for non sec asg
1613 -- else added p_pgp_concat_segments
1614   ,p_pgp_concat_segments	  in     varchar2 default null
1615   ,p_contract_id                  in     number default null
1616   ,p_establishment_id             in     number default null
1617   ,p_collective_agreement_id      in     number default null
1618   ,p_cagr_id_flex_num             in     number default null
1619   ,p_cag_segment1                 in     varchar2 default null
1620   ,p_cag_segment2                 in     varchar2 default null
1621   ,p_cag_segment3                 in     varchar2 default null
1622   ,p_cag_segment4                 in     varchar2 default null
1623   ,p_cag_segment5                 in     varchar2 default null
1624   ,p_cag_segment6                 in     varchar2 default null
1625   ,p_cag_segment7                 in     varchar2 default null
1626   ,p_cag_segment8                 in     varchar2 default null
1627   ,p_cag_segment9                 in     varchar2 default null
1628   ,p_cag_segment10                in     varchar2 default null
1629   ,p_cag_segment11                in     varchar2 default null
1630   ,p_cag_segment12                in     varchar2 default null
1631   ,p_cag_segment13                in     varchar2 default null
1632   ,p_cag_segment14                in     varchar2 default null
1633   ,p_cag_segment15                in     varchar2 default null
1634   ,p_cag_segment16                in     varchar2 default null
1635   ,p_cag_segment17                in     varchar2 default null
1636   ,p_cag_segment18                in     varchar2 default null
1637   ,p_cag_segment19                in     varchar2 default null
1638   ,p_cag_segment20                in     varchar2 default null
1639   ,p_notice_period		  in	 number   default null
1640   ,p_notice_period_uom		  in     varchar2 default null
1641   ,p_employee_category		  in     varchar2 default null
1642   ,p_work_at_home		  in	 varchar2 default null
1643   ,p_job_post_source_name         in     varchar2 default null
1644   ,p_grade_ladder_pgm_id	  in	 number   default null
1645   ,p_supervisor_assignment_id	  in	 number   default null
1646   ,p_group_name                   out nocopy varchar2
1647 -- Bug 944911
1648 -- Added scl_concat_segments and amended scl_concatenated_segments
1649 -- to be an out instead of in out
1650 -- Amended this to be p_concatenated_segments
1651   ,p_concatenated_segments           out nocopy varchar2
1652   ,p_cagr_grade_def_id            in out nocopy number  -- bug 2359997
1653   ,p_cagr_concatenated_segments      out nocopy varchar2
1654   ,p_assignment_id                   out nocopy number
1655   ,p_soft_coding_keyflex_id       in out nocopy number  -- bug 2359997
1656   ,p_people_group_id              in out nocopy number  -- bug 2359997
1657   ,p_object_version_number           out nocopy number
1658   ,p_effective_start_date            out nocopy date
1659   ,p_effective_end_date              out nocopy date
1660   ,p_assignment_sequence             out nocopy number
1661   ,p_comment_id                      out nocopy number
1662   ,p_other_manager_warning           out nocopy boolean
1663   ,p_hourly_salaried_warning         out nocopy boolean
1664   ,p_gsp_post_process_warning        out nocopy varchar2
1665   );
1666 --
1667 -- ----------------------------------------------------------------------------
1668 -- |-------------------------< create_secondary_cwk_asg >---------------------|
1669 -- ----------------------------------------------------------------------------
1670 --
1671 -- {Start Of Comments}
1672 /*#
1673  * This API creates a new secondary assignment for a contingent worker.
1674  *
1675  * This API cannot create a primary assignment
1676  *
1677  * <p><b>Licensing</b><br>
1678  * This API is licensed for use with Human Resources.
1679  *
1680  * <p><b>Prerequisites</b><br>
1681  * The person and organization must exist at the effective start date of the
1682  * assignment.
1683  *
1684  * <p><b>Post Success</b><br>
1685  * A new secondary assignment is created for the contingent worker
1686  *
1687  * <p><b>Post Failure</b><br>
1688  * The API does not create the secondary assignment and raises an error.
1689  * @param p_validate If true, then validation alone will be performed and the
1690  * database will remain unchanged. If false and all validation checks pass,
1691  * then the database will be modified.
1692  * @param p_effective_date Determines when the DateTrack operation comes into
1693  * force.
1694  * @param p_business_group_id The business group associated with this
1695  * assignment. This should be the same as the business group associated with
1696  * the contingent worker
1697  * @param p_person_id Identifies the person for whom you create the secondary
1698  * assignment record
1699  * @param p_organization_id Identifies the organization of the secondary
1700  * assignment
1701  * @param p_assignment_number If a value is passed in, this is used as the
1702  * assignment number. If no value is passed in an assignment number is
1703  * generated.
1704  * @param p_assignment_category Identifies the assignment category for the
1705  * secondary contingent worker assignment. Valid values are defined in the
1706  * CWK_ASG_CATEGORY lookup type.
1707  * @param p_assignment_status_type_id Identifies the assignment status for the
1708  * secondary assignment.
1709  * @param p_change_reason Reason for the assignment status change. If there is
1710  * no change reason the parameter can be null. Valid values are defined in the
1711  * CWK_ASSIGN_REASON lookup_type.
1712  * @param p_comments Comment text.
1713  * @param p_default_code_comb_id Identifier for the General Ledger Accounting
1714  * Flexfield combination which applies to this assignment
1715  * @param p_establishment_id For French business groups, this identifies the
1716  * Establishment Legal Entity for this assignment.
1717  * @param p_frequency Frequency associated with the defined normal working
1718  * hours. Valid values are defined in the FREQUENCY lookup type.
1719  * @param p_internal_address_line Internal address identified with this
1720  * assignment.
1721  * @param p_job_id Identifies the job of the secondary assignment
1722  * @param p_labour_union_member_flag Value 'Y' indicates employee is a labour
1723  * union member. Other values indicate not a member.
1724  * @param p_location_id Identifies the location of the secondary assignment
1725  * @param p_manager_flag Indicates whether the contingent worker is a manager
1726  * @param p_normal_hours Normal working hours for this assignment
1727  * @param p_position_id Identifies the position of the secondary assignment
1728  * @param p_grade_id Identifies the grade of the secondary assignment
1729  * @param p_project_title Name of the project for which the contingent worker
1730  * is engaged on this assignment.
1731  * @param p_set_of_books_id Identifies General Ledger set of books.
1732  * @param p_source_type Recruitment activity that this assignment is sourced
1733  * from. Valid values are defined in the REC_TYPE lookup type.
1734  * @param p_supervisor_id Supervisor for this assignment. The value refers to
1735  * the supervisor's person record.
1736  * @param p_time_normal_finish Normal work finish time
1737  * @param p_time_normal_start Normal work start time
1738  * @param p_title Obsolete parameter, do not use.
1739  * @param p_vendor_assignment_number Identification number given by the
1740  * supplier to the contingent worker's assignment
1741  * @param p_vendor_employee_number Identification number given by the supplier
1742  * to the contingent worker
1743  * @param p_vendor_id Identifier of the Supplier of the contingent worker from
1744  * iProcurement
1745  * @param p_vendor_site_id Identifier of the Supplier site of the contingent
1746  * worker from iProcurement
1747  * @param p_po_header_id Identifier of the Purchase Order under which this
1748  * contingent workers assignment is being paid, from iProcurement
1749  * @param p_po_line_id Identifier of the Purchase Order Line under which this
1750  * contingent worker's assignment is being paid, from iProcurement
1751  * @param p_projected_assignment_end Projected end date of this assignment.
1752  * @param p_attribute_category This context value determines which flexfield
1753  * structure to use with the descriptive flexfield segments.
1754  * @param p_attribute1 Descriptive flexfield segment.
1755  * @param p_attribute2 Descriptive flexfield segment.
1756  * @param p_attribute3 Descriptive flexfield segment.
1757  * @param p_attribute4 Descriptive flexfield segment.
1758  * @param p_attribute5 Descriptive flexfield segment.
1759  * @param p_attribute6 Descriptive flexfield segment.
1760  * @param p_attribute7 Descriptive flexfield segment.
1761  * @param p_attribute8 Descriptive flexfield segment.
1762  * @param p_attribute9 Descriptive flexfield segment.
1763  * @param p_attribute10 Descriptive flexfield segment.
1764  * @param p_attribute11 Descriptive flexfield segment.
1765  * @param p_attribute12 Descriptive flexfield segment.
1766  * @param p_attribute13 Descriptive flexfield segment.
1767  * @param p_attribute14 Descriptive flexfield segment.
1768  * @param p_attribute15 Descriptive flexfield segment.
1769  * @param p_attribute16 Descriptive flexfield segment.
1770  * @param p_attribute17 Descriptive flexfield segment.
1771  * @param p_attribute18 Descriptive flexfield segment.
1772  * @param p_attribute19 Descriptive flexfield segment.
1773  * @param p_attribute20 Descriptive flexfield segment.
1774  * @param p_attribute21 Descriptive flexfield segment.
1775  * @param p_attribute22 Descriptive flexfield segment.
1776  * @param p_attribute23 Descriptive flexfield segment.
1777  * @param p_attribute24 Descriptive flexfield segment.
1778  * @param p_attribute25 Descriptive flexfield segment.
1779  * @param p_attribute26 Descriptive flexfield segment.
1780  * @param p_attribute27 Descriptive flexfield segment.
1781  * @param p_attribute28 Descriptive flexfield segment.
1782  * @param p_attribute29 Descriptive flexfield segment.
1783  * @param p_attribute30 Descriptive flexfield segment.
1784  * @param p_pgp_segment1 People group key flexfield segment
1785  * @param p_pgp_segment2 People group key flexfield segment
1786  * @param p_pgp_segment3 People group key flexfield segment
1787  * @param p_pgp_segment4 People group key flexfield segment
1788  * @param p_pgp_segment5 People group key flexfield segment
1789  * @param p_pgp_segment6 People group key flexfield segment
1790  * @param p_pgp_segment7 People group key flexfield segment
1791  * @param p_pgp_segment8 People group key flexfield segment
1792  * @param p_pgp_segment9 People group key flexfield segment
1793  * @param p_pgp_segment10 People group key flexfield segment
1794  * @param p_pgp_segment11 People group key flexfield segment
1795  * @param p_pgp_segment12 People group key flexfield segment
1796  * @param p_pgp_segment13 People group key flexfield segment
1797  * @param p_pgp_segment14 People group key flexfield segment
1798  * @param p_pgp_segment15 People group key flexfield segment
1799  * @param p_pgp_segment16 People group key flexfield segment
1800  * @param p_pgp_segment17 People group key flexfield segment
1801  * @param p_pgp_segment18 People group key flexfield segment
1802  * @param p_pgp_segment19 People group key flexfield segment
1803  * @param p_pgp_segment20 People group key flexfield segment
1804  * @param p_pgp_segment21 People group key flexfield segment
1805  * @param p_pgp_segment22 People group key flexfield segment
1806  * @param p_pgp_segment23 People group key flexfield segment
1807  * @param p_pgp_segment24 People group key flexfield segment
1808  * @param p_pgp_segment25 People group key flexfield segment
1809  * @param p_pgp_segment26 People group key flexfield segment
1810  * @param p_pgp_segment27 People group key flexfield segment
1811  * @param p_pgp_segment28 People group key flexfield segment
1812  * @param p_pgp_segment29 People group key flexfield segment
1813  * @param p_pgp_segment30 People group key flexfield segment
1814  * @param p_scl_segment1 Soft Coded key flexfield segment
1815  * @param p_scl_segment2 Soft Coded key flexfield segment
1816  * @param p_scl_segment3 Soft Coded key flexfield segment
1817  * @param p_scl_segment4 Soft Coded key flexfield segment
1818  * @param p_scl_segment5 Soft Coded key flexfield segment
1819  * @param p_scl_segment6 Soft Coded key flexfield segment
1820  * @param p_scl_segment7 Soft Coded key flexfield segment
1821  * @param p_scl_segment8 Soft Coded key flexfield segment
1822  * @param p_scl_segment9 Soft Coded key flexfield segment
1823  * @param p_scl_segment10 Soft Coded key flexfield segment
1824  * @param p_scl_segment11 Soft Coded key flexfield segment
1825  * @param p_scl_segment12 Soft Coded key flexfield segment
1826  * @param p_scl_segment13 Soft Coded key flexfield segment
1827  * @param p_scl_segment14 Soft Coded key flexfield segment
1828  * @param p_scl_segment15 Soft Coded key flexfield segment
1829  * @param p_scl_segment16 Soft Coded key flexfield segment
1830  * @param p_scl_segment17 Soft Coded key flexfield segment
1831  * @param p_scl_segment18 Soft Coded key flexfield segment
1832  * @param p_scl_segment19 Soft Coded key flexfield segment
1833  * @param p_scl_segment20 Soft Coded key flexfield segment
1834  * @param p_scl_segment21 Soft Coded key flexfield segment
1835  * @param p_scl_segment22 Soft Coded key flexfield segment
1836  * @param p_scl_segment23 Soft Coded key flexfield segment
1837  * @param p_scl_segment24 Soft Coded key flexfield segment
1838  * @param p_scl_segment25 Soft Coded key flexfield segment
1839  * @param p_scl_segment26 Soft Coded key flexfield segment
1840  * @param p_scl_segment27 Soft Coded key flexfield segment
1841  * @param p_scl_segment28 Soft Coded key flexfield segment
1842  * @param p_scl_segment29 Soft Coded key flexfield segment
1843  * @param p_scl_segment30 Soft Coded key flexfield segment
1844  * @param p_scl_concat_segments Concatenated segments for Soft Coded Key
1845  * Flexfield. Concatenated segments can be supplied instead of individual
1846  * segments.
1847  * @param p_pgp_concat_segments Concatenated segments for People Group Key
1848  * Flexfield. Concatenated segments can be supplied instead of individual
1849  * segments.
1850  * @param p_supervisor_assignment_id Supervisor's assignment that is
1851  * responsible for supervising this assignment.
1852  * @param p_assignment_id If p_validate is false, then this uniquely identifies
1853  * the created assignment. If p_validate is true, then set to null.
1854  * @param p_object_version_number If p_validate is false, then set to the
1855  * version number of the created assignment. If p_validate is true, then the
1856  * value will be null.
1857  * @param p_effective_start_date If p_validate is false, then set to the
1858  * earliest effective start date for the created assignment. If p_validate is
1859  * true, then set to null.
1860  * @param p_effective_end_date If p_validate is false, then set to the
1861  * effective end date for the created assignment. If p_validate is true, then
1862  * set to null.
1863  * @param p_assignment_sequence If p_validate is false, then an automatically
1864  * incremented number is associated with this assignment, depending on the
1865  * number of assignment that already exist. If p_validate is true then set to
1866  * null.
1867  * @param p_comment_id If p_validate is false and comment text was provided,
1868  * then will be set to the identifier of the created assignment comment record.
1869  * If p_validate is true or no comment text was provided, then will be null.
1870  * @param p_people_group_id If p_validate is false, then this uniquely
1871  * identifies the associated combination of the People Group Key flexfield for
1872  * this assignment. If p_validate is true, then set to null.
1873  * @param p_people_group_name If p_validate is false, set to the People Group
1874  * Key Flexfield concatenated segments. If p_validate is true, set to null.
1875  * @param p_other_manager_warning If set to true, then a manager existed in the
1876  * organization prior to calling this API and the manager flag has been set to
1877  * 'Y' for yes.
1878  * @param p_hourly_salaried_warning Set to true if values entered for Salary
1879  * Basis and Hourly Salaried Code are invalid as of p_effective_date.
1880  * @param p_soft_coding_keyflex_id If p_validate is false, then this uniquely
1881  * identifies the associated combination of the Soft Coded Key flexfield for
1882  * this assignment. If p_validate is true, then set to null.
1883  * @rep:displayname Create Secondary Contingent Worker Assignment
1884  * @rep:category BUSINESS_ENTITY PER_CWK_ASG
1885  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
1886  * @rep:scope public
1887  * @rep:lifecycle active
1888  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
1889 */
1890 --
1891 -- {End Of Comments}
1892 --
1893 procedure create_secondary_cwk_asg
1894   (p_validate                     in     boolean  default false
1895   ,p_effective_date               in     date
1896   ,p_business_group_id            in     number
1897   ,p_person_id                    in     number
1898   ,p_organization_id              in     number
1899   ,p_assignment_number            in out nocopy varchar2
1900   ,p_assignment_category          in     varchar2 default null
1901   ,p_assignment_status_type_id    in     number   default null
1902   ,p_change_reason                in     varchar2 default null
1903   ,p_comments                     in     varchar2 default null
1904   ,p_default_code_comb_id         in     number   default null
1905   ,p_establishment_id             in     number   default null
1906   ,p_frequency                    in     varchar2 default null
1907   ,p_internal_address_line        in     varchar2 default null
1908   ,p_job_id                       in     number   default null
1909   ,p_labour_union_member_flag     in     varchar2 default 'N'
1910   ,p_location_id                  in     number   default null
1911   ,p_manager_flag                 in     varchar2 default null
1912   ,p_normal_hours                 in     number   default null
1913   ,p_position_id                  in     number   default null
1914   ,p_grade_id                     in     number   default null
1915   ,p_project_title                in     varchar2 default null
1916   ,p_set_of_books_id              in     number   default null
1917   ,p_source_type                  in     varchar2 default null
1918   ,p_supervisor_id                in     number   default null
1919   ,p_time_normal_finish           in     varchar2 default null
1920   ,p_time_normal_start            in     varchar2 default null
1921   ,p_title                        in     varchar2 default null
1922   ,p_vendor_assignment_number     in     varchar2 default null
1923   ,p_vendor_employee_number       in     varchar2 default null
1924   ,p_vendor_id                    in     number   default null
1925   ,p_vendor_site_id               in     number   default null
1926   ,p_po_header_id                 in     number   default null
1927   ,p_po_line_id                   in     number   default null
1928   ,p_projected_assignment_end     in     date     default null
1929   ,p_attribute_category           in     varchar2 default null
1930   ,p_attribute1                   in     varchar2 default null
1931   ,p_attribute2                   in     varchar2 default null
1932   ,p_attribute3                   in     varchar2 default null
1933   ,p_attribute4                   in     varchar2 default null
1934   ,p_attribute5                   in     varchar2 default null
1935   ,p_attribute6                   in     varchar2 default null
1936   ,p_attribute7                   in     varchar2 default null
1937   ,p_attribute8                   in     varchar2 default null
1938   ,p_attribute9                   in     varchar2 default null
1939   ,p_attribute10                  in     varchar2 default null
1940   ,p_attribute11                  in     varchar2 default null
1941   ,p_attribute12                  in     varchar2 default null
1942   ,p_attribute13                  in     varchar2 default null
1943   ,p_attribute14                  in     varchar2 default null
1944   ,p_attribute15                  in     varchar2 default null
1945   ,p_attribute16                  in     varchar2 default null
1946   ,p_attribute17                  in     varchar2 default null
1947   ,p_attribute18                  in     varchar2 default null
1948   ,p_attribute19                  in     varchar2 default null
1949   ,p_attribute20                  in     varchar2 default null
1950   ,p_attribute21                  in     varchar2 default null
1951   ,p_attribute22                  in     varchar2 default null
1952   ,p_attribute23                  in     varchar2 default null
1953   ,p_attribute24                  in     varchar2 default null
1954   ,p_attribute25                  in     varchar2 default null
1955   ,p_attribute26                  in     varchar2 default null
1956   ,p_attribute27                  in     varchar2 default null
1957   ,p_attribute28                  in     varchar2 default null
1958   ,p_attribute29                  in     varchar2 default null
1959   ,p_attribute30                  in     varchar2 default null
1960   ,p_pgp_segment1                 in     varchar2 default null
1961   ,p_pgp_segment2                 in     varchar2 default null
1962   ,p_pgp_segment3                 in     varchar2 default null
1963   ,p_pgp_segment4                 in     varchar2 default null
1964   ,p_pgp_segment5                 in     varchar2 default null
1965   ,p_pgp_segment6                 in     varchar2 default null
1966   ,p_pgp_segment7                 in     varchar2 default null
1967   ,p_pgp_segment8                 in     varchar2 default null
1968   ,p_pgp_segment9                 in     varchar2 default null
1969   ,p_pgp_segment10                in     varchar2 default null
1970   ,p_pgp_segment11                in     varchar2 default null
1971   ,p_pgp_segment12                in     varchar2 default null
1972   ,p_pgp_segment13                in     varchar2 default null
1973   ,p_pgp_segment14                in     varchar2 default null
1974   ,p_pgp_segment15                in     varchar2 default null
1975   ,p_pgp_segment16                in     varchar2 default null
1976   ,p_pgp_segment17                in     varchar2 default null
1977   ,p_pgp_segment18                in     varchar2 default null
1978   ,p_pgp_segment19                in     varchar2 default null
1979   ,p_pgp_segment20                in     varchar2 default null
1980   ,p_pgp_segment21                in     varchar2 default null
1981   ,p_pgp_segment22                in     varchar2 default null
1982   ,p_pgp_segment23                in     varchar2 default null
1983   ,p_pgp_segment24                in     varchar2 default null
1984   ,p_pgp_segment25                in     varchar2 default null
1985   ,p_pgp_segment26                in     varchar2 default null
1986   ,p_pgp_segment27                in     varchar2 default null
1987   ,p_pgp_segment28                in     varchar2 default null
1988   ,p_pgp_segment29                in     varchar2 default null
1989   ,p_pgp_segment30                in     varchar2 default null
1990   ,p_scl_segment1                 in     varchar2 default null
1991   ,p_scl_segment2                 in     varchar2 default null
1992   ,p_scl_segment3                 in     varchar2 default null
1993   ,p_scl_segment4                 in     varchar2 default null
1994   ,p_scl_segment5                 in     varchar2 default null
1995   ,p_scl_segment6                 in     varchar2 default null
1996   ,p_scl_segment7                 in     varchar2 default null
1997   ,p_scl_segment8                 in     varchar2 default null
1998   ,p_scl_segment9                 in     varchar2 default null
1999   ,p_scl_segment10                in     varchar2 default null
2000   ,p_scl_segment11                in     varchar2 default null
2001   ,p_scl_segment12                in     varchar2 default null
2002   ,p_scl_segment13                in     varchar2 default null
2003   ,p_scl_segment14                in     varchar2 default null
2004   ,p_scl_segment15                in     varchar2 default null
2005   ,p_scl_segment16                in     varchar2 default null
2006   ,p_scl_segment17                in     varchar2 default null
2007   ,p_scl_segment18                in     varchar2 default null
2008   ,p_scl_segment19                in     varchar2 default null
2009   ,p_scl_segment20                in     varchar2 default null
2010   ,p_scl_segment21                in     varchar2 default null
2011   ,p_scl_segment22                in     varchar2 default null
2012   ,p_scl_segment23                in     varchar2 default null
2013   ,p_scl_segment24                in     varchar2 default null
2014   ,p_scl_segment25                in     varchar2 default null
2015   ,p_scl_segment26                in     varchar2 default null
2016   ,p_scl_segment27                in     varchar2 default null
2017   ,p_scl_segment28                in     varchar2 default null
2018   ,p_scl_segment29                in     varchar2 default null
2019   ,p_scl_segment30                in     varchar2 default null
2020   ,p_scl_concat_segments          in     varchar2 default null
2021   ,p_pgp_concat_segments          in     varchar2 default null
2022   ,p_supervisor_assignment_id     in     number   default null
2023   ,p_assignment_id                   out nocopy number
2024   ,p_object_version_number           out nocopy number
2025   ,p_effective_start_date            out nocopy date
2026   ,p_effective_end_date              out nocopy date
2027   ,p_assignment_sequence             out nocopy number
2028   ,p_comment_id                      out nocopy number
2029   ,p_people_group_id                 out nocopy number
2030   ,p_people_group_name               out nocopy varchar2
2031   ,p_other_manager_warning           out nocopy boolean
2032   ,p_hourly_salaried_warning         out nocopy boolean
2033   ,p_soft_coding_keyflex_id          out nocopy number);
2034 --
2035 -- ----------------------------------------------------------------------------
2036 -- |---------------------< get_supplier_info_for_po >--------------------------|
2037 -- ----------------------------------------------------------------------------
2038 --
2039 -- {Start Of Comments}
2040 --
2041 -- Description:
2042 --   This API returns the Supplier and Supplier given a Purchase Order.
2043 --
2044 -- Prerequisites:
2045 --   This procedure assumes that the Purchase Order passed in is valid. The
2046 --   procedure will not error if the PO is not valid but the OUT parameters
2047 --   will be null.
2048 --
2049 -- In Parameters:
2050 --   Name                           Reqd Type     Description
2051 --   p_po_header_id                  Yes number   Purchase Order Header
2052 --                                                reference.
2053 -- Post Success:
2054 --   The API sets the following out parameters:
2055 --
2056 --   Name                           Type     Description
2057 --   p_vendor_id                    number   ID of the Supplier.
2058 --   p_vendor_site_id               number   ID of the Supplier site.
2059 --
2060 -- Post Failure:
2061 --   The API does not error and returns the OUT parameters as NULL.
2062 --
2063 -- Access Status:
2064 --   Public.
2065 --
2066 -- {End Of Comments}
2067 --
2068 PROCEDURE get_supplier_info_for_po
2069   (p_po_header_id                 IN            NUMBER
2070   ,p_vendor_id                       OUT NOCOPY NUMBER
2071   ,p_vendor_site_id                  OUT NOCOPY NUMBER);
2072 --
2073 -- ----------------------------------------------------------------------------
2074 -- |---------------------< get_supplier_for_site >-----------------------------|
2075 -- ----------------------------------------------------------------------------
2076 --
2077 -- {Start Of Comments}
2078 --
2079 -- Description:
2080 --   This API returns the Supplier given a Supplier Site.
2081 --
2082 -- Prerequisites:
2083 --   This procedure assumes that the Supplier Site is valid. The
2084 --   procedure will not error if the Site is not valid but the function
2085 --   will return null.
2086 --
2087 -- In Parameters:
2088 --   Name                           Reqd Type     Description
2089 --   p_vendor_site_id                Yes number   ID of Supplier Site.
2090 --
2091 -- Post Success:
2092 --   The API returns a number indicating the ID of the Supplier.
2093 --
2094 -- Post Failure:
2095 --   The API does not error and returns NULL.
2096 --
2097 -- Access Status:
2098 --   Public.
2099 --
2100 -- {End Of Comments}
2101 --
2102 FUNCTION get_supplier_for_site
2103   (p_vendor_site_id               IN     NUMBER)
2104 RETURN NUMBER;
2105 --
2106 -- ----------------------------------------------------------------------------
2107 -- |---------------------< get_po_for_line >-----------------------------------|
2108 -- ----------------------------------------------------------------------------
2109 --
2110 -- {Start Of Comments}
2111 --
2112 -- Description:
2113 --   This API returns the Purchase Order (PO) given a PO Line.
2114 --
2115 -- Prerequisites:
2116 --   This procedure assumes that the PO Line is valid. The procedure
2117 --   will not error if the PO Line is not valid but the function
2118 --   will return null.
2119 --
2120 -- In Parameters:
2121 --   Name                           Reqd Type     Description
2122 --   p_po_line_id                    Yes number   ID of PO Line.
2123 --
2124 -- Post Success:
2125 --   The API returns a number indicating the Purchase Order Header ID.
2126 --
2127 -- Post Failure:
2128 --   The API does not error and returns NULL.
2129 --
2130 -- Access Status:
2131 --   Public.
2132 --
2133 -- {End Of Comments}
2134 --
2135 FUNCTION get_po_for_line
2136   (p_po_line_id                   IN     NUMBER)
2137 RETURN NUMBER;
2138 --
2139 -- ----------------------------------------------------------------------------
2140 -- |---------------------< get_job_for_po_line >-------------------------------|
2141 -- ----------------------------------------------------------------------------
2142 --
2143 -- {Start Of Comments}
2144 --
2145 -- Description:
2146 --   This API returns the Job given a PO Line.
2147 --
2148 -- Prerequisites:
2149 --   This procedure assumes that the PO Line is valid. The procedure
2150 --   will not error if the PO Line is not valid but the function
2151 --   will return null.
2152 --
2153 -- In Parameters:
2154 --   Name                           Reqd Type     Description
2155 --   p_po_line_id                    Yes number   ID of PO Line.
2156 --
2157 -- Post Success:
2158 --   The API returns a number indicating the job_id on the PO Line.
2159 --
2160 -- Post Failure:
2161 --   The API does not error and returns NULL.
2162 --
2163 -- Access Status:
2164 --   Public.
2165 --
2166 -- {End Of Comments}
2167 --
2168 FUNCTION get_job_for_po_line
2169   (p_po_line_id                   IN     NUMBER)
2170 RETURN NUMBER;
2171 --
2172 -- ----------------------------------------------------------------------------
2173 -- |-----------------------< create_gb_secondary_emp_asg >--------------------|
2174 -- ----------------------------------------------------------------------------
2175 --
2176 -- This version of the API is now out-of-date however it has been provided to
2177 -- you for backward compatibility support and will be removed in the future.
2178 -- Oracle recommends you to modify existing calling programs in advance of the
2179 -- support being withdrawn thus avoiding any potential disruption.
2180 --
2181 procedure create_gb_secondary_emp_asg
2182   (p_validate                     in     boolean  default false
2183   ,p_effective_date               in     date
2184   ,p_person_id                    in     number
2185   ,p_organization_id              in     number
2186   ,p_grade_id                     in     number   default null
2187   ,p_position_id                  in     number   default null
2188   ,p_job_id                       in     number   default null
2189   ,p_assignment_status_type_id    in     number   default null
2190   ,p_payroll_id                   in     number   default null
2191   ,p_location_id                  in     number   default null
2192   ,p_supervisor_id                in     number   default null
2193   ,p_special_ceiling_step_id      in     number   default null
2194   ,p_pay_basis_id                 in     number   default null
2195   ,p_assignment_number            in out nocopy varchar2
2196   ,p_change_reason                in     varchar2 default null
2197   ,p_comments                     in     varchar2 default null
2198   ,p_date_probation_end           in     date     default null
2199   ,p_default_code_comb_id         in     number   default null
2200   ,p_employment_category          in     varchar2 default null
2201   ,p_frequency                    in     varchar2 default null
2202   ,p_internal_address_line        in     varchar2 default null
2203   ,p_manager_flag                 in     varchar2 default null
2204   ,p_normal_hours                 in     number   default null
2205   ,p_perf_review_period           in     number   default null
2206   ,p_perf_review_period_frequency in     varchar2 default null
2207   ,p_probation_period             in     number   default null
2208   ,p_probation_unit               in     varchar2 default null
2209   ,p_sal_review_period            in     number   default null
2210   ,p_sal_review_period_frequency  in     varchar2 default null
2211   ,p_set_of_books_id              in     number   default null
2212   ,p_source_type                  in     varchar2 default null
2213   ,p_time_normal_finish           in     varchar2 default null
2214   ,p_time_normal_start            in     varchar2 default null
2215   ,p_bargaining_unit_code         in     varchar2 default null
2216   ,p_labour_union_member_flag     in     varchar2 default 'N'
2217   ,p_hourly_salaried_code         in     varchar2 default null
2218   ,p_ass_attribute_category       in     varchar2 default null
2219   ,p_ass_attribute1               in     varchar2 default null
2220   ,p_ass_attribute2               in     varchar2 default null
2221   ,p_ass_attribute3               in     varchar2 default null
2222   ,p_ass_attribute4               in     varchar2 default null
2223   ,p_ass_attribute5               in     varchar2 default null
2224   ,p_ass_attribute6               in     varchar2 default null
2225   ,p_ass_attribute7               in     varchar2 default null
2226   ,p_ass_attribute8               in     varchar2 default null
2227   ,p_ass_attribute9               in     varchar2 default null
2228   ,p_ass_attribute10              in     varchar2 default null
2229   ,p_ass_attribute11              in     varchar2 default null
2230   ,p_ass_attribute12              in     varchar2 default null
2231   ,p_ass_attribute13              in     varchar2 default null
2232   ,p_ass_attribute14              in     varchar2 default null
2233   ,p_ass_attribute15              in     varchar2 default null
2234   ,p_ass_attribute16              in     varchar2 default null
2235   ,p_ass_attribute17              in     varchar2 default null
2236   ,p_ass_attribute18              in     varchar2 default null
2237   ,p_ass_attribute19              in     varchar2 default null
2238   ,p_ass_attribute20              in     varchar2 default null
2239   ,p_ass_attribute21              in     varchar2 default null
2240   ,p_ass_attribute22              in     varchar2 default null
2241   ,p_ass_attribute23              in     varchar2 default null
2242   ,p_ass_attribute24              in     varchar2 default null
2243   ,p_ass_attribute25              in     varchar2 default null
2244   ,p_ass_attribute26              in     varchar2 default null
2245   ,p_ass_attribute27              in     varchar2 default null
2246   ,p_ass_attribute28              in     varchar2 default null
2247   ,p_ass_attribute29              in     varchar2 default null
2248   ,p_ass_attribute30              in     varchar2 default null
2249   ,p_title                        in     varchar2 default null
2250   ,p_pgp_segment1                 in     varchar2 default null
2251   ,p_pgp_segment2                 in     varchar2 default null
2252   ,p_pgp_segment3                 in     varchar2 default null
2253   ,p_pgp_segment4                 in     varchar2 default null
2254   ,p_pgp_segment5                 in     varchar2 default null
2255   ,p_pgp_segment6                 in     varchar2 default null
2256   ,p_pgp_segment7                 in     varchar2 default null
2257   ,p_pgp_segment8                 in     varchar2 default null
2258   ,p_pgp_segment9                 in     varchar2 default null
2259   ,p_pgp_segment10                in     varchar2 default null
2260   ,p_pgp_segment11                in     varchar2 default null
2261   ,p_pgp_segment12                in     varchar2 default null
2262   ,p_pgp_segment13                in     varchar2 default null
2263   ,p_pgp_segment14                in     varchar2 default null
2264   ,p_pgp_segment15                in     varchar2 default null
2265   ,p_pgp_segment16                in     varchar2 default null
2266   ,p_pgp_segment17                in     varchar2 default null
2267   ,p_pgp_segment18                in     varchar2 default null
2268   ,p_pgp_segment19                in     varchar2 default null
2269   ,p_pgp_segment20                in     varchar2 default null
2270   ,p_pgp_segment21                in     varchar2 default null
2271   ,p_pgp_segment22                in     varchar2 default null
2272   ,p_pgp_segment23                in     varchar2 default null
2273   ,p_pgp_segment24                in     varchar2 default null
2274   ,p_pgp_segment25                in     varchar2 default null
2275   ,p_pgp_segment26                in     varchar2 default null
2276   ,p_pgp_segment27                in     varchar2 default null
2277   ,p_pgp_segment28                in     varchar2 default null
2278   ,p_pgp_segment29                in     varchar2 default null
2279   ,p_pgp_segment30                in     varchar2 default null
2280 -- Bug 944911
2281 -- Amended p_group_name to out
2282 -- Added new param p_pgp_concat_segments - for sec asg procs
2283 -- for others added p_concat_segments
2284   ,p_pgp_concat_segments	  in     varchar2 default null
2285   ,p_supervisor_assignment_id     in     number   default null
2286   ,p_group_name                      out nocopy varchar2
2287   ,p_assignment_id                   out nocopy number
2288   ,p_people_group_id                 out nocopy number
2289   ,p_object_version_number           out nocopy number
2290   ,p_effective_start_date            out nocopy date
2291   ,p_effective_end_date              out nocopy date
2292   ,p_assignment_sequence             out nocopy number
2293   ,p_comment_id                      out nocopy number
2294   ,p_other_manager_warning           out nocopy boolean
2295   );
2296 
2297 --
2298 -- ----------------------------------------------------------------------------
2299 -- |-----------------------< create_gb_secondary_emp_asg >--------------------|
2300 -- ----------------------------------------------------------------------------
2301 --
2302 -- {Start Of Comments}
2303 /*#
2304  * This API creates a secondary employee assignment for an employee in a United
2305  * Kingdom business group.
2306  *
2307  * This API cannot create a primary assignment.
2308  *
2309  * <p><b>Licensing</b><br>
2310  * This API is licensed for use with Human Resources.
2311  *
2312  * <p><b>Prerequisites</b><br>
2313  * The person and organization must exist at the effective start date of the
2314  * assignment. The business group should be set to a United Kingdom
2315  * legislation.
2316  *
2317  * <p><b>Post Success</b><br>
2318  * A new secondary assignment is created for the employee
2319  *
2320  * <p><b>Post Failure</b><br>
2321  * The API does not create the secondary assignment and raises an error.
2322  * @param p_validate If true, then validation alone will be performed and the
2323  * database will remain unchanged. If false and all validation checks pass,
2324  * then the database will be modified.
2325  * @param p_effective_date Determines when the DateTrack operation comes into
2326  * force.
2327  * @param p_person_id Identifies the person for whom you create the secondary
2328  * assignment record
2329  * @param p_organization_id Identifies the organization of the secondary
2330  * assignment
2331  * @param p_grade_id Identifies the grade of the secondary assignment
2332  * @param p_position_id Identifies the position of the secondary assignment
2333  * @param p_job_id Identifies the job of the secondary assignment
2334  * @param p_assignment_status_type_id Identifies the assignment status of the
2335  * secondary assignment.
2336  * @param p_payroll_id Identifies the payroll for the secondary assignment
2337  * @param p_location_id Identifies the location of the secondary assignment
2338  * @param p_supervisor_id Supervisor for the secondary assignment. The value
2339  * refers to the supervisor's person record.
2340  * @param p_special_ceiling_step_id Highest allowed step for the grade scale
2341  * associated with the grade of the secondary assignment.
2342  * @param p_pay_basis_id Salary basis for the secondary assignment
2343  * @param p_assignment_number If a value is passed in, this is used as the
2344  * assignment number. If no value is passed in an assignment number is
2345  * generated.
2346  * @param p_change_reason Reason for the assignment status change. If there is
2347  * no change reason the parameter can be null. Valid values are defined in the
2348  * EMP_ASSIGN_REASON lookup type.
2349  * @param p_comments Comment text.
2350  * @param p_date_probation_end End date of probation period
2351  * @param p_default_code_comb_id Identifier for the General Ledger Accounting
2352  * Flexfield combination which applies to this assignment
2353  * @param p_employment_category Employment category. Valid values are defined
2354  * in the EMP_CAT lookup type.
2355  * @param p_frequency Frequency associated with the defined normal working
2356  * hours. Valid values are defined in the FREQUENCY lookup type.
2357  * @param p_internal_address_line Internal address identified with this
2358  * assignment.
2359  * @param p_manager_flag Indicates whether the employee is a manager
2360  * @param p_normal_hours Normal working hours for this assignment
2361  * @param p_perf_review_period Length of performance review period
2362  * @param p_perf_review_period_frequency Units of performance review period.
2363  * Valid values are defined in the FREQUENCY lookup type.
2364  * @param p_probation_period Length of probation period
2365  * @param p_probation_unit Units of probation period. Valid values are defined
2366  * in the QUALIFYING_UNITS lookup type.
2367  * @param p_sal_review_period Length of salary review period
2368  * @param p_sal_review_period_frequency Units of salary review period. Valid
2369  * values are defined in the FREQUENCY lookup type.
2370  * @param p_set_of_books_id Identifies General Ledger set of books.
2371  * @param p_source_type Recruitment activity that this assignment is sourced
2372  * from. Valid values are defined in the REC_TYPE lookup type.
2373  * @param p_time_normal_finish Normal work finish time
2374  * @param p_time_normal_start Normal work start time
2375  * @param p_bargaining_unit_code Code for bargaining unit. Valid values are
2376  * defined in the BARGAINING_UNIT_CODE lookup type.
2377  * @param p_labour_union_member_flag Value 'Y' indicates employee is a labour
2378  * union member. Other values indicate not a member.
2379  * @param p_hourly_salaried_code Identifies if the assignment is paid hourly or
2380  * is salaried. Valid values defined in the HOURLY_SALARIED_CODE lookup type.
2381  * @param p_ass_attribute_category This context value determines which
2382  * Flexfield Structure to use with the Descriptive flexfield segments.
2383  * @param p_ass_attribute1 Descriptive flexfield segment
2384  * @param p_ass_attribute2 Descriptive flexfield segment
2385  * @param p_ass_attribute3 Descriptive flexfield segment
2386  * @param p_ass_attribute4 Descriptive flexfield segment
2387  * @param p_ass_attribute5 Descriptive flexfield segment
2388  * @param p_ass_attribute6 Descriptive flexfield segment
2389  * @param p_ass_attribute7 Descriptive flexfield segment
2390  * @param p_ass_attribute8 Descriptive flexfield segment
2391  * @param p_ass_attribute9 Descriptive flexfield segment
2392  * @param p_ass_attribute10 Descriptive flexfield segment
2393  * @param p_ass_attribute11 Descriptive flexfield segment
2394  * @param p_ass_attribute12 Descriptive flexfield segment
2395  * @param p_ass_attribute13 Descriptive flexfield segment
2396  * @param p_ass_attribute14 Descriptive flexfield segment
2397  * @param p_ass_attribute15 Descriptive flexfield segment
2398  * @param p_ass_attribute16 Descriptive flexfield segment
2399  * @param p_ass_attribute17 Descriptive flexfield segment
2400  * @param p_ass_attribute18 Descriptive flexfield segment
2401  * @param p_ass_attribute19 Descriptive flexfield segment
2402  * @param p_ass_attribute20 Descriptive flexfield segment
2403  * @param p_ass_attribute21 Descriptive flexfield segment
2404  * @param p_ass_attribute22 Descriptive flexfield segment
2405  * @param p_ass_attribute23 Descriptive flexfield segment
2406  * @param p_ass_attribute24 Descriptive flexfield segment
2407  * @param p_ass_attribute25 Descriptive flexfield segment
2408  * @param p_ass_attribute26 Descriptive flexfield segment
2409  * @param p_ass_attribute27 Descriptive flexfield segment
2410  * @param p_ass_attribute28 Descriptive flexfield segment
2411  * @param p_ass_attribute29 Descriptive flexfield segment
2412  * @param p_ass_attribute30 Descriptive flexfield segment
2413  * @param p_title Obsolete parameter, do not use.
2414  * @param p_pgp_segment1 People group key flexfield segment
2415  * @param p_pgp_segment2 People group key flexfield segment
2416  * @param p_pgp_segment3 People group key flexfield segment
2417  * @param p_pgp_segment4 People group key flexfield segment
2418  * @param p_pgp_segment5 People group key flexfield segment
2419  * @param p_pgp_segment6 People group key flexfield segment
2420  * @param p_pgp_segment7 People group key flexfield segment
2421  * @param p_pgp_segment8 People group key flexfield segment
2422  * @param p_pgp_segment9 People group key flexfield segment
2423  * @param p_pgp_segment10 People group key flexfield segment
2424  * @param p_pgp_segment11 People group key flexfield segment
2425  * @param p_pgp_segment12 People group key flexfield segment
2426  * @param p_pgp_segment13 People group key flexfield segment
2427  * @param p_pgp_segment14 People group key flexfield segment
2428  * @param p_pgp_segment15 People group key flexfield segment
2429  * @param p_pgp_segment16 People group key flexfield segment
2430  * @param p_pgp_segment17 People group key flexfield segment
2431  * @param p_pgp_segment18 People group key flexfield segment
2432  * @param p_pgp_segment19 People group key flexfield segment
2433  * @param p_pgp_segment20 People group key flexfield segment
2434  * @param p_pgp_segment21 People group key flexfield segment
2435  * @param p_pgp_segment22 People group key flexfield segment
2436  * @param p_pgp_segment23 People group key flexfield segment
2437  * @param p_pgp_segment24 People group key flexfield segment
2438  * @param p_pgp_segment25 People group key flexfield segment
2439  * @param p_pgp_segment26 People group key flexfield segment
2440  * @param p_pgp_segment27 People group key flexfield segment
2441  * @param p_pgp_segment28 People group key flexfield segment
2442  * @param p_pgp_segment29 People group key flexfield segment
2443  * @param p_pgp_segment30 People group key flexfield segment
2444  * @param p_pgp_concat_segments Concatenated segments for People Group Key
2445  * Flexfield. Concatenated segments can be supplied instead of individual
2446  * segments.
2447  * @param p_supervisor_assignment_id Supervisor's assignment that is
2448  * responsible for supervising this assignment.
2449  * @param p_group_name If p_validate is false, set to the People Group Key
2450  * Flexfield concatenated segments. If p_validate is true, set to null.
2451  * @param p_assignment_id If p_validate is false, then this uniquely identifies
2452  * the created assignment. If p_validate is true, then set to null.
2453  * @param p_people_group_id If p_validate is false, then this uniquely
2454  * identifies the associated combination of the People Group Key flexfield for
2455  * this assignment. If p_validate is true, then set to null.
2456  * @param p_object_version_number If p_validate is false, then set to the
2457  * version number of the created assignment. If p_validate is true, then the
2458  * value will be null.
2459  * @param p_effective_start_date If p_validate is false, then set to the
2460  * earliest effective start date for the created assignment. If p_validate is
2461  * true, then set to null.
2462  * @param p_effective_end_date If p_validate is false, then set to the
2463  * effective end date for the created assignment. If p_validate is true, then
2464  * set to null.
2465  * @param p_assignment_sequence If p_validate is false, then an automatically
2466  * incremented number is associated with this assignment, depending on the
2467  * number of assignment which already exist. If p_validate is true then set to
2468  * null.
2469  * @param p_comment_id If p_validate is false and comment text was provided,
2470  * then will be set to the identifier of the created assignment comment record.
2471  * If p_validate is true or no comment text was provided, then will be null.
2472  * @param p_other_manager_warning If set to true, then a manager existed in the
2473  * organization prior to calling this API and the manager flag has been set to
2474  * 'Y' for yes.
2475  * @param p_hourly_salaried_warning Set to true if values entered for Salary
2476  * Basis and Hourly Salaried Code are invalid as of p_effective_date.
2477  * @param p_cagr_grade_def_id If a value is passed in for this parameter, it
2478  * identifies an existing CAGR Key Flexfield combination to associate with the
2479  * assignment, and segment values are ignored. If a value is not passed in,
2480  * then the individual CAGR Key Flexfield segments supplied will be used to
2481  * choose an existing combination or create a new combination. When the API
2482  * completes, if p_validate is false, then this uniquely identifies the
2483  * associated combination of the CAGR Key flexfield for this assignment. If
2484  * p_validate is true, then set to null.
2485  * @param p_cagr_concatenated_segments CAGR Key Flexfield concatenated segments
2486  * @rep:displayname Create Secondary Employee Assignment for United Kingdom
2487  * @rep:category BUSINESS_ENTITY PER_EMPLOYEE_ASG
2488  * @rep:category MISC_EXTENSIONS HR_DATAPUMP
2489  * @rep:scope public
2490  * @rep:lifecycle active
2491  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
2492 */
2493 --
2494 -- {End Of Comments}
2495 --
2496 procedure create_gb_secondary_emp_asg
2497   (p_validate                     in     boolean  default false
2498   ,p_effective_date               in     date
2499   ,p_person_id                    in     number
2500   ,p_organization_id              in     number
2501   ,p_grade_id                     in     number   default null
2502   ,p_position_id                  in     number   default null
2503   ,p_job_id                       in     number   default null
2504   ,p_assignment_status_type_id    in     number   default null
2505   ,p_payroll_id                   in     number   default null
2506   ,p_location_id                  in     number   default null
2507   ,p_supervisor_id                in     number   default null
2508   ,p_special_ceiling_step_id      in     number   default null
2509   ,p_pay_basis_id                 in     number   default null
2510   ,p_assignment_number            in out nocopy varchar2
2511   ,p_change_reason                in     varchar2 default null
2512   ,p_comments                     in     varchar2 default null
2513   ,p_date_probation_end           in     date     default null
2514   ,p_default_code_comb_id         in     number   default null
2515   ,p_employment_category          in     varchar2 default null
2516   ,p_frequency                    in     varchar2 default null
2517   ,p_internal_address_line        in     varchar2 default null
2518   ,p_manager_flag                 in     varchar2 default null
2519   ,p_normal_hours                 in     number   default null
2520   ,p_perf_review_period           in     number   default null
2521   ,p_perf_review_period_frequency in     varchar2 default null
2522   ,p_probation_period             in     number   default null
2523   ,p_probation_unit               in     varchar2 default null
2524   ,p_sal_review_period            in     number   default null
2525   ,p_sal_review_period_frequency  in     varchar2 default null
2526   ,p_set_of_books_id              in     number   default null
2527   ,p_source_type                  in     varchar2 default null
2528   ,p_time_normal_finish           in     varchar2 default null
2529   ,p_time_normal_start            in     varchar2 default null
2530   ,p_bargaining_unit_code         in     varchar2 default null
2531   ,p_labour_union_member_flag     in     varchar2 default 'N'
2532   ,p_hourly_salaried_code         in     varchar2 default null
2533   ,p_ass_attribute_category       in     varchar2 default null
2534   ,p_ass_attribute1               in     varchar2 default null
2535   ,p_ass_attribute2               in     varchar2 default null
2536   ,p_ass_attribute3               in     varchar2 default null
2537   ,p_ass_attribute4               in     varchar2 default null
2538   ,p_ass_attribute5               in     varchar2 default null
2539   ,p_ass_attribute6               in     varchar2 default null
2540   ,p_ass_attribute7               in     varchar2 default null
2541   ,p_ass_attribute8               in     varchar2 default null
2542   ,p_ass_attribute9               in     varchar2 default null
2543   ,p_ass_attribute10              in     varchar2 default null
2544   ,p_ass_attribute11              in     varchar2 default null
2545   ,p_ass_attribute12              in     varchar2 default null
2546   ,p_ass_attribute13              in     varchar2 default null
2547   ,p_ass_attribute14              in     varchar2 default null
2548   ,p_ass_attribute15              in     varchar2 default null
2549   ,p_ass_attribute16              in     varchar2 default null
2550   ,p_ass_attribute17              in     varchar2 default null
2551   ,p_ass_attribute18              in     varchar2 default null
2552   ,p_ass_attribute19              in     varchar2 default null
2553   ,p_ass_attribute20              in     varchar2 default null
2554   ,p_ass_attribute21              in     varchar2 default null
2555   ,p_ass_attribute22              in     varchar2 default null
2556   ,p_ass_attribute23              in     varchar2 default null
2557   ,p_ass_attribute24              in     varchar2 default null
2558   ,p_ass_attribute25              in     varchar2 default null
2559   ,p_ass_attribute26              in     varchar2 default null
2560   ,p_ass_attribute27              in     varchar2 default null
2561   ,p_ass_attribute28              in     varchar2 default null
2562   ,p_ass_attribute29              in     varchar2 default null
2563   ,p_ass_attribute30              in     varchar2 default null
2564   ,p_title                        in     varchar2 default null
2565   ,p_pgp_segment1                 in     varchar2 default null
2566   ,p_pgp_segment2                 in     varchar2 default null
2567   ,p_pgp_segment3                 in     varchar2 default null
2568   ,p_pgp_segment4                 in     varchar2 default null
2569   ,p_pgp_segment5                 in     varchar2 default null
2570   ,p_pgp_segment6                 in     varchar2 default null
2571   ,p_pgp_segment7                 in     varchar2 default null
2572   ,p_pgp_segment8                 in     varchar2 default null
2573   ,p_pgp_segment9                 in     varchar2 default null
2574   ,p_pgp_segment10                in     varchar2 default null
2575   ,p_pgp_segment11                in     varchar2 default null
2576   ,p_pgp_segment12                in     varchar2 default null
2577   ,p_pgp_segment13                in     varchar2 default null
2578   ,p_pgp_segment14                in     varchar2 default null
2579   ,p_pgp_segment15                in     varchar2 default null
2580   ,p_pgp_segment16                in     varchar2 default null
2581   ,p_pgp_segment17                in     varchar2 default null
2582   ,p_pgp_segment18                in     varchar2 default null
2583   ,p_pgp_segment19                in     varchar2 default null
2584   ,p_pgp_segment20                in     varchar2 default null
2585   ,p_pgp_segment21                in     varchar2 default null
2586   ,p_pgp_segment22                in     varchar2 default null
2587   ,p_pgp_segment23                in     varchar2 default null
2588   ,p_pgp_segment24                in     varchar2 default null
2589   ,p_pgp_segment25                in     varchar2 default null
2590   ,p_pgp_segment26                in     varchar2 default null
2591   ,p_pgp_segment27                in     varchar2 default null
2592   ,p_pgp_segment28                in     varchar2 default null
2593   ,p_pgp_segment29                in     varchar2 default null
2594   ,p_pgp_segment30                in     varchar2 default null
2595 -- Bug 944911
2596 -- Amended p_group_name to out
2597 -- Added new param p_pgp_concat_segments - for sec asg procs
2598 -- for others added p_concat_segments
2599   ,p_pgp_concat_segments	  in     varchar2 default null
2600   ,p_supervisor_assignment_id     in     number   default null
2601   ,p_group_name                      out nocopy varchar2
2602   ,p_assignment_id                   out nocopy number
2603   ,p_people_group_id                 out nocopy number
2604   ,p_object_version_number           out nocopy number
2605   ,p_effective_start_date            out nocopy date
2606   ,p_effective_end_date              out nocopy date
2607   ,p_assignment_sequence             out nocopy number
2608   ,p_comment_id                      out nocopy number
2609   ,p_other_manager_warning           out nocopy boolean
2610   ,p_hourly_salaried_warning         out nocopy boolean
2611   ,p_cagr_grade_def_id               out nocopy number
2612   ,p_cagr_concatenated_segments      out nocopy varchar2
2613   );
2614 
2615 --
2616 -- ----------------------------------------------------------------------------
2617 -- |-----------------------< create_us_secondary_emp_asg >--------------------|
2618 -- ----------------------------------------------------------------------------
2619 --
2620 -- This version of the API is now out-of-date however it has been provided to
2621 -- you for backward compatibility support and will be removed in the future.
2622 -- Oracle recommends you to modify existing calling programs in advance of the
2623 -- support being withdrawn thus avoiding any potential disruption.
2624 --
2625 procedure create_us_secondary_emp_asg
2626   (p_validate                     in     boolean  default false
2627   ,p_effective_date               in     date
2628   ,p_person_id                    in     number
2629   ,p_organization_id              in     number
2630   ,p_grade_id                     in     number   default null
2631   ,p_position_id                  in     number   default null
2632   ,p_job_id                       in     number   default null
2633   ,p_assignment_status_type_id    in     number   default null
2634   ,p_payroll_id                   in     number   default null
2635   ,p_location_id                  in     number   default null
2636   ,p_supervisor_id                in     number   default null
2637   ,p_special_ceiling_step_id      in     number   default null
2638   ,p_pay_basis_id                 in     number   default null
2639   ,p_assignment_number            in out nocopy varchar2
2640   ,p_change_reason                in     varchar2 default null
2641   ,p_comments                     in     varchar2 default null
2642   ,p_date_probation_end           in     date     default null
2643   ,p_default_code_comb_id         in     number   default null
2644   ,p_employment_category          in     varchar2 default null
2645   ,p_frequency                    in     varchar2 default null
2646   ,p_internal_address_line        in     varchar2 default null
2647   ,p_manager_flag                 in     varchar2 default null
2648   ,p_normal_hours                 in     number   default null
2649   ,p_perf_review_period           in     number   default null
2650   ,p_perf_review_period_frequency in     varchar2 default null
2651   ,p_probation_period             in     number   default null
2652   ,p_probation_unit               in     varchar2 default null
2653   ,p_sal_review_period            in     number   default null
2654   ,p_sal_review_period_frequency  in     varchar2 default null
2655   ,p_set_of_books_id              in     number   default null
2656   ,p_source_type                  in     varchar2 default null
2657   ,p_time_normal_finish           in     varchar2 default null
2658   ,p_time_normal_start            in     varchar2 default null
2659   ,p_bargaining_unit_code         in     varchar2 default null
2660   ,p_labour_union_member_flag     in     varchar2 default 'N'
2661   ,p_hourly_salaried_code         in     varchar2 default null
2662   ,p_ass_attribute_category       in     varchar2 default null
2663   ,p_ass_attribute1               in     varchar2 default null
2664   ,p_ass_attribute2               in     varchar2 default null
2665   ,p_ass_attribute3               in     varchar2 default null
2666   ,p_ass_attribute4               in     varchar2 default null
2667   ,p_ass_attribute5               in     varchar2 default null
2668   ,p_ass_attribute6               in     varchar2 default null
2669   ,p_ass_attribute7               in     varchar2 default null
2670   ,p_ass_attribute8               in     varchar2 default null
2671   ,p_ass_attribute9               in     varchar2 default null
2672   ,p_ass_attribute10              in     varchar2 default null
2673   ,p_ass_attribute11              in     varchar2 default null
2674   ,p_ass_attribute12              in     varchar2 default null
2675   ,p_ass_attribute13              in     varchar2 default null
2676   ,p_ass_attribute14              in     varchar2 default null
2677   ,p_ass_attribute15              in     varchar2 default null
2678   ,p_ass_attribute16              in     varchar2 default null
2679   ,p_ass_attribute17              in     varchar2 default null
2680   ,p_ass_attribute18              in     varchar2 default null
2681   ,p_ass_attribute19              in     varchar2 default null
2682   ,p_ass_attribute20              in     varchar2 default null
2683   ,p_ass_attribute21              in     varchar2 default null
2684   ,p_ass_attribute22              in     varchar2 default null
2685   ,p_ass_attribute23              in     varchar2 default null
2686   ,p_ass_attribute24              in     varchar2 default null
2687   ,p_ass_attribute25              in     varchar2 default null
2688   ,p_ass_attribute26              in     varchar2 default null
2689   ,p_ass_attribute27              in     varchar2 default null
2690   ,p_ass_attribute28              in     varchar2 default null
2691   ,p_ass_attribute29              in     varchar2 default null
2692   ,p_ass_attribute30              in     varchar2 default null
2693   ,p_title                        in     varchar2 default null
2694   ,p_tax_unit                     in     varchar2 default null
2695   ,p_timecard_approver            in     varchar2 default null
2696   ,p_timecard_required            in     varchar2 default null
2697   ,p_work_schedule                in     varchar2 default null
2698   ,p_shift                        in     varchar2 default null
2699   ,p_spouse_salary                in     varchar2 default null
2700   ,p_legal_representative         in     varchar2 default null
2701   ,p_wc_override_code             in     varchar2 default null
2702   ,p_eeo_1_establishment          in     varchar2 default null
2703   ,p_pgp_segment1                 in     varchar2 default null
2704   ,p_pgp_segment2                 in     varchar2 default null
2705   ,p_pgp_segment3                 in     varchar2 default null
2706   ,p_pgp_segment4                 in     varchar2 default null
2707   ,p_pgp_segment5                 in     varchar2 default null
2708   ,p_pgp_segment6                 in     varchar2 default null
2709   ,p_pgp_segment7                 in     varchar2 default null
2710   ,p_pgp_segment8                 in     varchar2 default null
2711   ,p_pgp_segment9                 in     varchar2 default null
2712   ,p_pgp_segment10                in     varchar2 default null
2713   ,p_pgp_segment11                in     varchar2 default null
2714   ,p_pgp_segment12                in     varchar2 default null
2715   ,p_pgp_segment13                in     varchar2 default null
2716   ,p_pgp_segment14                in     varchar2 default null
2717   ,p_pgp_segment15                in     varchar2 default null
2718   ,p_pgp_segment16                in     varchar2 default null
2719   ,p_pgp_segment17                in     varchar2 default null
2720   ,p_pgp_segment18                in     varchar2 default null
2721   ,p_pgp_segment19                in     varchar2 default null
2722   ,p_pgp_segment20                in     varchar2 default null
2723   ,p_pgp_segment21                in     varchar2 default null
2724   ,p_pgp_segment22                in     varchar2 default null
2725   ,p_pgp_segment23                in     varchar2 default null
2726   ,p_pgp_segment24                in     varchar2 default null
2727   ,p_pgp_segment25                in     varchar2 default null
2728   ,p_pgp_segment26                in     varchar2 default null
2729   ,p_pgp_segment27                in     varchar2 default null
2730   ,p_pgp_segment28                in     varchar2 default null
2731   ,p_pgp_segment29                in     varchar2 default null
2732   ,p_pgp_segment30                in     varchar2 default null
2733 -- Bug 944911
2734 -- Amended p_group_name to out
2735 -- Added new param p_pgp_concat_segments - for sec asg procs
2736 -- for others added p_concat_segments
2737   ,p_pgp_concat_segments	  in     varchar2 default null
2738   ,p_supervisor_assignment_id     in     number   default null
2739   ,p_group_name                      out nocopy varchar2
2740   ,p_assignment_id                   out nocopy number
2741   ,p_soft_coding_keyflex_id          out nocopy number
2742   ,p_people_group_id                 out nocopy number
2743   ,p_object_version_number           out nocopy number
2744   ,p_effective_start_date            out nocopy date
2745   ,p_effective_end_date              out nocopy date
2746   ,p_assignment_sequence             out nocopy number
2747   ,p_comment_id                      out nocopy number
2748 -- Bug 944911
2749 -- Changed concatenated_segments to be out from in out
2750 -- added new param p_concat_segments ( in )
2751   ,p_concatenated_segments           out nocopy varchar2
2752   ,p_concat_segments                 in  varchar2 default null
2753   ,p_other_manager_warning           out nocopy boolean
2754   );
2755 
2756 --
2757 -- ----------------------------------------------------------------------------
2758 -- |-----------------------< create_us_secondary_emp_asg >--------------------|
2759 -- ----------------------------------------------------------------------------
2760 --
2761 -- {Start Of Comments}
2762 /*#
2763  * This API creates a secondary employee assignment for an employee in a United
2764  * States business group.
2765  *
2766  * This API cannot create a primary assignment.
2767  *
2768  * <p><b>Licensing</b><br>
2769  * This API is licensed for use with Human Resources.
2770  *
2771  * <p><b>Prerequisites</b><br>
2772  * The person and organization must exist at the effective start date of the
2773  * assignment. The business group should be in a United States legislation.
2774  *
2775  * <p><b>Post Success</b><br>
2776  * A new secondary assignment is created for the employee
2777  *
2778  * <p><b>Post Failure</b><br>
2779  * The API does not create the assignment and raises an error.
2780  * @param p_validate If true, then validation alone will be performed and the
2781  * database will remain unchanged. If false and all validation checks pass,
2782  * then the database will be modified.
2783  * @param p_effective_date Determines when the DateTrack operation comes into
2784  * force.
2785  * @param p_person_id Identifies the person for whom you create the secondary
2786  * assignment record
2787  * @param p_organization_id Identifies the organization of the secondary
2788  * assignment
2789  * @param p_grade_id Identifies the grade of the secondary assignment
2790  * @param p_position_id Identifies the position of the secondary assignment
2791  * @param p_job_id Identifies the job of the secondary assignment
2792  * @param p_assignment_status_type_id Identifies the assignment status of the
2793  * secondary assignment.
2794  * @param p_payroll_id Identifies the payroll for the secondary assignment
2795  * @param p_location_id Identifies the location of the secondary assignment
2796  * @param p_supervisor_id Supervisor for the assignment. The value refers to
2797  * the supervisor's person record.
2798  * @param p_special_ceiling_step_id Highest allowed step for the grade scale
2799  * associated with the grade of the secondary assignment.
2800  * @param p_pay_basis_id Salary basis for the secondary assignment
2801  * @param p_assignment_number If a value is passed in, this is used as the
2802  * assignment number. If no value is passed in an assignment number is
2803  * generated.
2804  * @param p_change_reason Reason for the assignment status change. If there is
2805  * no change reason the parameter can be null. Valid values are defined in the
2806  * EMP_ASSIGN_REASON lookup type.
2807  * @param p_comments Comment text.
2808  * @param p_date_probation_end End date of probation period
2809  * @param p_default_code_comb_id Identifier for the General Ledger Accounting
2810  * Flexfield combination that applies to this assignment
2811  * @param p_employment_category Employment category. Valid values are defined
2812  * in the EMP_CAT lookup type.
2813  * @param p_frequency Frequency associated with the defined normal working
2814  * hours. Valid values are defined in the FREQUENCY lookup type.
2815  * @param p_internal_address_line Internal address identified with this
2816  * assignment.
2817  * @param p_manager_flag Indicates whether the employee is a manager
2818  * @param p_normal_hours Normal working hours for this assignment
2819  * @param p_perf_review_period Length of performance review period
2820  * @param p_perf_review_period_frequency Units of performance review period.
2821  * Valid values are defined in the FREQUENCY lookup type.
2822  * @param p_probation_period Length of probation period
2823  * @param p_probation_unit Units of probation period. Valid values are defined
2824  * in the QUALIFYING_UNITS lookup type.
2825  * @param p_sal_review_period Length of salary review period
2826  * @param p_sal_review_period_frequency Units of salary review period. Valid
2827  * values are defined in the FREQUENCY lookup type.
2828  * @param p_set_of_books_id Identifies General Ledger set of books.
2829  * @param p_source_type Recruitment activity that this assignment is sourced
2830  * from. Valid values are defined in the REC_TYPE lookup type.
2831  * @param p_time_normal_finish Normal work finish time
2832  * @param p_time_normal_start Normal work start time
2833  * @param p_bargaining_unit_code Code for bargaining unit. Valid values are
2834  * defined in the BARGAINING_UNIT_CODE lookup type.
2835  * @param p_labour_union_member_flag Value 'Y' indicates employee is a labour
2836  * union member. Other values indicate not a member.
2837  * @param p_hourly_salaried_code Identifies if the assignment is paid hourly or
2838  * is salaried. Valid values defined in the HOURLY_SALARIED_CODE lookup type.
2839  * @param p_ass_attribute_category This context value determines which
2840  * Flexfield Structure to use with the Descriptive flexfield segments.
2841  * @param p_ass_attribute1 Descriptive flexfield segment
2842  * @param p_ass_attribute2 Descriptive flexfield segment
2843  * @param p_ass_attribute3 Descriptive flexfield segment
2844  * @param p_ass_attribute4 Descriptive flexfield segment
2845  * @param p_ass_attribute5 Descriptive flexfield segment
2846  * @param p_ass_attribute6 Descriptive flexfield segment
2847  * @param p_ass_attribute7 Descriptive flexfield segment
2848  * @param p_ass_attribute8 Descriptive flexfield segment
2849  * @param p_ass_attribute9 Descriptive flexfield segment
2850  * @param p_ass_attribute10 Descriptive flexfield segment
2851  * @param p_ass_attribute11 Descriptive flexfield segment
2852  * @param p_ass_attribute12 Descriptive flexfield segment
2853  * @param p_ass_attribute13 Descriptive flexfield segment
2854  * @param p_ass_attribute14 Descriptive flexfield segment
2855  * @param p_ass_attribute15 Descriptive flexfield segment
2856  * @param p_ass_attribute16 Descriptive flexfield segment
2857  * @param p_ass_attribute17 Descriptive flexfield segment
2858  * @param p_ass_attribute18 Descriptive flexfield segment
2859  * @param p_ass_attribute19 Descriptive flexfield segment
2860  * @param p_ass_attribute20 Descriptive flexfield segment
2861  * @param p_ass_attribute21 Descriptive flexfield segment
2862  * @param p_ass_attribute22 Descriptive flexfield segment
2863  * @param p_ass_attribute23 Descriptive flexfield segment
2864  * @param p_ass_attribute24 Descriptive flexfield segment
2865  * @param p_ass_attribute25 Descriptive flexfield segment
2866  * @param p_ass_attribute26 Descriptive flexfield segment
2867  * @param p_ass_attribute27 Descriptive flexfield segment
2868  * @param p_ass_attribute28 Descriptive flexfield segment
2869  * @param p_ass_attribute29 Descriptive flexfield segment
2870  * @param p_ass_attribute30 Descriptive flexfield segment
2871  * @param p_title Obsolete parameter, do not use.
2872  * @param p_tax_unit Identifies the Government Reporting Entity (GRE)
2873  * associated with this secondary assignment.
2874  * @param p_timecard_approver Timecard Approver
2875  * @param p_timecard_required Indicates whether timecard is required
2876  * @param p_work_schedule Indicates the pattern of work for the secondary
2877  * assignment
2878  * @param p_shift Defines the shift information for this assignment. Valid
2879  * values are defined in US_SHIFTS lookup type.
2880  * @param p_spouse_salary Spouse's Salary
2881  * @param p_legal_representative Indicates if employee is a legal
2882  * representative
2883  * @param p_wc_override_code Workers Comp Override Code
2884  * @param p_eeo_1_establishment Reporting Establishment
2885  * @param p_pgp_segment1 People group key flexfield segment
2886  * @param p_pgp_segment2 People group key flexfield segment
2887  * @param p_pgp_segment3 People group key flexfield segment
2888  * @param p_pgp_segment4 People group key flexfield segment
2889  * @param p_pgp_segment5 People group key flexfield segment
2890  * @param p_pgp_segment6 People group key flexfield segment
2891  * @param p_pgp_segment7 People group key flexfield segment
2892  * @param p_pgp_segment8 People group key flexfield segment
2893  * @param p_pgp_segment9 People group key flexfield segment
2894  * @param p_pgp_segment10 People group key flexfield segment
2895  * @param p_pgp_segment11 People group key flexfield segment
2896  * @param p_pgp_segment12 People group key flexfield segment
2897  * @param p_pgp_segment13 People group key flexfield segment
2898  * @param p_pgp_segment14 People group key flexfield segment
2899  * @param p_pgp_segment15 People group key flexfield segment
2900  * @param p_pgp_segment16 People group key flexfield segment
2901  * @param p_pgp_segment17 People group key flexfield segment
2902  * @param p_pgp_segment18 People group key flexfield segment
2903  * @param p_pgp_segment19 People group key flexfield segment
2904  * @param p_pgp_segment20 People group key flexfield segment
2905  * @param p_pgp_segment21 People group key flexfield segment
2906  * @param p_pgp_segment22 People group key flexfield segment
2907  * @param p_pgp_segment23 People group key flexfield segment
2908  * @param p_pgp_segment24 People group key flexfield segment
2909  * @param p_pgp_segment25 People group key flexfield segment
2910  * @param p_pgp_segment26 People group key flexfield segment
2911  * @param p_pgp_segment27 People group key flexfield segment
2912  * @param p_pgp_segment28 People group key flexfield segment
2913  * @param p_pgp_segment29 People group key flexfield segment
2914  * @param p_pgp_segment30 People group key flexfield segment
2915  * @param p_pgp_concat_segments Concatenated segments for People Group Key
2916  * Flexfield. Concatenated segments can be supplied instead of individual
2917  * segments.
2918  * @param p_supervisor_assignment_id Supervisor's assignment which is
2919  * responsible for supervising this assignment.
2920  * @param p_group_name If p_validate is false, set to the People Group Key
2921  * Flexfield concatenated segments. If p_validate is true, set to null.
2922  * @param p_assignment_id If p_validate is false, then this uniquely identifies
2923  * the created assignment. If p_validate is true, then set to null.
2924  * @param p_soft_coding_keyflex_id If p_validate is false, then this uniquely
2925  * identifies the associated combination of the Soft Coded Key flexfield for
2926  * this assignment. If p_validate is true, then set to null.
2927  * @param p_people_group_id If p_validate is false, then this uniquely
2928  * identifies the associated combination of the People Group Key flexfield for
2929  * this assignment. If p_validate is true, then set to null.
2930  * @param p_object_version_number If p_validate is false, then set to the
2931  * version number of the created assignment. If p_validate is true, then the
2932  * value will be null.
2933  * @param p_effective_start_date If p_validate is false, then set to the
2934  * earliest effective start date for the created assignment. If p_validate is
2935  * true, then set to null.
2936  * @param p_effective_end_date If p_validate is false, then set to the
2937  * effective end date for the created assignment. If p_validate is true, then
2938  * set to null.
2939  * @param p_assignment_sequence If p_validate is false, then an automatically
2940  * incremented number is associated with this assignment, depending on the
2941  * number of assignment which already exist. If p_validate is true then set to
2942  * null.
2943  * @param p_comment_id If p_validate is false and comment text was provided,
2944  * then will be set to the identifier of the created assignment comment record.
2945  * If p_validate is true or no comment text was provided, then will be null.
2946  * @param p_concatenated_segments If p_validate is false, set to Soft Coded Key
2947  * Flexfield concatenated segments, if p_validate is true, set to null.
2948  * @param p_concat_segments Concatenated segments for Soft Coded Key Flexfield.
2949  * Concatenated segments can be supplied instead of individual segments.
2950  * @param p_other_manager_warning If set to true, then a manager existed in the
2951  * organization prior to calling this API and the manager flag has been set to
2952  * 'Y' for yes.
2953  * @param p_hourly_salaried_warning Set to true if values entered for Salary
2954  * Basis and Hourly Salaried Code are invalid as of p_effective_date.
2955  * @param p_cagr_grade_def_id If a value is passed in for this parameter, it
2956  * identifies an existing CAGR Key Flexfield combination to associate with the
2957  * assignment, and segment values are ignored. If a value is not passed in,
2958  * then the individual CAGR Key Flexfield segments supplied will be used to
2959  * choose an existing combination or create a new combination. When the API
2960  * completes, if p_validate is false, then this uniquely identifies the
2961  * associated combination of the CAGR Key flexfield for this assignment. If
2962  * p_validate is true, then set to null.
2963  * @param p_cagr_concatenated_segments CAGR Key Flexfield concatenated segments
2964  * @rep:displayname Create Secondary Employee Assignment for United States
2965  * @rep:category BUSINESS_ENTITY PER_EMPLOYEE_ASG
2966  * @rep:category MISC_EXTENSIONS HR_DATAPUMP
2967  * @rep:scope public
2968  * @rep:lifecycle active
2969  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
2970 */
2971 --
2972 -- {End Of Comments}
2973 --
2974 procedure create_us_secondary_emp_asg
2975   (p_validate                     in     boolean  default false
2976   ,p_effective_date               in     date
2977   ,p_person_id                    in     number
2978   ,p_organization_id              in     number
2979   ,p_grade_id                     in     number   default null
2980   ,p_position_id                  in     number   default null
2981   ,p_job_id                       in     number   default null
2982   ,p_assignment_status_type_id    in     number   default null
2983   ,p_payroll_id                   in     number   default null
2984   ,p_location_id                  in     number   default null
2985   ,p_supervisor_id                in     number   default null
2986   ,p_special_ceiling_step_id      in     number   default null
2987   ,p_pay_basis_id                 in     number   default null
2988   ,p_assignment_number            in out nocopy varchar2
2989   ,p_change_reason                in     varchar2 default null
2990   ,p_comments                     in     varchar2 default null
2991   ,p_date_probation_end           in     date     default null
2992   ,p_default_code_comb_id         in     number   default null
2993   ,p_employment_category          in     varchar2 default null
2994   ,p_frequency                    in     varchar2 default null
2995   ,p_internal_address_line        in     varchar2 default null
2996   ,p_manager_flag                 in     varchar2 default null
2997   ,p_normal_hours                 in     number   default null
2998   ,p_perf_review_period           in     number   default null
2999   ,p_perf_review_period_frequency in     varchar2 default null
3000   ,p_probation_period             in     number   default null
3001   ,p_probation_unit               in     varchar2 default null
3002   ,p_sal_review_period            in     number   default null
3003   ,p_sal_review_period_frequency  in     varchar2 default null
3004   ,p_set_of_books_id              in     number   default null
3005   ,p_source_type                  in     varchar2 default null
3006   ,p_time_normal_finish           in     varchar2 default null
3007   ,p_time_normal_start            in     varchar2 default null
3008   ,p_bargaining_unit_code         in     varchar2 default null
3009   ,p_labour_union_member_flag     in     varchar2 default 'N'
3010   ,p_hourly_salaried_code         in     varchar2 default null
3011   ,p_ass_attribute_category       in     varchar2 default null
3012   ,p_ass_attribute1               in     varchar2 default null
3013   ,p_ass_attribute2               in     varchar2 default null
3014   ,p_ass_attribute3               in     varchar2 default null
3015   ,p_ass_attribute4               in     varchar2 default null
3016   ,p_ass_attribute5               in     varchar2 default null
3017   ,p_ass_attribute6               in     varchar2 default null
3018   ,p_ass_attribute7               in     varchar2 default null
3019   ,p_ass_attribute8               in     varchar2 default null
3020   ,p_ass_attribute9               in     varchar2 default null
3021   ,p_ass_attribute10              in     varchar2 default null
3022   ,p_ass_attribute11              in     varchar2 default null
3023   ,p_ass_attribute12              in     varchar2 default null
3024   ,p_ass_attribute13              in     varchar2 default null
3025   ,p_ass_attribute14              in     varchar2 default null
3026   ,p_ass_attribute15              in     varchar2 default null
3027   ,p_ass_attribute16              in     varchar2 default null
3028   ,p_ass_attribute17              in     varchar2 default null
3029   ,p_ass_attribute18              in     varchar2 default null
3030   ,p_ass_attribute19              in     varchar2 default null
3031   ,p_ass_attribute20              in     varchar2 default null
3032   ,p_ass_attribute21              in     varchar2 default null
3033   ,p_ass_attribute22              in     varchar2 default null
3034   ,p_ass_attribute23              in     varchar2 default null
3035   ,p_ass_attribute24              in     varchar2 default null
3036   ,p_ass_attribute25              in     varchar2 default null
3037   ,p_ass_attribute26              in     varchar2 default null
3038   ,p_ass_attribute27              in     varchar2 default null
3039   ,p_ass_attribute28              in     varchar2 default null
3040   ,p_ass_attribute29              in     varchar2 default null
3041   ,p_ass_attribute30              in     varchar2 default null
3042   ,p_title                        in     varchar2 default null
3043   ,p_tax_unit                     in     varchar2 default null
3044   ,p_timecard_approver            in     varchar2 default null
3045   ,p_timecard_required            in     varchar2 default null
3046   ,p_work_schedule                in     varchar2 default null
3047   ,p_shift                        in     varchar2 default null
3048   ,p_spouse_salary                in     varchar2 default null
3049   ,p_legal_representative         in     varchar2 default null
3050   ,p_wc_override_code             in     varchar2 default null
3051   ,p_eeo_1_establishment          in     varchar2 default null
3052   ,p_pgp_segment1                 in     varchar2 default null
3053   ,p_pgp_segment2                 in     varchar2 default null
3054   ,p_pgp_segment3                 in     varchar2 default null
3055   ,p_pgp_segment4                 in     varchar2 default null
3056   ,p_pgp_segment5                 in     varchar2 default null
3057   ,p_pgp_segment6                 in     varchar2 default null
3058   ,p_pgp_segment7                 in     varchar2 default null
3059   ,p_pgp_segment8                 in     varchar2 default null
3060   ,p_pgp_segment9                 in     varchar2 default null
3061   ,p_pgp_segment10                in     varchar2 default null
3062   ,p_pgp_segment11                in     varchar2 default null
3063   ,p_pgp_segment12                in     varchar2 default null
3064   ,p_pgp_segment13                in     varchar2 default null
3065   ,p_pgp_segment14                in     varchar2 default null
3066   ,p_pgp_segment15                in     varchar2 default null
3067   ,p_pgp_segment16                in     varchar2 default null
3068   ,p_pgp_segment17                in     varchar2 default null
3069   ,p_pgp_segment18                in     varchar2 default null
3070   ,p_pgp_segment19                in     varchar2 default null
3071   ,p_pgp_segment20                in     varchar2 default null
3072   ,p_pgp_segment21                in     varchar2 default null
3073   ,p_pgp_segment22                in     varchar2 default null
3074   ,p_pgp_segment23                in     varchar2 default null
3075   ,p_pgp_segment24                in     varchar2 default null
3076   ,p_pgp_segment25                in     varchar2 default null
3077   ,p_pgp_segment26                in     varchar2 default null
3078   ,p_pgp_segment27                in     varchar2 default null
3079   ,p_pgp_segment28                in     varchar2 default null
3080   ,p_pgp_segment29                in     varchar2 default null
3081   ,p_pgp_segment30                in     varchar2 default null
3082 -- Bug 944911
3083 -- Amended p_group_name to out
3084 -- Added new param p_pgp_concat_segments - for sec asg procs
3085 -- for others added p_concat_segments
3086   ,p_pgp_concat_segments	  in     varchar2 default null
3087   ,p_supervisor_assignment_id     in     number   default null
3088   ,p_group_name                      out nocopy varchar2
3089   ,p_assignment_id                   out nocopy number
3090   ,p_soft_coding_keyflex_id          out nocopy number
3091   ,p_people_group_id                 out nocopy number
3092   ,p_object_version_number           out nocopy number
3093   ,p_effective_start_date            out nocopy date
3094   ,p_effective_end_date              out nocopy date
3095   ,p_assignment_sequence             out nocopy number
3096   ,p_comment_id                      out nocopy number
3097 -- Bug 944911
3098 -- Changed concatenated_segments to be out from in out
3099 -- added new param p_concat_segments ( in )
3100   ,p_concatenated_segments           out nocopy varchar2
3101   ,p_concat_segments                 in  varchar2 default null
3102   ,p_other_manager_warning           out nocopy boolean
3103   ,p_hourly_salaried_warning         out nocopy boolean
3104   ,p_cagr_grade_def_id               out nocopy number
3105   ,p_cagr_concatenated_segments      out nocopy varchar2
3106   );
3107 
3108 --
3109 -- ----------------------------------------------------------------------------
3110 -- |--------------------------< final_process_emp_asg >-----------------------|
3111 -- ----------------------------------------------------------------------------
3112 --
3113 -- {Start Of Comments}
3114 /*#
3115  * This API terminates any assignment except the primary assignment.
3116  *
3117  * This API carries out the second step in terminating an individual employee
3118  * assignment. The employee assignment must already have an actual termination
3119  * date. The actual termination date is derived from the date when the
3120  * assignment status first changes to a TERM_ASSIGN system status. Element
3121  * entries for the assignment that have an element termination rule of 'Final
3122  * Close' are ended as of the final process date. Element entries for the
3123  * assignment that have an element termination rule of 'Last Standard Process'
3124  * are ended as of the final process date, if the last standard process date is
3125  * later than the final process date. Any cost allocations, grade step/point
3126  * placements, cobra coverage benefits and personal payment methods for this
3127  * assignment are ended as of the final process date.
3128  *
3129  * <p><b>Licensing</b><br>
3130  * This API is licensed for use with Human Resources.
3131  *
3132  * <p><b>Prerequisites</b><br>
3133  * The assignment must be a secondary employee assignment. The assignment must
3134  * already have been terminated by a previous call to
3135  * actual_termination_emp_asg.
3136  *
3137  * <p><b>Post Success</b><br>
3138  * The API ends the assignment on the final process date and ends any
3139  * associated element entries.
3140  *
3141  * <p><b>Post Failure</b><br>
3142  * The API does not end the assignment or element entries and raises an error.
3143  * @param p_validate If true, then validation alone will be performed and the
3144  * database will remain unchanged. If false and all validation checks pass,
3145  * then the database will be modified.
3146  * @param p_assignment_id Identifies the assignment record to be modified.
3147  * @param p_object_version_number Pass in the current version number of the
3148  * assignment to be updated. When the API completes if p_validate is false,
3149  * will be set to the new version number of the updated assignment. If
3150  * p_validate is true will be set to the same value which was passed in.
3151  * @param p_final_process_date The last date on which the assignment should
3152  * exist.
3153  * @param p_effective_start_date If p_validate is false, then set to the
3154  * effective start date on the updated assignment row which now exists as of
3155  * the effective date. If p_validate is true, then set to null.
3156  * @param p_effective_end_date If p_validate is false, then set to the
3157  * effective end date on the updated assignment row which now exists as of the
3158  * effective date. If p_validate is true, then set to null.
3159  * @param p_org_now_no_manager_warning Set to true if this assignment had the
3160  * manager flag set to 'Y' and there are no other managers in the assignment's
3161  * organization. Set to false if there is another manager in the assignment's
3162  * organization or if this assignment did not have the manager flag set to 'Y'.
3163  * The warning value only applies as of the final process date.
3164  * @param p_asg_future_changes_warning Set to true if at least one assignment
3165  * change, after the final process date, has been deleted as a result of
3166  * terminating the assignment. (The only valid change after the actual
3167  * termination date is setting the assignment status to another TERM_ASSIGN
3168  * status.) Set to false when there were no changes after final process date.
3169  * @param p_entries_changed_warning Set to 'Y' when at least one element entry
3170  * was altered due to the assignment change. Set to 'S' if at least one salary
3171  * element entry was affected. This is a more specific case than 'Y'. Otherwise
3172  * set to 'N', when no element entries were changed.
3173  * @rep:displayname Final Process Employee Assignment
3174  * @rep:category BUSINESS_ENTITY PER_EMPLOYEE_ASG
3175  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
3176  * @rep:scope public
3177  * @rep:lifecycle active
3178  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
3179 */
3180 --
3181 -- {End Of Comments}
3182 --
3183 procedure final_process_emp_asg
3184   (p_validate                      in     boolean  default false
3185   ,p_assignment_id                 in     number
3186   ,p_object_version_number         in out nocopy number
3187   ,p_final_process_date            in     date
3188   ,p_effective_start_date             out nocopy date
3189   ,p_effective_end_date               out nocopy date
3190   ,p_org_now_no_manager_warning       out nocopy boolean
3191   ,p_asg_future_changes_warning       out nocopy boolean
3192   ,p_entries_changed_warning          out nocopy varchar2
3193   );
3194 --
3195 -- ----------------------------------------------------------------------------
3196 -- |-----------------------------< suspend_emp_asg >--------------------------|
3197 -- ----------------------------------------------------------------------------
3198 --
3199 -- {Start Of Comments}
3200 /*#
3201  * This API changes the status of an employee assignment to a "Suspended"
3202  * status.
3203  *
3204  *
3205  * <p><b>Licensing</b><br>
3206  * This API is licensed for use with Human Resources.
3207  *
3208  * <p><b>Prerequisites</b><br>
3209  * The assignment must be an employee assignment, and must exist on the
3210  * effective date.
3211  *
3212  * <p><b>Post Success</b><br>
3213  * The employee assignment will be set to a suspended status.
3214  *
3215  * <p><b>Post Failure</b><br>
3216  * The API does not update the assignment and raises an error.
3217  * @param p_validate If true, then validation alone will be performed and the
3218  * database will remain unchanged. If false and all validation checks pass,
3219  * then the database will be modified.
3220  * @param p_effective_date Determines when the DateTrack operation comes into
3221  * force.
3222  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
3223  * updating the record. You must set to either UPDATE, CORRECTION,
3224  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
3225  * particular record depend on the dates of previous record changes and the
3226  * effective date of this change.
3227  * @param p_assignment_id Identifies the assignment record to be modified.
3228  * @param p_change_reason Reason for the assignment status change. If there is
3229  * no change reason the parameter can be null. Valid values are defined in the
3230  * EMP_ASSIGN_REASON lookup type.
3231  * @param p_object_version_number Pass in the current version number of the
3232  * assignment to be updated. When the API completes if p_validate is false,
3233  * will be set to the new version number of the updated assignment. If
3234  * p_validate is true will be set to the same value which was passed in.
3235  * @param p_assignment_status_type_id The new assignment status. The new status
3236  * must have a system status of SUSP_ASSIGN. If the assignment status is
3237  * already a type of SUSP_ASSIGN this API can be used to set a different
3238  * suspend status. If this parameter is not explicitly passed, the API uses the
3239  * default SUSP_ASSIGN status for the assignment's business group.
3240  * @param p_effective_start_date If p_validate is false, then set to the
3241  * effective start date on the updated assignment row which now exists as of
3242  * the effective date. If p_validate is true, then set to null.
3243  * @param p_effective_end_date If p_validate is false, then set to the
3244  * effective end date on the updated assignment row which now exists as of the
3245  * effective date. If p_validate is true, then set to null.
3246  * @rep:displayname Suspend Employee Assignment
3247  * @rep:category BUSINESS_ENTITY PER_EMPLOYEE_ASG
3248  * @rep:category MISC_EXTENSIONS HR_DATAPUMP
3249  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
3250  * @rep:scope public
3251  * @rep:lifecycle active
3252  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
3253 */
3254 --
3255 -- {End Of Comments}
3256 --
3257 procedure suspend_emp_asg
3258   (p_validate                     in     boolean  default false
3259   ,p_effective_date               in     date
3260   ,p_datetrack_update_mode        in     varchar2
3261   ,p_assignment_id                in     number
3262   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
3263   ,p_object_version_number        in out nocopy number
3264   ,p_assignment_status_type_id    in     number   default hr_api.g_number
3265   ,p_effective_start_date            out nocopy date
3266   ,p_effective_end_date              out nocopy date
3267   );
3268 --
3269 -- ----------------------------------------------------------------------------
3270 -- |------------------------------< update_cwk_asg >--------------------------|
3271 -- ----------------------------------------------------------------------------
3272 --
3273 -- {Start Of Comments}
3274 /*#
3275  * This API updates contingent worker assignment.
3276  *
3277  *
3278  * <p><b>Licensing</b><br>
3279  * This API is licensed for use with Human Resources.
3280  *
3281  * <p><b>Prerequisites</b><br>
3282  * The assignment must exist as of the effective date, and must be a contingent
3283  * worker assignment.
3284  *
3285  * <p><b>Post Success</b><br>
3286  * The API updates the assignment.
3287  *
3288  * <p><b>Post Failure</b><br>
3289  * The API does not update the assignment and raises an error.
3290  * @param p_validate If true, then validation alone will be performed and the
3291  * database will remain unchanged. If false and all validation checks pass,
3292  * then the database will be modified.
3293  * @param p_effective_date Determines when the DateTrack operation comes into
3294  * force.
3295  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
3296  * updating the record. You must set to either UPDATE, CORRECTION,
3297  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
3298  * particular record depend on the dates of previous record changes and the
3299  * effective date of this change.
3300  * @param p_assignment_id Identifies the assignment record to be updated.
3301  * @param p_object_version_number Pass in the current version number of the
3302  * assignment to be updated. When the API completes if p_validate is false,
3303  * will be set to the new version number of the updated assignment. If
3304  * p_validate is true will be set to the same value which was passed in.
3305  * @param p_assignment_category Assignment Category. Valid values are defined
3306  * in the CWK_ASG_CATEGORY lookup type.
3307  * @param p_assignment_number Assignment Number
3308  * @param p_change_reason Reason for the assignment status change. If there is
3309  * no change reason the parameter can be null. Valid values are defined in the
3310  * CWK_ASSIGN_REASON lookup_type.
3311  * @param p_comments Comment text.
3312  * @param p_default_code_comb_id Identifier for the General Ledger Accounting
3313  * Flexfield combination that applies to this assignment
3314  * @param p_establishment_id For French business groups, this identifies the
3315  * Establishment Legal Entity for this assignment.
3316  * @param p_frequency Frequency associated with the defined normal working
3317  * hours. Valid values are defined in the FREQUENCY lookup type.
3318  * @param p_internal_address_line Internal address identified with this
3319  * assignment.
3320  * @param p_labour_union_member_flag Labour union member
3321  * @param p_manager_flag Indicates whether the contingent worker is a manager
3322  * @param p_normal_hours Normal working hours for this assignment
3323  * @param p_project_title Project title
3324  * @param p_set_of_books_id Identifies General Ledger set of books.
3325  * @param p_source_type Recruitment activity which this assignment is sourced
3326  * from. Valid values are defined in the REC_TYPE lookup type.
3327  * @param p_supervisor_id Supervisor for the assignment. The value refers to
3328  * the supervisor's person record.
3329  * @param p_time_normal_finish Normal work finish time
3330  * @param p_time_normal_start Normal work start time
3331  * @param p_title Obsolete parameter, do not use.
3332  * @param p_vendor_assignment_number Identification number given by the
3333  * supplier to the contingent worker's assignment
3334  * @param p_vendor_employee_number Identification number given by the supplier
3335  * to the contingent worker
3336  * @param p_vendor_id Identifier of the Supplier of the contingent worker from
3337  * iProcurement
3338  * @param p_vendor_site_id Identifier of the Supplier site of the contingent
3339  * worker from iProcurement
3340  * @param p_po_header_id Identifier of the Purchase Order under which this
3341  * contingent workers assignment is being paid, from iProcurement
3342  * @param p_po_line_id Identifier of the Purchase Order Line under which this
3343  * contingent workers assignment is being paid, from iProcurement
3344  * @param p_projected_assignment_end Projected end date of this assignment.
3345  * @param p_assignment_status_type_id Assignment status. The system status must
3346  * be the same as before the update. Otherwise one of the status change APIs
3347  * should be used.
3348  * @param p_concat_segments Concatenated segments for Soft Coded Key Flexfield.
3349  * Concatenated segments can be supplied instead of individual segments.
3350  * @param p_attribute_category This context value determines which flexfield
3351  * structure to use with the descriptive flexfield segments.
3352  * @param p_attribute1 Descriptive flexfield segment.
3353  * @param p_attribute2 Descriptive flexfield segment.
3354  * @param p_attribute3 Descriptive flexfield segment.
3355  * @param p_attribute4 Descriptive flexfield segment.
3356  * @param p_attribute5 Descriptive flexfield segment.
3357  * @param p_attribute6 Descriptive flexfield segment.
3358  * @param p_attribute7 Descriptive flexfield segment.
3359  * @param p_attribute8 Descriptive flexfield segment.
3360  * @param p_attribute9 Descriptive flexfield segment.
3361  * @param p_attribute10 Descriptive flexfield segment.
3362  * @param p_attribute11 Descriptive flexfield segment.
3363  * @param p_attribute12 Descriptive flexfield segment.
3364  * @param p_attribute13 Descriptive flexfield segment.
3365  * @param p_attribute14 Descriptive flexfield segment.
3366  * @param p_attribute15 Descriptive flexfield segment.
3367  * @param p_attribute16 Descriptive flexfield segment.
3368  * @param p_attribute17 Descriptive flexfield segment.
3369  * @param p_attribute18 Descriptive flexfield segment.
3370  * @param p_attribute19 Descriptive flexfield segment.
3371  * @param p_attribute20 Descriptive flexfield segment.
3372  * @param p_attribute21 Descriptive flexfield segment.
3373  * @param p_attribute22 Descriptive flexfield segment.
3374  * @param p_attribute23 Descriptive flexfield segment.
3375  * @param p_attribute24 Descriptive flexfield segment.
3376  * @param p_attribute25 Descriptive flexfield segment.
3377  * @param p_attribute26 Descriptive flexfield segment.
3378  * @param p_attribute27 Descriptive flexfield segment.
3379  * @param p_attribute28 Descriptive flexfield segment.
3380  * @param p_attribute29 Descriptive flexfield segment.
3381  * @param p_attribute30 Descriptive flexfield segment.
3382  * @param p_scl_segment1 Soft Coded key flexfield segment
3383  * @param p_scl_segment2 Soft Coded key flexfield segment
3384  * @param p_scl_segment3 Soft Coded key flexfield segment
3385  * @param p_scl_segment4 Soft Coded key flexfield segment
3386  * @param p_scl_segment5 Soft Coded key flexfield segment
3387  * @param p_scl_segment6 Soft Coded key flexfield segment
3388  * @param p_scl_segment7 Soft Coded key flexfield segment
3389  * @param p_scl_segment8 Soft Coded key flexfield segment
3390  * @param p_scl_segment9 Soft Coded key flexfield segment
3391  * @param p_scl_segment10 Soft Coded key flexfield segment
3392  * @param p_scl_segment11 Soft Coded key flexfield segment
3393  * @param p_scl_segment12 Soft Coded key flexfield segment
3394  * @param p_scl_segment13 Soft Coded key flexfield segment
3395  * @param p_scl_segment14 Soft Coded key flexfield segment
3396  * @param p_scl_segment15 Soft Coded key flexfield segment
3397  * @param p_scl_segment16 Soft Coded key flexfield segment
3398  * @param p_scl_segment17 Soft Coded key flexfield segment
3399  * @param p_scl_segment18 Soft Coded key flexfield segment
3400  * @param p_scl_segment19 Soft Coded key flexfield segment
3401  * @param p_scl_segment20 Soft Coded key flexfield segment
3402  * @param p_scl_segment21 Soft Coded key flexfield segment
3403  * @param p_scl_segment22 Soft Coded key flexfield segment
3404  * @param p_scl_segment23 Soft Coded key flexfield segment
3405  * @param p_scl_segment24 Soft Coded key flexfield segment
3406  * @param p_scl_segment25 Soft Coded key flexfield segment
3407  * @param p_scl_segment26 Soft Coded key flexfield segment
3408  * @param p_scl_segment27 Soft Coded key flexfield segment
3409  * @param p_scl_segment28 Soft Coded key flexfield segment
3410  * @param p_scl_segment29 Soft Coded key flexfield segment
3411  * @param p_scl_segment30 Soft Coded key flexfield segment
3412  * @param p_supervisor_assignment_id Supervisor's assignment that is
3413  * responsible for supervising this assignment.
3414  * @param p_org_now_no_manager_warning Set to true if as a result of the update
3415  * there is no manager in the organization. Otherwise set to false.
3416  * @param p_effective_start_date If p_validate is false, then set to the
3417  * earliest effective start date for the created assignment. If p_validate is
3418  * true, then set to null.
3419  * @param p_effective_end_date If p_validate is false, then set to the
3420  * effective end date for the created assignment. If p_validate is true, then
3421  * set to null.
3422  * @param p_comment_id If p_validate is false and comment text was provided,
3423  * then will be set to the identifier of the created assignment comment record.
3424  * If p_validate is true or no comment text was provided, then will be null.
3425  * @param p_no_managers_warning Set to true if as a result of the update there
3426  * is no manager in the organization. Otherwise set to false.
3427  * @param p_other_manager_warning If set to true, then a manager existed in the
3428  * organization prior to calling this API and the manager flag has been set to
3429  * 'Y' for yes.
3430  * @param p_soft_coding_keyflex_id If p_validate is false, then this uniquely
3431  * identifies the associated combination of the Soft Coded Key flexfield for
3432  * this assignment. If p_validate is true, then set to null.
3433  * @param p_concatenated_segments If p_validate is false, set to Soft Coded Key
3434  * Flexfield concatenated segments, if p_validate is true, set to null.
3435  * @param p_hourly_salaried_warning Set to true if values entered for Salary
3436  * Basis and Hourly Salaried Code are invalid date as of p_effective_date.
3437  * @rep:displayname Update Contingent Worker Assignment
3438  * @rep:category BUSINESS_ENTITY PER_CWK_ASG
3439  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
3440  * @rep:scope public
3441  * @rep:lifecycle active
3442  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
3443 */
3444 --
3445 -- {End Of Comments}
3446 --
3447   procedure update_cwk_asg
3448   (p_validate                     in     boolean  default false
3449   ,p_effective_date               in     date
3450   ,p_datetrack_update_mode        in     varchar2
3451   ,p_assignment_id                in     number
3452   ,p_object_version_number        in out nocopy number
3453   ,p_assignment_category          in     varchar2 default hr_api.g_varchar2
3454   ,p_assignment_number            in     varchar2 default hr_api.g_varchar2
3455   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
3456   ,p_comments                     in     varchar2 default hr_api.g_varchar2
3457   ,p_default_code_comb_id         in     number   default hr_api.g_number
3458   ,p_establishment_id             in     number   default hr_api.g_number
3459   ,p_frequency                    in     varchar2 default hr_api.g_varchar2
3460   ,p_internal_address_line        in     varchar2 default hr_api.g_varchar2
3461   ,p_labour_union_member_flag     in     varchar2 default hr_api.g_varchar2
3462   ,p_manager_flag                 in     varchar2 default hr_api.g_varchar2
3463   ,p_normal_hours                 in     number   default hr_api.g_number
3464   ,p_project_title                in     varchar2 default hr_api.g_varchar2
3465   ,p_set_of_books_id              in     number   default hr_api.g_number
3466   ,p_source_type                  in     varchar2 default hr_api.g_varchar2
3467   ,p_supervisor_id                in     number   default hr_api.g_number
3468   ,p_time_normal_finish           in     varchar2 default hr_api.g_varchar2
3469   ,p_time_normal_start            in     varchar2 default hr_api.g_varchar2
3470   ,p_title                        in     varchar2 default hr_api.g_varchar2
3471   ,p_vendor_assignment_number     in     varchar2 default hr_api.g_varchar2
3472   ,p_vendor_employee_number       in     varchar2 default hr_api.g_varchar2
3473   ,p_vendor_id                    in     number   default hr_api.g_number
3474   ,p_vendor_site_id               in     number   default hr_api.g_number
3475   ,p_po_header_id                 in     number   default hr_api.g_number
3476   ,p_po_line_id                   in     number   default hr_api.g_number
3477   ,p_projected_assignment_end     in     date     default hr_api.g_date
3478   ,p_assignment_status_type_id    in     number   default hr_api.g_number
3479   ,p_concat_segments              in     varchar2 default null
3480   ,p_attribute_category           in     varchar2 default hr_api.g_varchar2
3481   ,p_attribute1                   in     varchar2 default hr_api.g_varchar2
3482   ,p_attribute2                   in     varchar2 default hr_api.g_varchar2
3483   ,p_attribute3                   in     varchar2 default hr_api.g_varchar2
3484   ,p_attribute4                   in     varchar2 default hr_api.g_varchar2
3485   ,p_attribute5                   in     varchar2 default hr_api.g_varchar2
3486   ,p_attribute6                   in     varchar2 default hr_api.g_varchar2
3487   ,p_attribute7                   in     varchar2 default hr_api.g_varchar2
3488   ,p_attribute8                   in     varchar2 default hr_api.g_varchar2
3489   ,p_attribute9                   in     varchar2 default hr_api.g_varchar2
3490   ,p_attribute10                  in     varchar2 default hr_api.g_varchar2
3491   ,p_attribute11                  in     varchar2 default hr_api.g_varchar2
3492   ,p_attribute12                  in     varchar2 default hr_api.g_varchar2
3493   ,p_attribute13                  in     varchar2 default hr_api.g_varchar2
3494   ,p_attribute14                  in     varchar2 default hr_api.g_varchar2
3495   ,p_attribute15                  in     varchar2 default hr_api.g_varchar2
3496   ,p_attribute16                  in     varchar2 default hr_api.g_varchar2
3497   ,p_attribute17                  in     varchar2 default hr_api.g_varchar2
3498   ,p_attribute18                  in     varchar2 default hr_api.g_varchar2
3499   ,p_attribute19                  in     varchar2 default hr_api.g_varchar2
3500   ,p_attribute20                  in     varchar2 default hr_api.g_varchar2
3501   ,p_attribute21                  in     varchar2 default hr_api.g_varchar2
3502   ,p_attribute22                  in     varchar2 default hr_api.g_varchar2
3503   ,p_attribute23                  in     varchar2 default hr_api.g_varchar2
3504   ,p_attribute24                  in     varchar2 default hr_api.g_varchar2
3505   ,p_attribute25                  in     varchar2 default hr_api.g_varchar2
3506   ,p_attribute26                  in     varchar2 default hr_api.g_varchar2
3507   ,p_attribute27                  in     varchar2 default hr_api.g_varchar2
3508   ,p_attribute28                  in     varchar2 default hr_api.g_varchar2
3509   ,p_attribute29                  in     varchar2 default hr_api.g_varchar2
3510   ,p_attribute30                  in     varchar2 default hr_api.g_varchar2
3511   ,p_scl_segment1                 in     varchar2 default hr_api.g_varchar2
3512   ,p_scl_segment2                 in     varchar2 default hr_api.g_varchar2
3513   ,p_scl_segment3                 in     varchar2 default hr_api.g_varchar2
3514   ,p_scl_segment4                 in     varchar2 default hr_api.g_varchar2
3515   ,p_scl_segment5                 in     varchar2 default hr_api.g_varchar2
3516   ,p_scl_segment6                 in     varchar2 default hr_api.g_varchar2
3517   ,p_scl_segment7                 in     varchar2 default hr_api.g_varchar2
3518   ,p_scl_segment8                 in     varchar2 default hr_api.g_varchar2
3519   ,p_scl_segment9                 in     varchar2 default hr_api.g_varchar2
3520   ,p_scl_segment10                in     varchar2 default hr_api.g_varchar2
3521   ,p_scl_segment11                in     varchar2 default hr_api.g_varchar2
3522   ,p_scl_segment12                in     varchar2 default hr_api.g_varchar2
3523   ,p_scl_segment13                in     varchar2 default hr_api.g_varchar2
3524   ,p_scl_segment14                in     varchar2 default hr_api.g_varchar2
3525   ,p_scl_segment15                in     varchar2 default hr_api.g_varchar2
3526   ,p_scl_segment16                in     varchar2 default hr_api.g_varchar2
3527   ,p_scl_segment17                in     varchar2 default hr_api.g_varchar2
3528   ,p_scl_segment18                in     varchar2 default hr_api.g_varchar2
3529   ,p_scl_segment19                in     varchar2 default hr_api.g_varchar2
3530   ,p_scl_segment20                in     varchar2 default hr_api.g_varchar2
3531   ,p_scl_segment21                in     varchar2 default hr_api.g_varchar2
3532   ,p_scl_segment22                in     varchar2 default hr_api.g_varchar2
3533   ,p_scl_segment23                in     varchar2 default hr_api.g_varchar2
3534   ,p_scl_segment24                in     varchar2 default hr_api.g_varchar2
3535   ,p_scl_segment25                in     varchar2 default hr_api.g_varchar2
3536   ,p_scl_segment26                in     varchar2 default hr_api.g_varchar2
3537   ,p_scl_segment27                in     varchar2 default hr_api.g_varchar2
3538   ,p_scl_segment28                in     varchar2 default hr_api.g_varchar2
3539   ,p_scl_segment29                in     varchar2 default hr_api.g_varchar2
3540   ,p_scl_segment30                in     varchar2 default hr_api.g_varchar2
3541   ,p_supervisor_assignment_id     in     number   default hr_api.g_number
3542   ,p_org_now_no_manager_warning      out nocopy boolean
3543   ,p_effective_start_date            out nocopy date
3544   ,p_effective_end_date              out nocopy date
3545   ,p_comment_id                      out nocopy number
3546   ,p_no_managers_warning             out nocopy boolean
3547   ,p_other_manager_warning           out nocopy boolean
3548   ,p_soft_coding_keyflex_id          out nocopy number
3549   ,p_concatenated_segments           out nocopy varchar2
3550   ,p_hourly_salaried_warning         out nocopy boolean);
3551 
3552 --
3553 -- ----------------------------------------------------------------------------
3554 -- |-------------------------< update_cwk_asg_criteria >----------------------|
3555 -- ----------------------------------------------------------------------------
3556 --
3557 -- {Start Of Comments}
3558 /*#
3559  * This API updates attributes of a contingent worker assignment that may
3560  * affect the entitlement to element entries - currently Contingent Workers may
3561  * not have element entries so this API is reserved for future use.
3562  *
3563  * To update other attributes, use the API update_cwk_asg. Contingent Workers
3564  * are not entitled to element entries, this API is provided for future
3565  * compatibility.
3566  *
3567  * <p><b>Licensing</b><br>
3568  * This API is licensed for use with Human Resources.
3569  *
3570  * <p><b>Prerequisites</b><br>
3571  * The assignment must be an contingent worker assignment. The assignment must
3572  * exist as of the effective date of the change
3573  *
3574  * <p><b>Post Success</b><br>
3575  * The API updates the attributes of assignment.
3576  *
3577  * <p><b>Post Failure</b><br>
3578  * The API does not update the assignment and raises an error.
3579  * @param p_validate If true, then validation alone will be performed and the
3580  * database will remain unchanged. If false and all validation checks pass,
3581  * then the database will be modified.
3582  * @param p_effective_date Determines when the DateTrack operation comes into
3583  * force.
3584  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
3585  * updating the record. You must set to either UPDATE, CORRECTION,
3586  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
3587  * particular record depend on the dates of previous record changes and the
3588  * effective date of this change.
3589  * @param p_assignment_id Identifies the assignment record to be modified.
3590  * @param p_called_from_mass_update Set to TRUE if the API is called from the
3591  * Mass Update Processes. This defaults Job and Organization information from
3592  * the Position information, if the first two are not supplied.
3593  * @param p_object_version_number Pass in the current version number of the
3594  * assignment to be updated. When the API completes if p_validate is false,
3595  * will be set to the new version number of the updated assignment. If
3596  * p_validate is true will be set to the same value which was passed in.
3597  * @param p_grade_id Identifies the grade of the assignment
3598  * @param p_position_id Identifies the position of the assignment
3599  * @param p_job_id Identifies the job of the assignment
3600  * @param p_location_id Identifies the location of the assignment
3601  * @param p_organization_id Identifies the organization of the assignment
3602  * @param p_pay_basis_id Salary basis for the assignment
3603  * @param p_segment1 Key flexfield segment.
3604  * @param p_segment2 Key flexfield segment.
3605  * @param p_segment3 Key flexfield segment.
3606  * @param p_segment4 Key flexfield segment.
3607  * @param p_segment5 Key flexfield segment.
3608  * @param p_segment6 Key flexfield segment.
3609  * @param p_segment7 Key flexfield segment.
3610  * @param p_segment8 Key flexfield segment.
3611  * @param p_segment9 Key flexfield segment.
3612  * @param p_segment10 Key flexfield segment.
3613  * @param p_segment11 Key flexfield segment.
3614  * @param p_segment12 Key flexfield segment.
3615  * @param p_segment13 Key flexfield segment.
3616  * @param p_segment14 Key flexfield segment.
3617  * @param p_segment15 Key flexfield segment.
3618  * @param p_segment16 Key flexfield segment.
3619  * @param p_segment17 Key flexfield segment.
3620  * @param p_segment18 Key flexfield segment.
3621  * @param p_segment19 Key flexfield segment.
3622  * @param p_segment20 Key flexfield segment.
3623  * @param p_segment21 Key flexfield segment.
3624  * @param p_segment22 Key flexfield segment.
3625  * @param p_segment23 Key flexfield segment.
3626  * @param p_segment24 Key flexfield segment.
3627  * @param p_segment25 Key flexfield segment.
3628  * @param p_segment26 Key flexfield segment.
3629  * @param p_segment27 Key flexfield segment.
3630  * @param p_segment28 Key flexfield segment.
3631  * @param p_segment29 Key flexfield segment.
3632  * @param p_segment30 Key flexfield segment.
3633  * @param p_concat_segments Concatenated Key Flexfield segments
3634  * @param p_people_group_name Concatenated Key Flexfield segments
3635  * @param p_effective_start_date If p_validate is false, then set to the
3636  * effective start date on the updated assignment row which now exists as of
3637  * the effective date. If p_validate is true, then set to null.
3638  * @param p_effective_end_date If p_validate is false, then set to the
3639  * effective end date on the updated assignment row which now exists as of the
3640  * effective date. If p_validate is true, then set to null.
3641  * @param p_people_group_id Identifier of the People Group Key Flexfield
3642  * combinations row associated with the segments passed.
3643  * @param p_org_now_no_manager_warning Set to true if this assignment is a
3644  * manager, the organization is updated and there is now no manager in the
3645  * previous organization. Set to false if another manager exists in the
3646  * previous organization.
3647  * @param p_other_manager_warning If set to true, then a manager existed in the
3648  * organization prior to calling this API and the manager flag has been set to
3649  * 'Y' for yes.
3650  * @param p_spp_delete_warning Set to true when grade step and point placements
3651  * are date effectively ended or purged by the update of the assignment. Both
3652  * types of change occur when the Grade is changed and spinal point placements
3653  * exist over the updated date range. Set to false when no grade step and point
3654  * placements are affected.
3655  * @param p_entries_changed_warning Always set to 'N'. Contingent Workers are
3656  * not entitled to element entries so no entries can be changed as a result of
3657  * the update.
3658  * @param p_tax_district_changed_warning Always set to False, since contingent
3659  * worker assignments are not eligible to have a Payroll, therefore cannot be
3660  * included in the United Kingdom processing which determines the value of this
3661  * parameter.
3662  * @rep:displayname Update Contingent Worker Assignment Criteria
3663  * @rep:category BUSINESS_ENTITY PER_CWK_ASG
3664  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
3665  * @rep:scope public
3666  * @rep:lifecycle active
3667  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
3668 */
3669 --
3670 -- {End Of Comments}
3671 --
3672 procedure update_cwk_asg_criteria
3673   (p_validate                     in     boolean  default false
3674   ,p_effective_date               in     date
3675   ,p_datetrack_update_mode        in     varchar2
3676   ,p_assignment_id                in     number
3677   ,p_called_from_mass_update      in     boolean  default false
3678   ,p_object_version_number        in out nocopy number
3679   ,p_grade_id                     in     number   default hr_api.g_number
3680   ,p_position_id                  in     number   default hr_api.g_number
3681   ,p_job_id                       in     number   default hr_api.g_number
3682   --
3683   -- p_payroll_id included for future phases of cwk
3684   --
3685   --,p_payroll_id                   in     number   default hr_api.g_number
3686   ,p_location_id                  in     number   default hr_api.g_number
3687   ,p_organization_id              in     number   default hr_api.g_number
3688   --
3689   -- p_pay_basis_id included for future phases of cwk
3690   --
3691   ,p_pay_basis_id                 in     number   default hr_api.g_number
3692   ,p_segment1                     in     varchar2 default hr_api.g_varchar2
3693   ,p_segment2                     in     varchar2 default hr_api.g_varchar2
3694   ,p_segment3                     in     varchar2 default hr_api.g_varchar2
3695   ,p_segment4                     in     varchar2 default hr_api.g_varchar2
3696   ,p_segment5                     in     varchar2 default hr_api.g_varchar2
3697   ,p_segment6                     in     varchar2 default hr_api.g_varchar2
3698   ,p_segment7                     in     varchar2 default hr_api.g_varchar2
3699   ,p_segment8                     in     varchar2 default hr_api.g_varchar2
3700   ,p_segment9                     in     varchar2 default hr_api.g_varchar2
3701   ,p_segment10                    in     varchar2 default hr_api.g_varchar2
3702   ,p_segment11                    in     varchar2 default hr_api.g_varchar2
3703   ,p_segment12                    in     varchar2 default hr_api.g_varchar2
3704   ,p_segment13                    in     varchar2 default hr_api.g_varchar2
3705   ,p_segment14                    in     varchar2 default hr_api.g_varchar2
3706   ,p_segment15                    in     varchar2 default hr_api.g_varchar2
3707   ,p_segment16                    in     varchar2 default hr_api.g_varchar2
3708   ,p_segment17                    in     varchar2 default hr_api.g_varchar2
3709   ,p_segment18                    in     varchar2 default hr_api.g_varchar2
3710   ,p_segment19                    in     varchar2 default hr_api.g_varchar2
3711   ,p_segment20                    in     varchar2 default hr_api.g_varchar2
3712   ,p_segment21                    in     varchar2 default hr_api.g_varchar2
3713   ,p_segment22                    in     varchar2 default hr_api.g_varchar2
3714   ,p_segment23                    in     varchar2 default hr_api.g_varchar2
3715   ,p_segment24                    in     varchar2 default hr_api.g_varchar2
3716   ,p_segment25                    in     varchar2 default hr_api.g_varchar2
3717   ,p_segment26                    in     varchar2 default hr_api.g_varchar2
3718   ,p_segment27                    in     varchar2 default hr_api.g_varchar2
3719   ,p_segment28                    in     varchar2 default hr_api.g_varchar2
3720   ,p_segment29                    in     varchar2 default hr_api.g_varchar2
3721   ,p_segment30                    in     varchar2 default hr_api.g_varchar2
3722   ,p_concat_segments              in     varchar2 default hr_api.g_varchar2
3723   ,p_people_group_name               out nocopy varchar2
3724   ,p_effective_start_date            out nocopy date
3725   ,p_effective_end_date              out nocopy date
3726   ,p_people_group_id                 out nocopy number
3727   ,p_org_now_no_manager_warning      out nocopy boolean
3728   ,p_other_manager_warning           out nocopy boolean
3729   ,p_spp_delete_warning              out nocopy boolean
3730   --
3731   -- p_entries_changed_warning included for future phases of cwk
3732   --
3733   ,p_entries_changed_warning         out nocopy varchar2
3734   ,p_tax_district_changed_warning    out nocopy boolean
3735   );
3736 --
3737 -- ----------------------------------------------------------------------------
3738 -- |------------------------------< update_emp_asg >--------------------------|
3739 -- ----------------------------------------------------------------------------
3740 --
3741 -- This version of the API is now out-of-date however it has been provided to
3742 -- you for backward compatibility support and will be removed in the future.
3743 -- Oracle recommends you to modify existing calling programs in advance of the
3744 -- support being withdrawn thus avoiding any potential disruption.
3745 --
3746 procedure update_emp_asg
3747   (p_validate                     in     boolean  default false
3748   ,p_effective_date               in     date
3749   ,p_datetrack_update_mode        in     varchar2
3750   ,p_assignment_id                in     number
3751   ,p_object_version_number        in out nocopy number
3752   ,p_supervisor_id                in     number   default hr_api.g_number
3753   ,p_assignment_number            in     varchar2 default hr_api.g_varchar2
3754   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
3755   ,p_comments                     in     varchar2 default hr_api.g_varchar2
3756   ,p_date_probation_end           in     date     default hr_api.g_date
3757   ,p_default_code_comb_id         in     number   default hr_api.g_number
3758   ,p_frequency                    in     varchar2 default hr_api.g_varchar2
3759   ,p_internal_address_line        in     varchar2 default hr_api.g_varchar2
3760   ,p_manager_flag                 in     varchar2 default hr_api.g_varchar2
3761   ,p_normal_hours                 in     number   default hr_api.g_number
3762   ,p_perf_review_period           in     number   default hr_api.g_number
3763   ,p_perf_review_period_frequency in     varchar2 default hr_api.g_varchar2
3764   ,p_probation_period             in     number   default hr_api.g_number
3765   ,p_probation_unit               in     varchar2 default hr_api.g_varchar2
3766   ,p_sal_review_period            in     number   default hr_api.g_number
3767   ,p_sal_review_period_frequency  in     varchar2 default hr_api.g_varchar2
3768   ,p_set_of_books_id              in     number   default hr_api.g_number
3769   ,p_source_type                  in     varchar2 default hr_api.g_varchar2
3770   ,p_time_normal_finish           in     varchar2 default hr_api.g_varchar2
3771   ,p_time_normal_start            in     varchar2 default hr_api.g_varchar2
3772   ,p_bargaining_unit_code         in     varchar2 default hr_api.g_varchar2
3773   ,p_labour_union_member_flag     in     varchar2 default hr_api.g_varchar2
3774   ,p_hourly_salaried_code         in     varchar2 default hr_api.g_varchar2
3775   ,p_ass_attribute_category       in     varchar2 default hr_api.g_varchar2
3776   ,p_ass_attribute1               in     varchar2 default hr_api.g_varchar2
3777   ,p_ass_attribute2               in     varchar2 default hr_api.g_varchar2
3778   ,p_ass_attribute3               in     varchar2 default hr_api.g_varchar2
3779   ,p_ass_attribute4               in     varchar2 default hr_api.g_varchar2
3780   ,p_ass_attribute5               in     varchar2 default hr_api.g_varchar2
3781   ,p_ass_attribute6               in     varchar2 default hr_api.g_varchar2
3782   ,p_ass_attribute7               in     varchar2 default hr_api.g_varchar2
3783   ,p_ass_attribute8               in     varchar2 default hr_api.g_varchar2
3784   ,p_ass_attribute9               in     varchar2 default hr_api.g_varchar2
3785   ,p_ass_attribute10              in     varchar2 default hr_api.g_varchar2
3786   ,p_ass_attribute11              in     varchar2 default hr_api.g_varchar2
3787   ,p_ass_attribute12              in     varchar2 default hr_api.g_varchar2
3788   ,p_ass_attribute13              in     varchar2 default hr_api.g_varchar2
3789   ,p_ass_attribute14              in     varchar2 default hr_api.g_varchar2
3790   ,p_ass_attribute15              in     varchar2 default hr_api.g_varchar2
3791   ,p_ass_attribute16              in     varchar2 default hr_api.g_varchar2
3792   ,p_ass_attribute17              in     varchar2 default hr_api.g_varchar2
3793   ,p_ass_attribute18              in     varchar2 default hr_api.g_varchar2
3794   ,p_ass_attribute19              in     varchar2 default hr_api.g_varchar2
3795   ,p_ass_attribute20              in     varchar2 default hr_api.g_varchar2
3796   ,p_ass_attribute21              in     varchar2 default hr_api.g_varchar2
3797   ,p_ass_attribute22              in     varchar2 default hr_api.g_varchar2
3798   ,p_ass_attribute23              in     varchar2 default hr_api.g_varchar2
3799   ,p_ass_attribute24              in     varchar2 default hr_api.g_varchar2
3800   ,p_ass_attribute25              in     varchar2 default hr_api.g_varchar2
3801   ,p_ass_attribute26              in     varchar2 default hr_api.g_varchar2
3802   ,p_ass_attribute27              in     varchar2 default hr_api.g_varchar2
3803   ,p_ass_attribute28              in     varchar2 default hr_api.g_varchar2
3804   ,p_ass_attribute29              in     varchar2 default hr_api.g_varchar2
3805   ,p_ass_attribute30              in     varchar2 default hr_api.g_varchar2
3806   ,p_title                        in     varchar2 default hr_api.g_varchar2
3807   ,p_segment1                     in     varchar2 default hr_api.g_varchar2
3808   ,p_segment2                     in     varchar2 default hr_api.g_varchar2
3809   ,p_segment3                     in     varchar2 default hr_api.g_varchar2
3810   ,p_segment4                     in     varchar2 default hr_api.g_varchar2
3811   ,p_segment5                     in     varchar2 default hr_api.g_varchar2
3812   ,p_segment6                     in     varchar2 default hr_api.g_varchar2
3813   ,p_segment7                     in     varchar2 default hr_api.g_varchar2
3814   ,p_segment8                     in     varchar2 default hr_api.g_varchar2
3815   ,p_segment9                     in     varchar2 default hr_api.g_varchar2
3816   ,p_segment10                    in     varchar2 default hr_api.g_varchar2
3817   ,p_segment11                    in     varchar2 default hr_api.g_varchar2
3818   ,p_segment12                    in     varchar2 default hr_api.g_varchar2
3819   ,p_segment13                    in     varchar2 default hr_api.g_varchar2
3820   ,p_segment14                    in     varchar2 default hr_api.g_varchar2
3821   ,p_segment15                    in     varchar2 default hr_api.g_varchar2
3822   ,p_segment16                    in     varchar2 default hr_api.g_varchar2
3823   ,p_segment17                    in     varchar2 default hr_api.g_varchar2
3824   ,p_segment18                    in     varchar2 default hr_api.g_varchar2
3825   ,p_segment19                    in     varchar2 default hr_api.g_varchar2
3826   ,p_segment20                    in     varchar2 default hr_api.g_varchar2
3827   ,p_segment21                    in     varchar2 default hr_api.g_varchar2
3828   ,p_segment22                    in     varchar2 default hr_api.g_varchar2
3829   ,p_segment23                    in     varchar2 default hr_api.g_varchar2
3830   ,p_segment24                    in     varchar2 default hr_api.g_varchar2
3831   ,p_segment25                    in     varchar2 default hr_api.g_varchar2
3832   ,p_segment26                    in     varchar2 default hr_api.g_varchar2
3833   ,p_segment27                    in     varchar2 default hr_api.g_varchar2
3834   ,p_segment28                    in     varchar2 default hr_api.g_varchar2
3835   ,p_segment29                    in     varchar2 default hr_api.g_varchar2
3836   ,p_segment30                    in     varchar2 default hr_api.g_varchar2
3837 -- Bug fix for 944911
3838 -- p_concatenated_segments has been changed from in out to out
3839 -- Added new param p_concat_segments as in param
3840   ,p_concat_segments              in     varchar2 default hr_api.g_varchar2
3841   ,p_supervisor_assignment_id     in     number   default hr_api.g_number
3842   ,p_concatenated_segments           out nocopy varchar2
3843 -- bug 2359997 p_soft_coding_keyflex_id changed from out to in out
3844   ,p_soft_coding_keyflex_id       in out nocopy number
3845   ,p_comment_id                      out nocopy number
3846   ,p_effective_start_date            out nocopy date
3847   ,p_effective_end_date              out nocopy date
3848   ,p_no_managers_warning             out nocopy boolean
3849   ,p_other_manager_warning           out nocopy boolean
3850   );
3851 --
3852 -- ----------------------------------------------------------------------------
3853 -- |------------------------------< update_emp_asg >--------------------------|
3854 -- ----------------------------------------------------------------------------
3855 --
3856 -- This version of the API is now out-of-date however it has been provided to
3857 -- you for backward compatibility support and will be removed in the future.
3858 -- Oracle recommends you to modify existing calling programs in advance of the
3859 -- support being withdrawn thus avoiding any potential disruption.
3860 --
3861 procedure update_emp_asg
3862   (p_validate                     in     boolean  default false
3863   ,p_effective_date               in     date
3864   ,p_datetrack_update_mode        in     varchar2
3865   ,p_assignment_id                in     number
3866   ,p_object_version_number        in out nocopy number
3867   ,p_supervisor_id                in     number   default hr_api.g_number
3868   ,p_assignment_number            in     varchar2 default hr_api.g_varchar2
3869   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
3870   ,p_assignment_status_type_id    in     number   default hr_api.g_number
3871   ,p_comments                     in     varchar2 default hr_api.g_varchar2
3872   ,p_date_probation_end           in     date     default hr_api.g_date
3873   ,p_default_code_comb_id         in     number   default hr_api.g_number
3874   ,p_frequency                    in     varchar2 default hr_api.g_varchar2
3875   ,p_internal_address_line        in     varchar2 default hr_api.g_varchar2
3876   ,p_manager_flag                 in     varchar2 default hr_api.g_varchar2
3877   ,p_normal_hours                 in     number   default hr_api.g_number
3878   ,p_perf_review_period           in     number   default hr_api.g_number
3879   ,p_perf_review_period_frequency in     varchar2 default hr_api.g_varchar2
3880   ,p_probation_period             in     number   default hr_api.g_number
3881   ,p_probation_unit               in     varchar2 default hr_api.g_varchar2
3882   ,p_sal_review_period            in     number   default hr_api.g_number
3883   ,p_sal_review_period_frequency  in     varchar2 default hr_api.g_varchar2
3884   ,p_set_of_books_id              in     number   default hr_api.g_number
3885   ,p_source_type                  in     varchar2 default hr_api.g_varchar2
3886   ,p_time_normal_finish           in     varchar2 default hr_api.g_varchar2
3887   ,p_time_normal_start            in     varchar2 default hr_api.g_varchar2
3888   ,p_bargaining_unit_code         in     varchar2 default hr_api.g_varchar2
3889   ,p_labour_union_member_flag     in     varchar2 default hr_api.g_varchar2
3890   ,p_hourly_salaried_code         in     varchar2 default hr_api.g_varchar2
3891   ,p_ass_attribute_category       in     varchar2 default hr_api.g_varchar2
3892   ,p_ass_attribute1               in     varchar2 default hr_api.g_varchar2
3893   ,p_ass_attribute2               in     varchar2 default hr_api.g_varchar2
3894   ,p_ass_attribute3               in     varchar2 default hr_api.g_varchar2
3895   ,p_ass_attribute4               in     varchar2 default hr_api.g_varchar2
3896   ,p_ass_attribute5               in     varchar2 default hr_api.g_varchar2
3897   ,p_ass_attribute6               in     varchar2 default hr_api.g_varchar2
3898   ,p_ass_attribute7               in     varchar2 default hr_api.g_varchar2
3899   ,p_ass_attribute8               in     varchar2 default hr_api.g_varchar2
3900   ,p_ass_attribute9               in     varchar2 default hr_api.g_varchar2
3901   ,p_ass_attribute10              in     varchar2 default hr_api.g_varchar2
3902   ,p_ass_attribute11              in     varchar2 default hr_api.g_varchar2
3903   ,p_ass_attribute12              in     varchar2 default hr_api.g_varchar2
3904   ,p_ass_attribute13              in     varchar2 default hr_api.g_varchar2
3905   ,p_ass_attribute14              in     varchar2 default hr_api.g_varchar2
3906   ,p_ass_attribute15              in     varchar2 default hr_api.g_varchar2
3907   ,p_ass_attribute16              in     varchar2 default hr_api.g_varchar2
3908   ,p_ass_attribute17              in     varchar2 default hr_api.g_varchar2
3909   ,p_ass_attribute18              in     varchar2 default hr_api.g_varchar2
3910   ,p_ass_attribute19              in     varchar2 default hr_api.g_varchar2
3911   ,p_ass_attribute20              in     varchar2 default hr_api.g_varchar2
3912   ,p_ass_attribute21              in     varchar2 default hr_api.g_varchar2
3913   ,p_ass_attribute22              in     varchar2 default hr_api.g_varchar2
3914   ,p_ass_attribute23              in     varchar2 default hr_api.g_varchar2
3915   ,p_ass_attribute24              in     varchar2 default hr_api.g_varchar2
3916   ,p_ass_attribute25              in     varchar2 default hr_api.g_varchar2
3917   ,p_ass_attribute26              in     varchar2 default hr_api.g_varchar2
3918   ,p_ass_attribute27              in     varchar2 default hr_api.g_varchar2
3919   ,p_ass_attribute28              in     varchar2 default hr_api.g_varchar2
3920   ,p_ass_attribute29              in     varchar2 default hr_api.g_varchar2
3921   ,p_ass_attribute30              in     varchar2 default hr_api.g_varchar2
3922   ,p_title                        in     varchar2 default hr_api.g_varchar2
3923   ,p_segment1                     in     varchar2 default hr_api.g_varchar2
3924   ,p_segment2                     in     varchar2 default hr_api.g_varchar2
3925   ,p_segment3                     in     varchar2 default hr_api.g_varchar2
3926   ,p_segment4                     in     varchar2 default hr_api.g_varchar2
3927   ,p_segment5                     in     varchar2 default hr_api.g_varchar2
3928   ,p_segment6                     in     varchar2 default hr_api.g_varchar2
3929   ,p_segment7                     in     varchar2 default hr_api.g_varchar2
3930   ,p_segment8                     in     varchar2 default hr_api.g_varchar2
3931   ,p_segment9                     in     varchar2 default hr_api.g_varchar2
3932   ,p_segment10                    in     varchar2 default hr_api.g_varchar2
3933   ,p_segment11                    in     varchar2 default hr_api.g_varchar2
3934   ,p_segment12                    in     varchar2 default hr_api.g_varchar2
3935   ,p_segment13                    in     varchar2 default hr_api.g_varchar2
3936   ,p_segment14                    in     varchar2 default hr_api.g_varchar2
3937   ,p_segment15                    in     varchar2 default hr_api.g_varchar2
3938   ,p_segment16                    in     varchar2 default hr_api.g_varchar2
3939   ,p_segment17                    in     varchar2 default hr_api.g_varchar2
3940   ,p_segment18                    in     varchar2 default hr_api.g_varchar2
3941   ,p_segment19                    in     varchar2 default hr_api.g_varchar2
3942   ,p_segment20                    in     varchar2 default hr_api.g_varchar2
3943   ,p_segment21                    in     varchar2 default hr_api.g_varchar2
3944   ,p_segment22                    in     varchar2 default hr_api.g_varchar2
3945   ,p_segment23                    in     varchar2 default hr_api.g_varchar2
3946   ,p_segment24                    in     varchar2 default hr_api.g_varchar2
3947   ,p_segment25                    in     varchar2 default hr_api.g_varchar2
3948   ,p_segment26                    in     varchar2 default hr_api.g_varchar2
3949   ,p_segment27                    in     varchar2 default hr_api.g_varchar2
3950   ,p_segment28                    in     varchar2 default hr_api.g_varchar2
3951   ,p_segment29                    in     varchar2 default hr_api.g_varchar2
3952   ,p_segment30                    in     varchar2 default hr_api.g_varchar2
3953 -- Bug fix for 944911
3954 -- Added new param p_concat_segments as in param
3955   ,p_concat_segments              in     varchar2 default hr_api.g_varchar2
3956   ,p_contract_id                  in     number default hr_api.g_number
3957   ,p_establishment_id             in     number default hr_api.g_number
3958   ,p_collective_agreement_id      in     number default hr_api.g_number
3959   ,p_cagr_id_flex_num             in     number default hr_api.g_number
3960   ,p_cag_segment1                 in     varchar2 default hr_api.g_varchar2
3961   ,p_cag_segment2                 in     varchar2 default hr_api.g_varchar2
3962   ,p_cag_segment3                 in     varchar2 default hr_api.g_varchar2
3963   ,p_cag_segment4                 in     varchar2 default hr_api.g_varchar2
3964   ,p_cag_segment5                 in     varchar2 default hr_api.g_varchar2
3965   ,p_cag_segment6                 in     varchar2 default hr_api.g_varchar2
3966   ,p_cag_segment7                 in     varchar2 default hr_api.g_varchar2
3967   ,p_cag_segment8                 in     varchar2 default hr_api.g_varchar2
3968   ,p_cag_segment9                 in     varchar2 default hr_api.g_varchar2
3969   ,p_cag_segment10                in     varchar2 default hr_api.g_varchar2
3970   ,p_cag_segment11                in     varchar2 default hr_api.g_varchar2
3971   ,p_cag_segment12                in     varchar2 default hr_api.g_varchar2
3972   ,p_cag_segment13                in     varchar2 default hr_api.g_varchar2
3973   ,p_cag_segment14                in     varchar2 default hr_api.g_varchar2
3974   ,p_cag_segment15                in     varchar2 default hr_api.g_varchar2
3975   ,p_cag_segment16                in     varchar2 default hr_api.g_varchar2
3976   ,p_cag_segment17                in     varchar2 default hr_api.g_varchar2
3977   ,p_cag_segment18                in     varchar2 default hr_api.g_varchar2
3978   ,p_cag_segment19                in     varchar2 default hr_api.g_varchar2
3979   ,p_cag_segment20                in     varchar2 default hr_api.g_varchar2
3980   ,p_notice_period		  in     number   default hr_api.g_number
3981   ,p_notice_period_uom	      	  in     varchar2 default hr_api.g_varchar2
3982   ,p_employee_category	          in     varchar2 default hr_api.g_varchar2
3983   ,p_work_at_home		  in     varchar2 default hr_api.g_varchar2
3984   ,p_job_post_source_name	  in     varchar2 default hr_api.g_varchar2
3985   ,p_supervisor_assignment_id     in     number   default hr_api.g_number
3986     ,p_cagr_grade_def_id            in out nocopy number -- bug 2359997
3987 -- Bug fix for 944911
3988 -- p_concatenated_segments has been changed from in out to out
3989   ,p_cagr_concatenated_segments      out nocopy varchar2
3990   ,p_concatenated_segments           out nocopy varchar2
3991   ,p_soft_coding_keyflex_id       in out nocopy number -- bug 2359997
3992   ,p_comment_id                      out nocopy number
3993   ,p_effective_start_date            out nocopy date
3994   ,p_effective_end_date              out nocopy date
3995   ,p_no_managers_warning             out nocopy boolean
3996   ,p_other_manager_warning           out nocopy boolean
3997   );
3998 --
3999 -- ----------------------------------------------------------------------------
4000 -- |------------------------------< update_emp_asg >--------------------------|
4001 -- ----------------------------------------------------------------------------
4002 --
4003 -- This version of the API is now out-of-date however it has been provided to
4004 -- you for backward compatibility support and will be removed in the future.
4005 -- Oracle recommends you to modify existing calling programs in advance of the
4006 -- support being withdrawn thus avoiding any potential disruption.
4007 --
4008 procedure update_emp_asg
4009   (p_validate                     in     boolean  default false
4010   ,p_effective_date               in     date
4011   ,p_datetrack_update_mode        in     varchar2
4012   ,p_assignment_id                in     number
4013   ,p_object_version_number        in out nocopy number
4014   ,p_supervisor_id                in     number   default hr_api.g_number
4015   ,p_assignment_number            in     varchar2 default hr_api.g_varchar2
4016   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
4017   ,p_assignment_status_type_id    in     number   default hr_api.g_number
4018   ,p_comments                     in     varchar2 default hr_api.g_varchar2
4019   ,p_date_probation_end           in     date     default hr_api.g_date
4020   ,p_default_code_comb_id         in     number   default hr_api.g_number
4021   ,p_frequency                    in     varchar2 default hr_api.g_varchar2
4022   ,p_internal_address_line        in     varchar2 default hr_api.g_varchar2
4023   ,p_manager_flag                 in     varchar2 default hr_api.g_varchar2
4024   ,p_normal_hours                 in     number   default hr_api.g_number
4025   ,p_perf_review_period           in     number   default hr_api.g_number
4026   ,p_perf_review_period_frequency in     varchar2 default hr_api.g_varchar2
4027   ,p_probation_period             in     number   default hr_api.g_number
4028   ,p_probation_unit               in     varchar2 default hr_api.g_varchar2
4029   ,p_sal_review_period            in     number   default hr_api.g_number
4030   ,p_sal_review_period_frequency  in     varchar2 default hr_api.g_varchar2
4031   ,p_set_of_books_id              in     number   default hr_api.g_number
4032   ,p_source_type                  in     varchar2 default hr_api.g_varchar2
4033   ,p_time_normal_finish           in     varchar2 default hr_api.g_varchar2
4034   ,p_time_normal_start            in     varchar2 default hr_api.g_varchar2
4035   ,p_bargaining_unit_code         in     varchar2 default hr_api.g_varchar2
4036   ,p_labour_union_member_flag     in     varchar2 default hr_api.g_varchar2
4037   ,p_hourly_salaried_code         in     varchar2 default hr_api.g_varchar2
4038   ,p_ass_attribute_category       in     varchar2 default hr_api.g_varchar2
4039   ,p_ass_attribute1               in     varchar2 default hr_api.g_varchar2
4040   ,p_ass_attribute2               in     varchar2 default hr_api.g_varchar2
4041   ,p_ass_attribute3               in     varchar2 default hr_api.g_varchar2
4042   ,p_ass_attribute4               in     varchar2 default hr_api.g_varchar2
4043   ,p_ass_attribute5               in     varchar2 default hr_api.g_varchar2
4044   ,p_ass_attribute6               in     varchar2 default hr_api.g_varchar2
4045   ,p_ass_attribute7               in     varchar2 default hr_api.g_varchar2
4046   ,p_ass_attribute8               in     varchar2 default hr_api.g_varchar2
4047   ,p_ass_attribute9               in     varchar2 default hr_api.g_varchar2
4048   ,p_ass_attribute10              in     varchar2 default hr_api.g_varchar2
4049   ,p_ass_attribute11              in     varchar2 default hr_api.g_varchar2
4050   ,p_ass_attribute12              in     varchar2 default hr_api.g_varchar2
4051   ,p_ass_attribute13              in     varchar2 default hr_api.g_varchar2
4052   ,p_ass_attribute14              in     varchar2 default hr_api.g_varchar2
4053   ,p_ass_attribute15              in     varchar2 default hr_api.g_varchar2
4054   ,p_ass_attribute16              in     varchar2 default hr_api.g_varchar2
4055   ,p_ass_attribute17              in     varchar2 default hr_api.g_varchar2
4056   ,p_ass_attribute18              in     varchar2 default hr_api.g_varchar2
4057   ,p_ass_attribute19              in     varchar2 default hr_api.g_varchar2
4058   ,p_ass_attribute20              in     varchar2 default hr_api.g_varchar2
4059   ,p_ass_attribute21              in     varchar2 default hr_api.g_varchar2
4060   ,p_ass_attribute22              in     varchar2 default hr_api.g_varchar2
4061   ,p_ass_attribute23              in     varchar2 default hr_api.g_varchar2
4062   ,p_ass_attribute24              in     varchar2 default hr_api.g_varchar2
4063   ,p_ass_attribute25              in     varchar2 default hr_api.g_varchar2
4064   ,p_ass_attribute26              in     varchar2 default hr_api.g_varchar2
4065   ,p_ass_attribute27              in     varchar2 default hr_api.g_varchar2
4066   ,p_ass_attribute28              in     varchar2 default hr_api.g_varchar2
4067   ,p_ass_attribute29              in     varchar2 default hr_api.g_varchar2
4068   ,p_ass_attribute30              in     varchar2 default hr_api.g_varchar2
4069   ,p_title                        in     varchar2 default hr_api.g_varchar2
4070   ,p_segment1                     in     varchar2 default hr_api.g_varchar2
4071   ,p_segment2                     in     varchar2 default hr_api.g_varchar2
4072   ,p_segment3                     in     varchar2 default hr_api.g_varchar2
4073   ,p_segment4                     in     varchar2 default hr_api.g_varchar2
4074   ,p_segment5                     in     varchar2 default hr_api.g_varchar2
4075   ,p_segment6                     in     varchar2 default hr_api.g_varchar2
4076   ,p_segment7                     in     varchar2 default hr_api.g_varchar2
4077   ,p_segment8                     in     varchar2 default hr_api.g_varchar2
4078   ,p_segment9                     in     varchar2 default hr_api.g_varchar2
4079   ,p_segment10                    in     varchar2 default hr_api.g_varchar2
4080   ,p_segment11                    in     varchar2 default hr_api.g_varchar2
4081   ,p_segment12                    in     varchar2 default hr_api.g_varchar2
4082   ,p_segment13                    in     varchar2 default hr_api.g_varchar2
4083   ,p_segment14                    in     varchar2 default hr_api.g_varchar2
4084   ,p_segment15                    in     varchar2 default hr_api.g_varchar2
4085   ,p_segment16                    in     varchar2 default hr_api.g_varchar2
4086   ,p_segment17                    in     varchar2 default hr_api.g_varchar2
4087   ,p_segment18                    in     varchar2 default hr_api.g_varchar2
4088   ,p_segment19                    in     varchar2 default hr_api.g_varchar2
4089   ,p_segment20                    in     varchar2 default hr_api.g_varchar2
4090   ,p_segment21                    in     varchar2 default hr_api.g_varchar2
4091   ,p_segment22                    in     varchar2 default hr_api.g_varchar2
4092   ,p_segment23                    in     varchar2 default hr_api.g_varchar2
4093   ,p_segment24                    in     varchar2 default hr_api.g_varchar2
4094   ,p_segment25                    in     varchar2 default hr_api.g_varchar2
4095   ,p_segment26                    in     varchar2 default hr_api.g_varchar2
4096   ,p_segment27                    in     varchar2 default hr_api.g_varchar2
4097   ,p_segment28                    in     varchar2 default hr_api.g_varchar2
4098   ,p_segment29                    in     varchar2 default hr_api.g_varchar2
4099   ,p_segment30                    in     varchar2 default hr_api.g_varchar2
4100 -- Bug fix for 944911
4101 -- Added new param p_concat_segments as in param
4102   ,p_concat_segments              in     varchar2 default hr_api.g_varchar2
4103   ,p_contract_id                  in     number default hr_api.g_number
4104   ,p_establishment_id             in     number default hr_api.g_number
4105   ,p_collective_agreement_id      in     number default hr_api.g_number
4106   ,p_cagr_id_flex_num             in     number default hr_api.g_number
4107   ,p_cag_segment1                 in     varchar2 default hr_api.g_varchar2
4108   ,p_cag_segment2                 in     varchar2 default hr_api.g_varchar2
4109   ,p_cag_segment3                 in     varchar2 default hr_api.g_varchar2
4110   ,p_cag_segment4                 in     varchar2 default hr_api.g_varchar2
4111   ,p_cag_segment5                 in     varchar2 default hr_api.g_varchar2
4112   ,p_cag_segment6                 in     varchar2 default hr_api.g_varchar2
4113   ,p_cag_segment7                 in     varchar2 default hr_api.g_varchar2
4114   ,p_cag_segment8                 in     varchar2 default hr_api.g_varchar2
4115   ,p_cag_segment9                 in     varchar2 default hr_api.g_varchar2
4116   ,p_cag_segment10                in     varchar2 default hr_api.g_varchar2
4117   ,p_cag_segment11                in     varchar2 default hr_api.g_varchar2
4118   ,p_cag_segment12                in     varchar2 default hr_api.g_varchar2
4119   ,p_cag_segment13                in     varchar2 default hr_api.g_varchar2
4120   ,p_cag_segment14                in     varchar2 default hr_api.g_varchar2
4121   ,p_cag_segment15                in     varchar2 default hr_api.g_varchar2
4122   ,p_cag_segment16                in     varchar2 default hr_api.g_varchar2
4123   ,p_cag_segment17                in     varchar2 default hr_api.g_varchar2
4124   ,p_cag_segment18                in     varchar2 default hr_api.g_varchar2
4125   ,p_cag_segment19                in     varchar2 default hr_api.g_varchar2
4126   ,p_cag_segment20                in     varchar2 default hr_api.g_varchar2
4127   ,p_notice_period		  in     number   default hr_api.g_number
4128   ,p_notice_period_uom	      	  in     varchar2 default hr_api.g_varchar2
4129   ,p_employee_category	          in     varchar2 default hr_api.g_varchar2
4130   ,p_work_at_home		  in     varchar2 default hr_api.g_varchar2
4131   ,p_job_post_source_name	  in     varchar2 default hr_api.g_varchar2
4132   ,p_supervisor_assignment_id     in     number   default hr_api.g_number
4133   ,p_cagr_grade_def_id            in out nocopy number -- bug 2359997
4134 -- Bug fix for 944911
4135 -- p_concatenated_segments has been changed from in out to out
4136   ,p_cagr_concatenated_segments      out nocopy varchar2
4137   ,p_concatenated_segments           out nocopy varchar2
4138   ,p_soft_coding_keyflex_id       in out nocopy number -- bug 2359997
4139   ,p_comment_id                      out nocopy number
4140   ,p_effective_start_date            out nocopy date
4141   ,p_effective_end_date              out nocopy date
4142   ,p_no_managers_warning             out nocopy boolean
4143   ,p_other_manager_warning           out nocopy boolean
4144   ,p_hourly_salaried_warning         out nocopy boolean
4145   );
4146 --
4147 -- ----------------------------------------------------------------------------
4148 -- |------------------------------< update_emp_asg >--------------------------|
4149 -- ----------------------------------------------------------------------------
4150 --
4151 -- {Start Of Comments}
4152 /*#
4153  * This API updates employee assignment details which do not affect entitlement
4154  * to element entries.
4155  *
4156  *
4157  * <p><b>Licensing</b><br>
4158  * This API is licensed for use with Human Resources.
4159  *
4160  * <p><b>Prerequisites</b><br>
4161  * The assignment must exist as of the effective date and must be an employee
4162  * assignment.
4163  *
4164  * <p><b>Post Success</b><br>
4165  * The API updates the assignment.
4166  *
4167  * <p><b>Post Failure</b><br>
4168  * The API does not update the assignment and raises an error.
4169  * @param p_validate If true, then validation alone will be performed and the
4170  * database will remain unchanged. If false and all validation checks pass,
4171  * then the database will be modified.
4172  * @param p_effective_date Determines when the DateTrack operation comes into
4173  * force.
4174  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
4175  * updating the record. You must set to either UPDATE, CORRECTION,
4176  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
4177  * particular record depend on the dates of previous record changes and the
4178  * effective date of this change.
4179  * @param p_assignment_id Identifies the assignment record to be modified.
4180  * @param p_object_version_number Pass in the current version number of the
4181  * assignment to be updated. When the API completes if p_validate is false,
4182  * will be set to the new version number of the updated assignment. If
4183  * p_validate is true will be set to the same value which was passed in.
4184  * @param p_supervisor_id Supervisor for the assignment. The value refers to
4185  * the supervisor's person record.
4186  * @param p_assignment_number Assignment number
4187  * @param p_change_reason Reason for the assignment status change. If there is
4188  * no change reason the parameter can be null. Valid values are defined in the
4189  * EMP_ASSIGN_REASON lookup type.
4190  * @param p_assignment_status_type_id Assignment status. The system status must
4191  * be the same as before the update, otherwise one of the status change APIs
4192  * should be used.
4193  * @param p_comments Comment text.
4194  * @param p_date_probation_end End date of probation period
4195  * @param p_default_code_comb_id Identifier for the General Ledger Accounting
4196  * Flexfield combination that applies to this assignment
4197  * @param p_frequency Frequency associated with the defined normal working
4198  * hours. Valid values are defined in the FREQUENCY lookup type.
4199  * @param p_internal_address_line Internal address identified with this
4200  * assignment.
4201  * @param p_manager_flag Indicates whether the employee is a manager
4202  * @param p_normal_hours Normal working hours for this assignment
4203  * @param p_perf_review_period Length of performance review period
4204  * @param p_perf_review_period_frequency Units of performance review period.
4205  * Valid values are defined in the FREQUENCY lookup type.
4206  * @param p_probation_period Length of probation period
4207  * @param p_probation_unit Units of probation period. Valid values are defined
4208  * in the QUALIFYING_UNITS lookup type.
4209  * @param p_projected_assignment_end Projected end date of this assignment.
4210  * @param p_sal_review_period Length of salary review period
4211  * @param p_sal_review_period_frequency Units of salary review period. Valid
4212  * values are defined in the FREQUENCY lookup type.
4213  * @param p_set_of_books_id Identifies General Ledger set of books.
4214  * @param p_source_type Recruitment activity which this assignment is sourced
4215  * from. Valid values are defined in the REC_TYPE lookup type.
4216  * @param p_time_normal_finish Normal work finish time
4217  * @param p_time_normal_start Normal work start time
4218  * @param p_bargaining_unit_code Code for bargaining unit. Valid values are
4219  * defined in the BARGAINING_UNIT_CODE lookup type.
4220  * @param p_labour_union_member_flag Value 'Y' indicates employee is a labour
4221  * union member. Other values indicate not a member.
4222  * @param p_hourly_salaried_code Identifies if the assignment is paid hourly or
4223  * is salaried. Valid values defined in the HOURLY_SALARIED_CODE lookup type.
4224  * @param p_ass_attribute_category This context value determines which
4225  * Flexfield Structure to use with the Descriptive flexfield segments.
4226  * @param p_ass_attribute1 Descriptive flexfield segment
4227  * @param p_ass_attribute2 Descriptive flexfield segment
4228  * @param p_ass_attribute3 Descriptive flexfield segment
4229  * @param p_ass_attribute4 Descriptive flexfield segment
4230  * @param p_ass_attribute5 Descriptive flexfield segment
4231  * @param p_ass_attribute6 Descriptive flexfield segment
4232  * @param p_ass_attribute7 Descriptive flexfield segment
4233  * @param p_ass_attribute8 Descriptive flexfield segment
4234  * @param p_ass_attribute9 Descriptive flexfield segment
4235  * @param p_ass_attribute10 Descriptive flexfield segment
4236  * @param p_ass_attribute11 Descriptive flexfield segment
4237  * @param p_ass_attribute12 Descriptive flexfield segment
4238  * @param p_ass_attribute13 Descriptive flexfield segment
4239  * @param p_ass_attribute14 Descriptive flexfield segment
4240  * @param p_ass_attribute15 Descriptive flexfield segment
4241  * @param p_ass_attribute16 Descriptive flexfield segment
4242  * @param p_ass_attribute17 Descriptive flexfield segment
4243  * @param p_ass_attribute18 Descriptive flexfield segment
4244  * @param p_ass_attribute19 Descriptive flexfield segment
4245  * @param p_ass_attribute20 Descriptive flexfield segment
4246  * @param p_ass_attribute21 Descriptive flexfield segment
4247  * @param p_ass_attribute22 Descriptive flexfield segment
4248  * @param p_ass_attribute23 Descriptive flexfield segment
4249  * @param p_ass_attribute24 Descriptive flexfield segment
4250  * @param p_ass_attribute25 Descriptive flexfield segment
4251  * @param p_ass_attribute26 Descriptive flexfield segment
4252  * @param p_ass_attribute27 Descriptive flexfield segment
4253  * @param p_ass_attribute28 Descriptive flexfield segment
4254  * @param p_ass_attribute29 Descriptive flexfield segment
4255  * @param p_ass_attribute30 Descriptive flexfield segment
4256  * @param p_title Obsolete parameter, do not use.
4257  * @param p_segment1 Soft Coded key flexfield segment
4258  * @param p_segment2 Soft Coded key flexfield segment
4259  * @param p_segment3 Soft Coded key flexfield segment
4260  * @param p_segment4 Soft Coded key flexfield segment
4261  * @param p_segment5 Soft Coded key flexfield segment
4262  * @param p_segment6 Soft Coded key flexfield segment
4263  * @param p_segment7 Soft Coded key flexfield segment
4264  * @param p_segment8 Soft Coded key flexfield segment
4265  * @param p_segment9 Soft Coded key flexfield segment
4266  * @param p_segment10 Soft Coded key flexfield segment
4267  * @param p_segment11 Soft Coded key flexfield segment
4268  * @param p_segment12 Soft Coded key flexfield segment
4269  * @param p_segment13 Soft Coded key flexfield segment
4270  * @param p_segment14 Soft Coded key flexfield segment
4271  * @param p_segment15 Soft Coded key flexfield segment
4272  * @param p_segment16 Soft Coded key flexfield segment
4273  * @param p_segment17 Soft Coded key flexfield segment
4274  * @param p_segment18 Soft Coded key flexfield segment
4275  * @param p_segment19 Soft Coded key flexfield segment
4276  * @param p_segment20 Soft Coded key flexfield segment
4277  * @param p_segment21 Soft Coded key flexfield segment
4278  * @param p_segment22 Soft Coded key flexfield segment
4279  * @param p_segment23 Soft Coded key flexfield segment
4280  * @param p_segment24 Soft Coded key flexfield segment
4281  * @param p_segment25 Soft Coded key flexfield segment
4282  * @param p_segment26 Soft Coded key flexfield segment
4283  * @param p_segment27 Soft Coded key flexfield segment
4284  * @param p_segment28 Soft Coded key flexfield segment
4285  * @param p_segment29 Soft Coded key flexfield segment
4286  * @param p_segment30 Soft Coded key flexfield segment
4287  * @param p_concat_segments Concatenated segments for Soft Coded Key Flexfield.
4288  * Concatenated segments can be supplied instead of individual segments.
4289  * @param p_contract_id Contract associated with this assignment
4290  * @param p_establishment_id For French business groups, this identifies the
4291  * Establishment Legal Entity for this assignment.
4292  * @param p_collective_agreement_id Collective Agreement that applies to this
4293  * assignment
4294  * @param p_cagr_id_flex_num Identifier for the structure from CAGR Key
4295  * flexfield to use for this assignment
4296  * @param p_cag_segment1 CAGR Key Flexfield segment
4297  * @param p_cag_segment2 CAGR Key Flexfield segment
4298  * @param p_cag_segment3 CAGR Key Flexfield segment
4299  * @param p_cag_segment4 CAGR Key Flexfield segment
4300  * @param p_cag_segment5 CAGR Key Flexfield segment
4301  * @param p_cag_segment6 CAGR Key Flexfield segment
4302  * @param p_cag_segment7 CAGR Key Flexfield segment
4303  * @param p_cag_segment8 CAGR Key Flexfield segment
4304  * @param p_cag_segment9 CAGR Key Flexfield segment
4305  * @param p_cag_segment10 CAGR Key Flexfield segment
4306  * @param p_cag_segment11 CAGR Key Flexfield segment
4307  * @param p_cag_segment12 CAGR Key Flexfield segment
4308  * @param p_cag_segment13 CAGR Key Flexfield segment
4309  * @param p_cag_segment14 CAGR Key Flexfield segment
4310  * @param p_cag_segment15 CAGR Key Flexfield segment
4311  * @param p_cag_segment16 CAGR Key Flexfield segment
4312  * @param p_cag_segment17 CAGR Key Flexfield segment
4313  * @param p_cag_segment18 CAGR Key Flexfield segment
4314  * @param p_cag_segment19 CAGR Key Flexfield segment
4315  * @param p_cag_segment20 CAGR Key Flexfield segment
4316  * @param p_notice_period Length of notice period
4317  * @param p_notice_period_uom Units for notice period. Valid values are defined
4318  * in the QUALIFYING_UNITS lookup type.
4319  * @param p_employee_category Employee Category. Valid values are defined in
4320  * the EMPLOYEE_CATG lookup type.
4321  * @param p_work_at_home Indicate whether this assignment is to work at home.
4322  * Valid values are defined in the YES_NO lookup type.
4323  * @param p_job_post_source_name Name of the source of the job posting that was
4324  * answered for this assignment.
4325  * @param p_supervisor_assignment_id Supervisor's assignment that is
4326  * responsible for supervising this assignment.
4327  * @param p_cagr_grade_def_id If a value is passed in for this parameter, it
4328  * identifies an existing CAGR Key Flexfield combination to associate with the
4329  * assignment, and segment values are ignored. If a value is not passed in,
4330  * then the individual CAGR Key Flexfield segments supplied will be used to
4331  * choose an existing combination or create a new combination. When the API
4332  * completes, if p_validate is false, then this uniquely identifies the
4333  * associated combination of the CAGR Key flexfield for this assignment. If
4334  * p_validate is true, then set to null.
4335  * @param p_cagr_concatenated_segments CAGR Key Flexfield concatenated segments
4336  * @param p_concatenated_segments If p_validate is false, set to Soft Coded Key
4337  * Flexfield concatenated segments, if p_validate is true, set to null.
4338  * @param p_soft_coding_keyflex_id If a value is passed in for this parameter,
4339  * it identifies an existing Soft Coded Key Flexfield combination to associate
4340  * with the assignment, and segment values are ignored. If a value is not
4341  * passed in, then the individual Soft Coded Key Flexfield segments supplied
4342  * will be used to choose an existing combination or create a new combination.
4343  * When the API completes, if p_validate is false, then this uniquely
4344  * identifies the associated combination of the Soft Coded Key flexfield for
4345  * this assignment. If p_validate is true, then set to null.
4346  * @param p_comment_id If p_validate is false and comment text was provided,
4347  * then will be set to the identifier of the created assignment comment record.
4348  * If p_validate is true or no comment text was provided, then will be null.
4349  * @param p_effective_start_date If p_validate is false, then set to the
4350  * earliest effective start date for the created assignment. If p_validate is
4351  * true, then set to null.
4352  * @param p_effective_end_date If p_validate is false, then set to the
4353  * effective end date for the created assignment. If p_validate is true, then
4354  * set to null.
4355  * @param p_no_managers_warning Set to true if as a result of the update there
4356  * is no manager in the organization. Otherwise set to false.
4357  * @param p_other_manager_warning If set to true, then a manager existed in the
4358  * organization prior to calling this API and the manager flag has been set to
4359  * 'Y' for yes.
4360  * @param p_hourly_salaried_warning Set to true if values entered for Salary
4361  * Basis and Hourly Salaried Code are invalid date as of p_effective_date.
4362  * @param p_gsp_post_process_warning Set to the name of a warning message from
4363  * the Message Dictionary if any Grade Ladder related errors have been
4364  * encountered while running this API.
4365  * @rep:displayname Update Employee Assignment
4366  * @rep:category BUSINESS_ENTITY PER_EMPLOYEE_ASG
4367  * @rep:category MISC_EXTENSIONS HR_DATAPUMP
4368  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
4369  * @rep:scope public
4370  * @rep:lifecycle active
4371  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
4372 */
4373 --
4374 -- {End Of Comments}
4375 --
4376 procedure update_emp_asg
4377   (p_validate                     in     boolean  default false
4378   ,p_effective_date               in     date
4379   ,p_datetrack_update_mode        in     varchar2
4380   ,p_assignment_id                in     number
4381   ,p_object_version_number        in out nocopy number
4382   ,p_supervisor_id                in     number   default hr_api.g_number
4383   ,p_assignment_number            in     varchar2 default hr_api.g_varchar2
4384   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
4385   ,p_assignment_status_type_id    in     number   default hr_api.g_number
4386   ,p_comments                     in     varchar2 default hr_api.g_varchar2
4387   ,p_date_probation_end           in     date     default hr_api.g_date
4388   ,p_default_code_comb_id         in     number   default hr_api.g_number
4389   ,p_frequency                    in     varchar2 default hr_api.g_varchar2
4390   ,p_internal_address_line        in     varchar2 default hr_api.g_varchar2
4391   ,p_manager_flag                 in     varchar2 default hr_api.g_varchar2
4392   ,p_normal_hours                 in     number   default hr_api.g_number
4393   ,p_perf_review_period           in     number   default hr_api.g_number
4394   ,p_perf_review_period_frequency in     varchar2 default hr_api.g_varchar2
4395   ,p_probation_period             in     number   default hr_api.g_number
4396   ,p_probation_unit               in     varchar2 default hr_api.g_varchar2
4397   ,p_projected_assignment_end     in     varchar2 default hr_api.g_date
4398   ,p_sal_review_period            in     number   default hr_api.g_number
4399   ,p_sal_review_period_frequency  in     varchar2 default hr_api.g_varchar2
4400   ,p_set_of_books_id              in     number   default hr_api.g_number
4401   ,p_source_type                  in     varchar2 default hr_api.g_varchar2
4402   ,p_time_normal_finish           in     varchar2 default hr_api.g_varchar2
4403   ,p_time_normal_start            in     varchar2 default hr_api.g_varchar2
4404   ,p_bargaining_unit_code         in     varchar2 default hr_api.g_varchar2
4405   ,p_labour_union_member_flag     in     varchar2 default hr_api.g_varchar2
4406   ,p_hourly_salaried_code         in     varchar2 default hr_api.g_varchar2
4407   ,p_ass_attribute_category       in     varchar2 default hr_api.g_varchar2
4408   ,p_ass_attribute1               in     varchar2 default hr_api.g_varchar2
4409   ,p_ass_attribute2               in     varchar2 default hr_api.g_varchar2
4410   ,p_ass_attribute3               in     varchar2 default hr_api.g_varchar2
4411   ,p_ass_attribute4               in     varchar2 default hr_api.g_varchar2
4412   ,p_ass_attribute5               in     varchar2 default hr_api.g_varchar2
4413   ,p_ass_attribute6               in     varchar2 default hr_api.g_varchar2
4414   ,p_ass_attribute7               in     varchar2 default hr_api.g_varchar2
4415   ,p_ass_attribute8               in     varchar2 default hr_api.g_varchar2
4416   ,p_ass_attribute9               in     varchar2 default hr_api.g_varchar2
4417   ,p_ass_attribute10              in     varchar2 default hr_api.g_varchar2
4418   ,p_ass_attribute11              in     varchar2 default hr_api.g_varchar2
4419   ,p_ass_attribute12              in     varchar2 default hr_api.g_varchar2
4420   ,p_ass_attribute13              in     varchar2 default hr_api.g_varchar2
4421   ,p_ass_attribute14              in     varchar2 default hr_api.g_varchar2
4422   ,p_ass_attribute15              in     varchar2 default hr_api.g_varchar2
4423   ,p_ass_attribute16              in     varchar2 default hr_api.g_varchar2
4424   ,p_ass_attribute17              in     varchar2 default hr_api.g_varchar2
4425   ,p_ass_attribute18              in     varchar2 default hr_api.g_varchar2
4426   ,p_ass_attribute19              in     varchar2 default hr_api.g_varchar2
4427   ,p_ass_attribute20              in     varchar2 default hr_api.g_varchar2
4428   ,p_ass_attribute21              in     varchar2 default hr_api.g_varchar2
4429   ,p_ass_attribute22              in     varchar2 default hr_api.g_varchar2
4430   ,p_ass_attribute23              in     varchar2 default hr_api.g_varchar2
4431   ,p_ass_attribute24              in     varchar2 default hr_api.g_varchar2
4432   ,p_ass_attribute25              in     varchar2 default hr_api.g_varchar2
4433   ,p_ass_attribute26              in     varchar2 default hr_api.g_varchar2
4434   ,p_ass_attribute27              in     varchar2 default hr_api.g_varchar2
4435   ,p_ass_attribute28              in     varchar2 default hr_api.g_varchar2
4436   ,p_ass_attribute29              in     varchar2 default hr_api.g_varchar2
4437   ,p_ass_attribute30              in     varchar2 default hr_api.g_varchar2
4438   ,p_title                        in     varchar2 default hr_api.g_varchar2
4439   ,p_segment1                     in     varchar2 default hr_api.g_varchar2
4440   ,p_segment2                     in     varchar2 default hr_api.g_varchar2
4441   ,p_segment3                     in     varchar2 default hr_api.g_varchar2
4442   ,p_segment4                     in     varchar2 default hr_api.g_varchar2
4443   ,p_segment5                     in     varchar2 default hr_api.g_varchar2
4444   ,p_segment6                     in     varchar2 default hr_api.g_varchar2
4445   ,p_segment7                     in     varchar2 default hr_api.g_varchar2
4446   ,p_segment8                     in     varchar2 default hr_api.g_varchar2
4447   ,p_segment9                     in     varchar2 default hr_api.g_varchar2
4448   ,p_segment10                    in     varchar2 default hr_api.g_varchar2
4449   ,p_segment11                    in     varchar2 default hr_api.g_varchar2
4450   ,p_segment12                    in     varchar2 default hr_api.g_varchar2
4451   ,p_segment13                    in     varchar2 default hr_api.g_varchar2
4452   ,p_segment14                    in     varchar2 default hr_api.g_varchar2
4453   ,p_segment15                    in     varchar2 default hr_api.g_varchar2
4454   ,p_segment16                    in     varchar2 default hr_api.g_varchar2
4455   ,p_segment17                    in     varchar2 default hr_api.g_varchar2
4456   ,p_segment18                    in     varchar2 default hr_api.g_varchar2
4457   ,p_segment19                    in     varchar2 default hr_api.g_varchar2
4458   ,p_segment20                    in     varchar2 default hr_api.g_varchar2
4459   ,p_segment21                    in     varchar2 default hr_api.g_varchar2
4460   ,p_segment22                    in     varchar2 default hr_api.g_varchar2
4461   ,p_segment23                    in     varchar2 default hr_api.g_varchar2
4462   ,p_segment24                    in     varchar2 default hr_api.g_varchar2
4463   ,p_segment25                    in     varchar2 default hr_api.g_varchar2
4464   ,p_segment26                    in     varchar2 default hr_api.g_varchar2
4465   ,p_segment27                    in     varchar2 default hr_api.g_varchar2
4466   ,p_segment28                    in     varchar2 default hr_api.g_varchar2
4467   ,p_segment29                    in     varchar2 default hr_api.g_varchar2
4468   ,p_segment30                    in     varchar2 default hr_api.g_varchar2
4469 -- Bug fix for 944911
4470 -- Added new param p_concat_segments as in param
4471   ,p_concat_segments              in     varchar2 default hr_api.g_varchar2
4472   ,p_contract_id                  in     number default hr_api.g_number
4473   ,p_establishment_id             in     number default hr_api.g_number
4474   ,p_collective_agreement_id      in     number default hr_api.g_number
4475   ,p_cagr_id_flex_num             in     number default hr_api.g_number
4476   ,p_cag_segment1                 in     varchar2 default hr_api.g_varchar2
4477   ,p_cag_segment2                 in     varchar2 default hr_api.g_varchar2
4478   ,p_cag_segment3                 in     varchar2 default hr_api.g_varchar2
4479   ,p_cag_segment4                 in     varchar2 default hr_api.g_varchar2
4480   ,p_cag_segment5                 in     varchar2 default hr_api.g_varchar2
4481   ,p_cag_segment6                 in     varchar2 default hr_api.g_varchar2
4482   ,p_cag_segment7                 in     varchar2 default hr_api.g_varchar2
4483   ,p_cag_segment8                 in     varchar2 default hr_api.g_varchar2
4484   ,p_cag_segment9                 in     varchar2 default hr_api.g_varchar2
4485   ,p_cag_segment10                in     varchar2 default hr_api.g_varchar2
4486   ,p_cag_segment11                in     varchar2 default hr_api.g_varchar2
4487   ,p_cag_segment12                in     varchar2 default hr_api.g_varchar2
4488   ,p_cag_segment13                in     varchar2 default hr_api.g_varchar2
4489   ,p_cag_segment14                in     varchar2 default hr_api.g_varchar2
4490   ,p_cag_segment15                in     varchar2 default hr_api.g_varchar2
4491   ,p_cag_segment16                in     varchar2 default hr_api.g_varchar2
4492   ,p_cag_segment17                in     varchar2 default hr_api.g_varchar2
4493   ,p_cag_segment18                in     varchar2 default hr_api.g_varchar2
4494   ,p_cag_segment19                in     varchar2 default hr_api.g_varchar2
4495   ,p_cag_segment20                in     varchar2 default hr_api.g_varchar2
4496   ,p_notice_period		  in     number   default hr_api.g_number
4497   ,p_notice_period_uom	      	  in     varchar2 default hr_api.g_varchar2
4498   ,p_employee_category	          in     varchar2 default hr_api.g_varchar2
4499   ,p_work_at_home		  in     varchar2 default hr_api.g_varchar2
4500   ,p_job_post_source_name	  in     varchar2 default hr_api.g_varchar2
4501   ,p_supervisor_assignment_id     in     number   default hr_api.g_number
4502   ,p_cagr_grade_def_id            in out nocopy number -- bug 2359997
4503 -- Bug fix for 944911
4504 -- p_concatenated_segments has been changed from in out to out
4505   ,p_cagr_concatenated_segments      out nocopy varchar2
4506   ,p_concatenated_segments           out nocopy varchar2
4507   ,p_soft_coding_keyflex_id       in out nocopy number -- bug 2359997
4508   ,p_comment_id                      out nocopy number
4509   ,p_effective_start_date            out nocopy date
4510   ,p_effective_end_date              out nocopy date
4511   ,p_no_managers_warning             out nocopy boolean
4512   ,p_other_manager_warning           out nocopy boolean
4513   ,p_hourly_salaried_warning         out nocopy boolean
4514   ,p_gsp_post_process_warning        out nocopy varchar2
4515   );
4516 --
4517 -- ----------------------------------------------------------------------------
4518 -- |----------------------------< update_gb_emp_asg >-------------------------|
4519 -- ----------------------------------------------------------------------------
4520 --
4521 -- This version of the API is now out-of-date however it has been provided to
4522 -- you for backward compatibility support and will be removed in the future.
4523 -- Oracle recommends you to modify existing calling programs in advance of the
4524 -- support being withdrawn thus avoiding any potential disruption.
4525 --
4526 procedure update_gb_emp_asg
4527   (p_validate                     in     boolean  default false
4528   ,p_effective_date               in     date
4529   ,p_datetrack_update_mode        in     varchar2
4530   ,p_assignment_id                in     number
4531   ,p_object_version_number        in out nocopy number
4532   ,p_supervisor_id                in     number   default hr_api.g_number
4533   ,p_assignment_number            in     varchar2 default hr_api.g_varchar2
4534   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
4535   ,p_comments                     in     varchar2 default hr_api.g_varchar2
4536   ,p_date_probation_end           in     date     default hr_api.g_date
4537   ,p_default_code_comb_id         in     number   default hr_api.g_number
4538   ,p_frequency                    in     varchar2 default hr_api.g_varchar2
4539   ,p_internal_address_line        in     varchar2 default hr_api.g_varchar2
4540   ,p_manager_flag                 in     varchar2 default hr_api.g_varchar2
4541   ,p_normal_hours                 in     number   default hr_api.g_number
4542   ,p_perf_review_period           in     number   default hr_api.g_number
4543   ,p_perf_review_period_frequency in     varchar2 default hr_api.g_varchar2
4544   ,p_probation_period             in     number   default hr_api.g_number
4545   ,p_probation_unit               in     varchar2 default hr_api.g_varchar2
4546   ,p_sal_review_period            in     number   default hr_api.g_number
4547   ,p_sal_review_period_frequency  in     varchar2 default hr_api.g_varchar2
4548   ,p_set_of_books_id              in     number   default hr_api.g_number
4549   ,p_source_type                  in     varchar2 default hr_api.g_varchar2
4550   ,p_time_normal_finish           in     varchar2 default hr_api.g_varchar2
4551   ,p_time_normal_start            in     varchar2 default hr_api.g_varchar2
4552   ,p_bargaining_unit_code         in     varchar2 default hr_api.g_varchar2
4553   ,p_labour_union_member_flag     in     varchar2 default hr_api.g_varchar2
4554   ,p_hourly_salaried_code         in     varchar2 default hr_api.g_varchar2
4555   ,p_ass_attribute_category       in     varchar2 default hr_api.g_varchar2
4556   ,p_ass_attribute1               in     varchar2 default hr_api.g_varchar2
4557   ,p_ass_attribute2               in     varchar2 default hr_api.g_varchar2
4558   ,p_ass_attribute3               in     varchar2 default hr_api.g_varchar2
4559   ,p_ass_attribute4               in     varchar2 default hr_api.g_varchar2
4560   ,p_ass_attribute5               in     varchar2 default hr_api.g_varchar2
4561   ,p_ass_attribute6               in     varchar2 default hr_api.g_varchar2
4562   ,p_ass_attribute7               in     varchar2 default hr_api.g_varchar2
4563   ,p_ass_attribute8               in     varchar2 default hr_api.g_varchar2
4564   ,p_ass_attribute9               in     varchar2 default hr_api.g_varchar2
4565   ,p_ass_attribute10              in     varchar2 default hr_api.g_varchar2
4566   ,p_ass_attribute11              in     varchar2 default hr_api.g_varchar2
4567   ,p_ass_attribute12              in     varchar2 default hr_api.g_varchar2
4568   ,p_ass_attribute13              in     varchar2 default hr_api.g_varchar2
4569   ,p_ass_attribute14              in     varchar2 default hr_api.g_varchar2
4570   ,p_ass_attribute15              in     varchar2 default hr_api.g_varchar2
4571   ,p_ass_attribute16              in     varchar2 default hr_api.g_varchar2
4572   ,p_ass_attribute17              in     varchar2 default hr_api.g_varchar2
4573   ,p_ass_attribute18              in     varchar2 default hr_api.g_varchar2
4574   ,p_ass_attribute19              in     varchar2 default hr_api.g_varchar2
4575   ,p_ass_attribute20              in     varchar2 default hr_api.g_varchar2
4576   ,p_ass_attribute21              in     varchar2 default hr_api.g_varchar2
4577   ,p_ass_attribute22              in     varchar2 default hr_api.g_varchar2
4578   ,p_ass_attribute23              in     varchar2 default hr_api.g_varchar2
4579   ,p_ass_attribute24              in     varchar2 default hr_api.g_varchar2
4580   ,p_ass_attribute25              in     varchar2 default hr_api.g_varchar2
4581   ,p_ass_attribute26              in     varchar2 default hr_api.g_varchar2
4582   ,p_ass_attribute27              in     varchar2 default hr_api.g_varchar2
4583   ,p_ass_attribute28              in     varchar2 default hr_api.g_varchar2
4584   ,p_ass_attribute29              in     varchar2 default hr_api.g_varchar2
4585   ,p_ass_attribute30              in     varchar2 default hr_api.g_varchar2
4586   ,p_title                        in     varchar2 default hr_api.g_varchar2
4587   ,p_supervisor_assignment_id     in     number   default hr_api.g_number
4588   ,p_comment_id                      out nocopy number
4589   ,p_effective_start_date            out nocopy date
4590   ,p_effective_end_date              out nocopy date
4591   ,p_no_managers_warning             out nocopy boolean
4592   ,p_other_manager_warning           out nocopy boolean
4593   );
4594 
4595 --
4596 -- ----------------------------------------------------------------------------
4597 -- |----------------------------< update_gb_emp_asg >-------------------------|
4598 -- ----------------------------------------------------------------------------
4599 --
4600 -- This version of the API is now out-of-date however it has been provided to
4601 -- you for backward compatibility support and will be removed in the future.
4602 -- Oracle recommends you to modify existing calling programs in advance of the
4603 -- support being withdrawn thus avoiding any potential disruption.
4604 --
4605   procedure update_gb_emp_asg
4606   (p_validate                     in     boolean  default false
4607   ,p_effective_date               in     date
4608   ,p_datetrack_update_mode        in     varchar2
4609   ,p_assignment_id                in     number
4610   ,p_object_version_number        in out nocopy number
4611   ,p_supervisor_id                in     number   default hr_api.g_number
4612   ,p_assignment_number            in     varchar2 default hr_api.g_varchar2
4613   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
4614   ,p_comments                     in     varchar2 default hr_api.g_varchar2
4615   ,p_date_probation_end           in     date     default hr_api.g_date
4616   ,p_default_code_comb_id         in     number   default hr_api.g_number
4617   ,p_frequency                    in     varchar2 default hr_api.g_varchar2
4618   ,p_internal_address_line        in     varchar2 default hr_api.g_varchar2
4619   ,p_manager_flag                 in     varchar2 default hr_api.g_varchar2
4620   ,p_normal_hours                 in     number   default hr_api.g_number
4621   ,p_perf_review_period           in     number   default hr_api.g_number
4622   ,p_perf_review_period_frequency in     varchar2 default hr_api.g_varchar2
4623   ,p_probation_period             in     number   default hr_api.g_number
4624   ,p_probation_unit               in     varchar2 default hr_api.g_varchar2
4625   ,p_sal_review_period            in     number   default hr_api.g_number
4626   ,p_sal_review_period_frequency  in     varchar2 default hr_api.g_varchar2
4627   ,p_set_of_books_id              in     number   default hr_api.g_number
4628   ,p_source_type                  in     varchar2 default hr_api.g_varchar2
4629   ,p_time_normal_finish           in     varchar2 default hr_api.g_varchar2
4630   ,p_time_normal_start            in     varchar2 default hr_api.g_varchar2
4631   ,p_bargaining_unit_code         in     varchar2 default hr_api.g_varchar2
4632   ,p_labour_union_member_flag     in     varchar2 default hr_api.g_varchar2
4633   ,p_hourly_salaried_code         in     varchar2 default hr_api.g_varchar2
4634   ,p_ass_attribute_category       in     varchar2 default hr_api.g_varchar2
4635   ,p_ass_attribute1               in     varchar2 default hr_api.g_varchar2
4636   ,p_ass_attribute2               in     varchar2 default hr_api.g_varchar2
4637   ,p_ass_attribute3               in     varchar2 default hr_api.g_varchar2
4638   ,p_ass_attribute4               in     varchar2 default hr_api.g_varchar2
4639   ,p_ass_attribute5               in     varchar2 default hr_api.g_varchar2
4640   ,p_ass_attribute6               in     varchar2 default hr_api.g_varchar2
4641   ,p_ass_attribute7               in     varchar2 default hr_api.g_varchar2
4642   ,p_ass_attribute8               in     varchar2 default hr_api.g_varchar2
4643   ,p_ass_attribute9               in     varchar2 default hr_api.g_varchar2
4644   ,p_ass_attribute10              in     varchar2 default hr_api.g_varchar2
4645   ,p_ass_attribute11              in     varchar2 default hr_api.g_varchar2
4646   ,p_ass_attribute12              in     varchar2 default hr_api.g_varchar2
4647   ,p_ass_attribute13              in     varchar2 default hr_api.g_varchar2
4648   ,p_ass_attribute14              in     varchar2 default hr_api.g_varchar2
4649   ,p_ass_attribute15              in     varchar2 default hr_api.g_varchar2
4650   ,p_ass_attribute16              in     varchar2 default hr_api.g_varchar2
4651   ,p_ass_attribute17              in     varchar2 default hr_api.g_varchar2
4652   ,p_ass_attribute18              in     varchar2 default hr_api.g_varchar2
4653   ,p_ass_attribute19              in     varchar2 default hr_api.g_varchar2
4654   ,p_ass_attribute20              in     varchar2 default hr_api.g_varchar2
4655   ,p_ass_attribute21              in     varchar2 default hr_api.g_varchar2
4656   ,p_ass_attribute22              in     varchar2 default hr_api.g_varchar2
4657   ,p_ass_attribute23              in     varchar2 default hr_api.g_varchar2
4658   ,p_ass_attribute24              in     varchar2 default hr_api.g_varchar2
4659   ,p_ass_attribute25              in     varchar2 default hr_api.g_varchar2
4660   ,p_ass_attribute26              in     varchar2 default hr_api.g_varchar2
4661   ,p_ass_attribute27              in     varchar2 default hr_api.g_varchar2
4662   ,p_ass_attribute28              in     varchar2 default hr_api.g_varchar2
4663   ,p_ass_attribute29              in     varchar2 default hr_api.g_varchar2
4664   ,p_ass_attribute30              in     varchar2 default hr_api.g_varchar2
4665   ,p_title                        in     varchar2 default hr_api.g_varchar2
4666   ,p_contract_id		  in     number   default hr_api.g_number
4667   ,p_establishment_id		  in     number   default hr_api.g_number
4668   ,p_collective_agreement_id	  in 	 number   default hr_api.g_number
4669   ,p_cagr_id_flex_num		  in	 number   default hr_api.g_number
4670   ,p_notice_period		  in     number   default hr_api.g_number
4671   ,p_notice_period_uom	      	  in     varchar2 default hr_api.g_varchar2
4672   ,p_employee_category	          in     varchar2 default hr_api.g_varchar2
4673   ,p_work_at_home		  in     varchar2 default hr_api.g_varchar2
4674   ,p_job_post_source_name	  in     varchar2 default hr_api.g_varchar2
4675   ,p_supervisor_assignment_id     in     number   default hr_api.g_number
4676   ,p_cagr_grade_def_id               out nocopy number
4677   ,p_cagr_concatenated_segments      out nocopy varchar2
4678   ,p_concatenated_segments           out nocopy varchar2
4679   ,p_soft_coding_keyflex_id          out nocopy number
4680   ,p_comment_id                      out nocopy number
4681   ,p_effective_start_date            out nocopy date
4682   ,p_effective_end_date              out nocopy date
4683   ,p_no_managers_warning             out nocopy boolean
4684   ,p_other_manager_warning           out nocopy boolean
4685   );
4686 
4687 --
4688 -- ----------------------------------------------------------------------------
4689 -- |----------------------------< update_gb_emp_asg >-------------------------|
4690 -- ----------------------------------------------------------------------------
4691 --
4692 -- {Start Of Comments}
4693 /*#
4694  * This API updates information for an existing employee assignment with a GB
4695  * legislation.
4696  *
4697  *
4698  * <p><b>Licensing</b><br>
4699  * This API is licensed for use with Human Resources.
4700  *
4701  * <p><b>Prerequisites</b><br>
4702  * The assignment must exist as of the effective date, and must be an employee
4703  * assignment.
4704  *
4705  * <p><b>Post Success</b><br>
4706  * The API updates the assignment.
4707  *
4708  * <p><b>Post Failure</b><br>
4709  * The API does not update the assignment and raises an error.
4710  * @param p_validate If true, then validation alone will be performed and the
4711  * database will remain unchanged. If false and all validation checks pass,
4712  * then the database will be modified.
4713  * @param p_effective_date Determines when the DateTrack operation comes into
4714  * force.
4715  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
4716  * updating the record. You must set to either UPDATE, CORRECTION,
4717  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
4718  * particular record depend on the dates of previous record changes and the
4719  * effective date of this change.
4720  * @param p_assignment_id Identifies the assignment record to be modified.
4721  * @param p_object_version_number Pass in the current version number of the
4722  * assignment to be updated. When the API completes if p_validate is false,
4723  * will be set to the new version number of the updated assignment. If
4724  * p_validate is true will be set to the same value which was passed in.
4725  * @param p_supervisor_id Supervisor for the assignment. The value refers to
4726  * the supervisor's person record.
4727  * @param p_assignment_number Assignment number
4728  * @param p_change_reason Reason for the assignment status change. If there is
4729  * no change reason the parameter can be null. Valid values are defined in the
4730  * EMP_ASSIGN_REASON lookup type.
4731  * @param p_comments Comment text.
4732  * @param p_date_probation_end End date of probation period
4733  * @param p_default_code_comb_id Identifier for the General Ledger Accounting
4734  * Flexfield combination which applies to this assignment
4735  * @param p_frequency Frequency associated with the defined normal working
4736  * hours. Valid values are defined in the FREQUENCY lookup type.
4737  * @param p_internal_address_line Internal address identified with this
4738  * assignment.
4739  * @param p_manager_flag Indicates whether the employee is a manager
4740  * @param p_normal_hours Normal working hours for this assignment
4741  * @param p_perf_review_period Length of performance review period
4742  * @param p_perf_review_period_frequency Units of performance review period.
4743  * Valid values are defined in the FREQUENCY lookup type.
4744  * @param p_probation_period Length of probation period
4745  * @param p_probation_unit Units of probation period. Valid values are defined
4746  * in the QUALIFYING_UNITS lookup type.
4747  * @param p_sal_review_period Length of salary review period
4748  * @param p_sal_review_period_frequency Units of salary review period. Valid
4749  * values are defined in the FREQUENCY lookup type.
4750  * @param p_set_of_books_id Identifies General Ledger set of books.
4751  * @param p_source_type Recruitment activity which this assignment is sourced
4752  * from. Valid values are defined in the REC_TYPE lookup type.
4753  * @param p_time_normal_finish Normal work finish time
4754  * @param p_time_normal_start Normal work start time
4755  * @param p_bargaining_unit_code Code for bargaining unit. Valid values are
4756  * defined in the BARGAINING_UNIT_CODE lookup type.
4757  * @param p_labour_union_member_flag Value 'Y' indicates employee is a labour
4758  * union member. Other values indicate not a member.
4759  * @param p_hourly_salaried_code Identifies if the assignment is paid hourly or
4760  * is salaried. Valid values defined in the HOURLY_SALARIED_CODE lookup type.
4761  * @param p_ass_attribute_category This context value determines which
4762  * Flexfield Structure to use with the Descriptive flexfield segments.
4763  * @param p_ass_attribute1 Descriptive flexfield segment
4764  * @param p_ass_attribute2 Descriptive flexfield segment
4765  * @param p_ass_attribute3 Descriptive flexfield segment
4766  * @param p_ass_attribute4 Descriptive flexfield segment
4767  * @param p_ass_attribute5 Descriptive flexfield segment
4768  * @param p_ass_attribute6 Descriptive flexfield segment
4769  * @param p_ass_attribute7 Descriptive flexfield segment
4770  * @param p_ass_attribute8 Descriptive flexfield segment
4771  * @param p_ass_attribute9 Descriptive flexfield segment
4772  * @param p_ass_attribute10 Descriptive flexfield segment
4773  * @param p_ass_attribute11 Descriptive flexfield segment
4774  * @param p_ass_attribute12 Descriptive flexfield segment
4775  * @param p_ass_attribute13 Descriptive flexfield segment
4776  * @param p_ass_attribute14 Descriptive flexfield segment
4777  * @param p_ass_attribute15 Descriptive flexfield segment
4778  * @param p_ass_attribute16 Descriptive flexfield segment
4779  * @param p_ass_attribute17 Descriptive flexfield segment
4780  * @param p_ass_attribute18 Descriptive flexfield segment
4781  * @param p_ass_attribute19 Descriptive flexfield segment
4782  * @param p_ass_attribute20 Descriptive flexfield segment
4783  * @param p_ass_attribute21 Descriptive flexfield segment
4784  * @param p_ass_attribute22 Descriptive flexfield segment
4785  * @param p_ass_attribute23 Descriptive flexfield segment
4786  * @param p_ass_attribute24 Descriptive flexfield segment
4787  * @param p_ass_attribute25 Descriptive flexfield segment
4788  * @param p_ass_attribute26 Descriptive flexfield segment
4789  * @param p_ass_attribute27 Descriptive flexfield segment
4790  * @param p_ass_attribute28 Descriptive flexfield segment
4791  * @param p_ass_attribute29 Descriptive flexfield segment
4792  * @param p_ass_attribute30 Descriptive flexfield segment
4793  * @param p_title Obsolete parameter, do not use.
4794  * @param p_contract_id Contract associated with this assignment
4795  * @param p_establishment_id For French business groups, this identifies the
4796  * Establishment Legal Entity for this assignment.
4797  * @param p_collective_agreement_id Collective Agreement which applies to this
4798  * assignment
4799  * @param p_cagr_id_flex_num Identifier for the structure from CAGR Key
4800  * flexfield to use for this assignment
4801  * @param p_notice_period Length of notice period
4802  * @param p_notice_period_uom Units for notice period. Valid values are defined
4803  * in the QUALIFYING_UNITS lookup type.
4804  * @param p_employee_category Employee Category. Valid values are defined in
4805  * the EMPLOYEE_CATG lookup type.
4806  * @param p_work_at_home Indicate whether this assignment is to work at home.
4807  * Valid values are defined in the YES_NO lookup type.
4808  * @param p_job_post_source_name Name of the source of the job posting that was
4809  * answered for this assignment.
4810  * @param p_supervisor_assignment_id Supervisor's assignment that is
4811  * responsible for supervising this assignment.
4812  * @param p_cagr_grade_def_id If a value is passed in for this parameter, it
4813  * identifies an existing CAGR Key Flexfield combination to associate with the
4814  * assignment, and segment values are ignored. If a value is not passed in,
4815  * then the individual CAGR Key Flexfield segments supplied will be used to
4816  * choose an existing combination or create a new combination. When the API
4817  * completes, if p_validate is false, then this uniquely identifies the
4818  * associated combination of the CAGR Key flexfield for this assignment. If
4819  * p_validate is true, then set to null.
4820  * @param p_cagr_concatenated_segments CAGR Key Flexfield concatenated segments
4821  * @param p_concatenated_segments If p_validate is false, set to Soft Coded Key
4822  * Flexfield concatenated segments, if p_validate is true, set to null.
4823  * @param p_soft_coding_keyflex_id If a value is passed in for this parameter,
4824  * it identifies an existing Soft Coded Key Flexfield combination to associate
4825  * with the assignment, and segment values are ignored. If a value is not
4826  * passed in, then the individual Soft Coded Key Flexfield segments supplied
4827  * will be used to choose an existing combination or create a new combination.
4828  * When the API completes, if p_validate is false, then this uniquely
4829  * identifies the associated combination of the Soft Coded Key flexfield for
4830  * this assignment. If p_validate is true, then set to null.
4831  * @param p_comment_id If p_validate is false and comment text was provided,
4832  * then will be set to the identifier of the created assignment comment record.
4833  * If p_validate is true or no comment text was provided, then will be null.
4834  * @param p_effective_start_date If p_validate is false, then set to the
4835  * earliest effective start date for the created assignment. If p_validate is
4836  * true, then set to null.
4837  * @param p_effective_end_date If p_validate is false, then set to the
4838  * effective end date for the created assignment. If p_validate is true, then
4839  * set to null.
4840  * @param p_no_managers_warning Set to true if as a result of the update there
4841  * is no manager in the organization. Otherwise set to false.
4842  * @param p_other_manager_warning If set to true, then a manager existed in the
4843  * organization prior to calling this API and the manager flag has been set to
4844  * 'Y' for yes.
4845  * @param p_hourly_salaried_warning Set to true if values entered for Salary
4846  * Basis and Hourly Salaried Code are invalid date as of p_effective_date.
4847  * @rep:displayname Update Employee Assignment for United Kingdom
4848  * @rep:category BUSINESS_ENTITY PER_EMPLOYEE_ASG
4849  * @rep:category MISC_EXTENSIONS HR_DATAPUMP
4850  * @rep:scope public
4851  * @rep:lifecycle active
4852  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
4853 */
4854 --
4855 -- {End Of Comments}
4856 --
4857 procedure update_gb_emp_asg
4858   (p_validate                     in     boolean  default false
4859   ,p_effective_date               in     date
4860   ,p_datetrack_update_mode        in     varchar2
4861   ,p_assignment_id                in     number
4862   ,p_object_version_number        in out nocopy number
4863   ,p_supervisor_id                in     number   default hr_api.g_number
4864   ,p_assignment_number            in     varchar2 default hr_api.g_varchar2
4865   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
4866   ,p_comments                     in     varchar2 default hr_api.g_varchar2
4867   ,p_date_probation_end           in     date     default hr_api.g_date
4868   ,p_default_code_comb_id         in     number   default hr_api.g_number
4869   ,p_frequency                    in     varchar2 default hr_api.g_varchar2
4870   ,p_internal_address_line        in     varchar2 default hr_api.g_varchar2
4871   ,p_manager_flag                 in     varchar2 default hr_api.g_varchar2
4872   ,p_normal_hours                 in     number   default hr_api.g_number
4873   ,p_perf_review_period           in     number   default hr_api.g_number
4874   ,p_perf_review_period_frequency in     varchar2 default hr_api.g_varchar2
4875   ,p_probation_period             in     number   default hr_api.g_number
4876   ,p_probation_unit               in     varchar2 default hr_api.g_varchar2
4877   ,p_sal_review_period            in     number   default hr_api.g_number
4878   ,p_sal_review_period_frequency  in     varchar2 default hr_api.g_varchar2
4879   ,p_set_of_books_id              in     number   default hr_api.g_number
4880   ,p_source_type                  in     varchar2 default hr_api.g_varchar2
4881   ,p_time_normal_finish           in     varchar2 default hr_api.g_varchar2
4882   ,p_time_normal_start            in     varchar2 default hr_api.g_varchar2
4883   ,p_bargaining_unit_code         in     varchar2 default hr_api.g_varchar2
4884   ,p_labour_union_member_flag     in     varchar2 default hr_api.g_varchar2
4885   ,p_hourly_salaried_code         in     varchar2 default hr_api.g_varchar2
4886   ,p_ass_attribute_category       in     varchar2 default hr_api.g_varchar2
4887   ,p_ass_attribute1               in     varchar2 default hr_api.g_varchar2
4888   ,p_ass_attribute2               in     varchar2 default hr_api.g_varchar2
4889   ,p_ass_attribute3               in     varchar2 default hr_api.g_varchar2
4890   ,p_ass_attribute4               in     varchar2 default hr_api.g_varchar2
4891   ,p_ass_attribute5               in     varchar2 default hr_api.g_varchar2
4892   ,p_ass_attribute6               in     varchar2 default hr_api.g_varchar2
4893   ,p_ass_attribute7               in     varchar2 default hr_api.g_varchar2
4894   ,p_ass_attribute8               in     varchar2 default hr_api.g_varchar2
4895   ,p_ass_attribute9               in     varchar2 default hr_api.g_varchar2
4896   ,p_ass_attribute10              in     varchar2 default hr_api.g_varchar2
4897   ,p_ass_attribute11              in     varchar2 default hr_api.g_varchar2
4898   ,p_ass_attribute12              in     varchar2 default hr_api.g_varchar2
4899   ,p_ass_attribute13              in     varchar2 default hr_api.g_varchar2
4900   ,p_ass_attribute14              in     varchar2 default hr_api.g_varchar2
4901   ,p_ass_attribute15              in     varchar2 default hr_api.g_varchar2
4902   ,p_ass_attribute16              in     varchar2 default hr_api.g_varchar2
4903   ,p_ass_attribute17              in     varchar2 default hr_api.g_varchar2
4904   ,p_ass_attribute18              in     varchar2 default hr_api.g_varchar2
4905   ,p_ass_attribute19              in     varchar2 default hr_api.g_varchar2
4906   ,p_ass_attribute20              in     varchar2 default hr_api.g_varchar2
4907   ,p_ass_attribute21              in     varchar2 default hr_api.g_varchar2
4908   ,p_ass_attribute22              in     varchar2 default hr_api.g_varchar2
4909   ,p_ass_attribute23              in     varchar2 default hr_api.g_varchar2
4910   ,p_ass_attribute24              in     varchar2 default hr_api.g_varchar2
4911   ,p_ass_attribute25              in     varchar2 default hr_api.g_varchar2
4912   ,p_ass_attribute26              in     varchar2 default hr_api.g_varchar2
4913   ,p_ass_attribute27              in     varchar2 default hr_api.g_varchar2
4914   ,p_ass_attribute28              in     varchar2 default hr_api.g_varchar2
4915   ,p_ass_attribute29              in     varchar2 default hr_api.g_varchar2
4916   ,p_ass_attribute30              in     varchar2 default hr_api.g_varchar2
4917   ,p_title                        in     varchar2 default hr_api.g_varchar2
4918   ,p_contract_id		  in     number   default hr_api.g_number
4919   ,p_establishment_id		  in     number   default hr_api.g_number
4920   ,p_collective_agreement_id	  in 	 number   default hr_api.g_number
4921   ,p_cagr_id_flex_num		  in	 number   default hr_api.g_number
4922   ,p_notice_period		  in     number   default hr_api.g_number
4923   ,p_notice_period_uom	      	  in     varchar2 default hr_api.g_varchar2
4924   ,p_employee_category	          in     varchar2 default hr_api.g_varchar2
4925   ,p_work_at_home		  in     varchar2 default hr_api.g_varchar2
4926   ,p_job_post_source_name	  in     varchar2 default hr_api.g_varchar2
4927   ,p_supervisor_assignment_id     in     number   default hr_api.g_number
4928   ,p_cagr_grade_def_id               out nocopy number
4929   ,p_cagr_concatenated_segments      out nocopy varchar2
4930   ,p_concatenated_segments           out nocopy varchar2
4931   ,p_soft_coding_keyflex_id          out nocopy number
4932   ,p_comment_id                      out nocopy number
4933   ,p_effective_start_date            out nocopy date
4934   ,p_effective_end_date              out nocopy date
4935   ,p_no_managers_warning             out nocopy boolean
4936   ,p_other_manager_warning           out nocopy boolean
4937   ,p_hourly_salaried_warning         out nocopy boolean
4938   );
4939 --
4940 -- ----------------------------------------------------------------------------
4941 -- |----------------------------< update_us_emp_asg >-------------------------|
4942 -- ----------------------------------------------------------------------------
4943 --
4944 -- This version of the API is now out-of-date however it has been provided to
4945 -- you for backward compatibility support and will be removed in the future.
4946 -- Oracle recommends you to modify existing calling programs in advance of the
4947 -- support being withdrawn thus avoiding any potential disruption.
4948 --
4949 procedure update_us_emp_asg
4950   (p_validate                     in     boolean  default false
4951   ,p_effective_date               in     date
4952   ,p_datetrack_update_mode        in     varchar2
4953   ,p_assignment_id                in     number
4954   ,p_object_version_number        in out nocopy number
4955   ,p_supervisor_id                in     number   default hr_api.g_number
4956   ,p_assignment_number            in     varchar2 default hr_api.g_varchar2
4957   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
4958   ,p_comments                     in     varchar2 default hr_api.g_varchar2
4959   ,p_date_probation_end           in     date     default hr_api.g_date
4960   ,p_default_code_comb_id         in     number   default hr_api.g_number
4961   ,p_frequency                    in     varchar2 default hr_api.g_varchar2
4962   ,p_internal_address_line        in     varchar2 default hr_api.g_varchar2
4963   ,p_manager_flag                 in     varchar2 default hr_api.g_varchar2
4964   ,p_normal_hours                 in     number   default hr_api.g_number
4965   ,p_perf_review_period           in     number   default hr_api.g_number
4966   ,p_perf_review_period_frequency in     varchar2 default hr_api.g_varchar2
4967   ,p_probation_period             in     number   default hr_api.g_number
4968   ,p_probation_unit               in     varchar2 default hr_api.g_varchar2
4969   ,p_sal_review_period            in     number   default hr_api.g_number
4970   ,p_sal_review_period_frequency  in     varchar2 default hr_api.g_varchar2
4971   ,p_set_of_books_id              in     number   default hr_api.g_number
4972   ,p_source_type                  in     varchar2 default hr_api.g_varchar2
4973   ,p_time_normal_finish           in     varchar2 default hr_api.g_varchar2
4974   ,p_time_normal_start            in     varchar2 default hr_api.g_varchar2
4975   ,p_bargaining_unit_code         in     varchar2 default hr_api.g_varchar2
4976   ,p_labour_union_member_flag     in     varchar2 default hr_api.g_varchar2
4977   ,p_hourly_salaried_code         in     varchar2 default hr_api.g_varchar2
4978   ,p_ass_attribute_category       in     varchar2 default hr_api.g_varchar2
4979   ,p_ass_attribute1               in     varchar2 default hr_api.g_varchar2
4980   ,p_ass_attribute2               in     varchar2 default hr_api.g_varchar2
4981   ,p_ass_attribute3               in     varchar2 default hr_api.g_varchar2
4982   ,p_ass_attribute4               in     varchar2 default hr_api.g_varchar2
4983   ,p_ass_attribute5               in     varchar2 default hr_api.g_varchar2
4984   ,p_ass_attribute6               in     varchar2 default hr_api.g_varchar2
4985   ,p_ass_attribute7               in     varchar2 default hr_api.g_varchar2
4986   ,p_ass_attribute8               in     varchar2 default hr_api.g_varchar2
4987   ,p_ass_attribute9               in     varchar2 default hr_api.g_varchar2
4988   ,p_ass_attribute10              in     varchar2 default hr_api.g_varchar2
4989   ,p_ass_attribute11              in     varchar2 default hr_api.g_varchar2
4990   ,p_ass_attribute12              in     varchar2 default hr_api.g_varchar2
4991   ,p_ass_attribute13              in     varchar2 default hr_api.g_varchar2
4992   ,p_ass_attribute14              in     varchar2 default hr_api.g_varchar2
4993   ,p_ass_attribute15              in     varchar2 default hr_api.g_varchar2
4994   ,p_ass_attribute16              in     varchar2 default hr_api.g_varchar2
4995   ,p_ass_attribute17              in     varchar2 default hr_api.g_varchar2
4996   ,p_ass_attribute18              in     varchar2 default hr_api.g_varchar2
4997   ,p_ass_attribute19              in     varchar2 default hr_api.g_varchar2
4998   ,p_ass_attribute20              in     varchar2 default hr_api.g_varchar2
4999   ,p_ass_attribute21              in     varchar2 default hr_api.g_varchar2
5000   ,p_ass_attribute22              in     varchar2 default hr_api.g_varchar2
5001   ,p_ass_attribute23              in     varchar2 default hr_api.g_varchar2
5002   ,p_ass_attribute24              in     varchar2 default hr_api.g_varchar2
5003   ,p_ass_attribute25              in     varchar2 default hr_api.g_varchar2
5004   ,p_ass_attribute26              in     varchar2 default hr_api.g_varchar2
5005   ,p_ass_attribute27              in     varchar2 default hr_api.g_varchar2
5006   ,p_ass_attribute28              in     varchar2 default hr_api.g_varchar2
5007   ,p_ass_attribute29              in     varchar2 default hr_api.g_varchar2
5008   ,p_ass_attribute30              in     varchar2 default hr_api.g_varchar2
5009   ,p_title                        in     varchar2 default hr_api.g_varchar2
5010   ,p_tax_unit                     in     varchar2 default hr_api.g_varchar2
5011   ,p_timecard_approver            in     varchar2 default hr_api.g_varchar2
5012   ,p_timecard_required            in     varchar2 default hr_api.g_varchar2
5013   ,p_work_schedule                in     varchar2 default hr_api.g_varchar2
5014   ,p_shift                        in     varchar2 default hr_api.g_varchar2
5015   ,p_spouse_salary                in     varchar2 default hr_api.g_varchar2
5016   ,p_legal_representative         in     varchar2 default hr_api.g_varchar2
5017   ,p_wc_override_code             in     varchar2 default hr_api.g_varchar2
5018   ,p_eeo_1_establishment          in     varchar2 default hr_api.g_varchar2
5019   ,p_supervisor_assignment_id     in     number   default hr_api.g_number
5020   ,p_comment_id                      out nocopy number
5021   ,p_soft_coding_keyflex_id          out nocopy number
5022   ,p_effective_start_date            out nocopy date
5023   ,p_effective_end_date              out nocopy date
5024 -- Bug 944911
5025 -- Amended p_concatenated_segments to be out
5026 -- Added p_concat_segments  - in param
5027   ,p_concatenated_segments           out nocopy varchar2
5028   ,p_concat_segments              in     varchar2 default hr_api.g_varchar2
5029   ,p_no_managers_warning             out nocopy boolean
5030   ,p_other_manager_warning           out nocopy boolean
5031   );
5032 
5033 --
5034 -- ----------------------------------------------------------------------------
5035 -- |----------------------------< update_us_emp_asg >-------------------------|
5036 -- ----------------------------------------------------------------------------
5037 --
5038 -- This version of the API is now out-of-date however it has been provided to
5039 -- you for backward compatibility support and will be removed in the future.
5040 -- Oracle recommends you to modify existing calling programs in advance of the
5041 -- support being withdrawn thus avoiding any potential disruption.
5042 --
5043 procedure update_us_emp_asg
5044   (p_validate                     in     boolean  default false
5045   ,p_effective_date               in     date
5046   ,p_datetrack_update_mode        in     varchar2
5047   ,p_assignment_id                in     number
5048   ,p_object_version_number        in out nocopy number
5049   ,p_supervisor_id                in     number   default hr_api.g_number
5050   ,p_assignment_number            in     varchar2 default hr_api.g_varchar2
5051   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
5052   ,p_comments                     in     varchar2 default hr_api.g_varchar2
5053   ,p_date_probation_end           in     date     default hr_api.g_date
5054   ,p_default_code_comb_id         in     number   default hr_api.g_number
5055   ,p_frequency                    in     varchar2 default hr_api.g_varchar2
5056   ,p_internal_address_line        in     varchar2 default hr_api.g_varchar2
5057   ,p_manager_flag                 in     varchar2 default hr_api.g_varchar2
5058   ,p_normal_hours                 in     number   default hr_api.g_number
5059   ,p_perf_review_period           in     number   default hr_api.g_number
5060   ,p_perf_review_period_frequency in     varchar2 default hr_api.g_varchar2
5061   ,p_probation_period             in     number   default hr_api.g_number
5062   ,p_probation_unit               in     varchar2 default hr_api.g_varchar2
5063   ,p_sal_review_period            in     number   default hr_api.g_number
5064   ,p_sal_review_period_frequency  in     varchar2 default hr_api.g_varchar2
5065   ,p_set_of_books_id              in     number   default hr_api.g_number
5066   ,p_source_type                  in     varchar2 default hr_api.g_varchar2
5067   ,p_time_normal_finish           in     varchar2 default hr_api.g_varchar2
5068   ,p_time_normal_start            in     varchar2 default hr_api.g_varchar2
5069   ,p_bargaining_unit_code         in     varchar2 default hr_api.g_varchar2
5070   ,p_labour_union_member_flag     in     varchar2 default hr_api.g_varchar2
5071   ,p_hourly_salaried_code         in     varchar2 default hr_api.g_varchar2
5072   ,p_ass_attribute_category       in     varchar2 default hr_api.g_varchar2
5073   ,p_ass_attribute1               in     varchar2 default hr_api.g_varchar2
5074   ,p_ass_attribute2               in     varchar2 default hr_api.g_varchar2
5075   ,p_ass_attribute3               in     varchar2 default hr_api.g_varchar2
5076   ,p_ass_attribute4               in     varchar2 default hr_api.g_varchar2
5077   ,p_ass_attribute5               in     varchar2 default hr_api.g_varchar2
5078   ,p_ass_attribute6               in     varchar2 default hr_api.g_varchar2
5079   ,p_ass_attribute7               in     varchar2 default hr_api.g_varchar2
5080   ,p_ass_attribute8               in     varchar2 default hr_api.g_varchar2
5081   ,p_ass_attribute9               in     varchar2 default hr_api.g_varchar2
5082   ,p_ass_attribute10              in     varchar2 default hr_api.g_varchar2
5083   ,p_ass_attribute11              in     varchar2 default hr_api.g_varchar2
5084   ,p_ass_attribute12              in     varchar2 default hr_api.g_varchar2
5085   ,p_ass_attribute13              in     varchar2 default hr_api.g_varchar2
5086   ,p_ass_attribute14              in     varchar2 default hr_api.g_varchar2
5087   ,p_ass_attribute15              in     varchar2 default hr_api.g_varchar2
5088   ,p_ass_attribute16              in     varchar2 default hr_api.g_varchar2
5089   ,p_ass_attribute17              in     varchar2 default hr_api.g_varchar2
5090   ,p_ass_attribute18              in     varchar2 default hr_api.g_varchar2
5091   ,p_ass_attribute19              in     varchar2 default hr_api.g_varchar2
5092   ,p_ass_attribute20              in     varchar2 default hr_api.g_varchar2
5093   ,p_ass_attribute21              in     varchar2 default hr_api.g_varchar2
5094   ,p_ass_attribute22              in     varchar2 default hr_api.g_varchar2
5095   ,p_ass_attribute23              in     varchar2 default hr_api.g_varchar2
5096   ,p_ass_attribute24              in     varchar2 default hr_api.g_varchar2
5097   ,p_ass_attribute25              in     varchar2 default hr_api.g_varchar2
5098   ,p_ass_attribute26              in     varchar2 default hr_api.g_varchar2
5099   ,p_ass_attribute27              in     varchar2 default hr_api.g_varchar2
5100   ,p_ass_attribute28              in     varchar2 default hr_api.g_varchar2
5101   ,p_ass_attribute29              in     varchar2 default hr_api.g_varchar2
5102   ,p_ass_attribute30              in     varchar2 default hr_api.g_varchar2
5103   ,p_title                        in     varchar2 default hr_api.g_varchar2
5104   ,p_tax_unit                     in     varchar2 default hr_api.g_varchar2
5105   ,p_timecard_approver            in     varchar2 default hr_api.g_varchar2
5106   ,p_timecard_required            in     varchar2 default hr_api.g_varchar2
5107   ,p_work_schedule                in     varchar2 default hr_api.g_varchar2
5108   ,p_shift                        in     varchar2 default hr_api.g_varchar2
5109   ,p_spouse_salary                in     varchar2 default hr_api.g_varchar2
5110   ,p_legal_representative         in     varchar2 default hr_api.g_varchar2
5111   ,p_wc_override_code             in     varchar2 default hr_api.g_varchar2
5112   ,p_eeo_1_establishment          in     varchar2 default hr_api.g_varchar2
5113   ,p_contract_id                  in     number   default hr_api.g_number
5114   ,p_establishment_id             in     number   default hr_api.g_number
5115   ,p_collective_agreement_id      in     number   default hr_api.g_number
5116   ,p_cagr_id_flex_num             in     number   default hr_api.g_number
5117   ,p_notice_period		  in     number   default hr_api.g_number
5118   ,p_notice_period_uom	      	  in     varchar2 default hr_api.g_varchar2
5119   ,p_employee_category	          in     varchar2 default hr_api.g_varchar2
5120   ,p_work_at_home		  in     varchar2 default hr_api.g_varchar2
5121   ,p_job_post_source_name	  in     varchar2 default hr_api.g_varchar2
5122   ,p_supervisor_assignment_id     in     number   default hr_api.g_number
5123   ,p_cagr_grade_def_id               out nocopy number
5124   ,p_cagr_concatenated_segments      out nocopy varchar2
5125   ,p_comment_id                      out nocopy number
5126   ,p_soft_coding_keyflex_id          out nocopy number
5127   ,p_effective_start_date            out nocopy date
5128   ,p_effective_end_date              out nocopy date
5129 -- Bug 944911
5130 -- Amended p_concatenated_segments to be out
5131 -- Added p_concat_segments  - in param
5132   ,p_concatenated_segments           out nocopy varchar2
5133   ,p_concat_segments              in     varchar2 default hr_api.g_varchar2
5134   ,p_no_managers_warning             out nocopy boolean
5135   ,p_other_manager_warning           out nocopy boolean
5136   );
5137 
5138 --
5139 -- ----------------------------------------------------------------------------
5140 -- |----------------------------< update_us_emp_asg >-------------------------|
5141 -- ----------------------------------------------------------------------------
5142 --
5143 -- This version of the API is now out-of-date however it has been provided to
5144 -- you for backward compatibility support and will be removed in the future.
5145 -- Oracle recommends you to modify existing calling programs in advance of the
5146 -- support being withdrawn thus avoiding any potential disruption.
5147 --
5148 procedure update_us_emp_asg
5149   (p_validate                     in     boolean  default false
5150   ,p_effective_date               in     date
5151   ,p_datetrack_update_mode        in     varchar2
5152   ,p_assignment_id                in     number
5153   ,p_object_version_number        in out nocopy number
5154   ,p_supervisor_id                in     number   default hr_api.g_number
5155   ,p_assignment_number            in     varchar2 default hr_api.g_varchar2
5156   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
5157   ,p_comments                     in     varchar2 default hr_api.g_varchar2
5158   ,p_date_probation_end           in     date     default hr_api.g_date
5159   ,p_default_code_comb_id         in     number   default hr_api.g_number
5160   ,p_frequency                    in     varchar2 default hr_api.g_varchar2
5161   ,p_internal_address_line        in     varchar2 default hr_api.g_varchar2
5162   ,p_manager_flag                 in     varchar2 default hr_api.g_varchar2
5163   ,p_normal_hours                 in     number   default hr_api.g_number
5164   ,p_perf_review_period           in     number   default hr_api.g_number
5165   ,p_perf_review_period_frequency in     varchar2 default hr_api.g_varchar2
5166   ,p_probation_period             in     number   default hr_api.g_number
5167   ,p_probation_unit               in     varchar2 default hr_api.g_varchar2
5168   ,p_sal_review_period            in     number   default hr_api.g_number
5169   ,p_sal_review_period_frequency  in     varchar2 default hr_api.g_varchar2
5170   ,p_set_of_books_id              in     number   default hr_api.g_number
5171   ,p_source_type                  in     varchar2 default hr_api.g_varchar2
5172   ,p_time_normal_finish           in     varchar2 default hr_api.g_varchar2
5173   ,p_time_normal_start            in     varchar2 default hr_api.g_varchar2
5174   ,p_bargaining_unit_code         in     varchar2 default hr_api.g_varchar2
5175   ,p_labour_union_member_flag     in     varchar2 default hr_api.g_varchar2
5176   ,p_hourly_salaried_code         in     varchar2 default hr_api.g_varchar2
5177   ,p_ass_attribute_category       in     varchar2 default hr_api.g_varchar2
5178   ,p_ass_attribute1               in     varchar2 default hr_api.g_varchar2
5179   ,p_ass_attribute2               in     varchar2 default hr_api.g_varchar2
5180   ,p_ass_attribute3               in     varchar2 default hr_api.g_varchar2
5181   ,p_ass_attribute4               in     varchar2 default hr_api.g_varchar2
5182   ,p_ass_attribute5               in     varchar2 default hr_api.g_varchar2
5183   ,p_ass_attribute6               in     varchar2 default hr_api.g_varchar2
5184   ,p_ass_attribute7               in     varchar2 default hr_api.g_varchar2
5185   ,p_ass_attribute8               in     varchar2 default hr_api.g_varchar2
5186   ,p_ass_attribute9               in     varchar2 default hr_api.g_varchar2
5187   ,p_ass_attribute10              in     varchar2 default hr_api.g_varchar2
5188   ,p_ass_attribute11              in     varchar2 default hr_api.g_varchar2
5189   ,p_ass_attribute12              in     varchar2 default hr_api.g_varchar2
5190   ,p_ass_attribute13              in     varchar2 default hr_api.g_varchar2
5191   ,p_ass_attribute14              in     varchar2 default hr_api.g_varchar2
5192   ,p_ass_attribute15              in     varchar2 default hr_api.g_varchar2
5193   ,p_ass_attribute16              in     varchar2 default hr_api.g_varchar2
5194   ,p_ass_attribute17              in     varchar2 default hr_api.g_varchar2
5195   ,p_ass_attribute18              in     varchar2 default hr_api.g_varchar2
5196   ,p_ass_attribute19              in     varchar2 default hr_api.g_varchar2
5197   ,p_ass_attribute20              in     varchar2 default hr_api.g_varchar2
5198   ,p_ass_attribute21              in     varchar2 default hr_api.g_varchar2
5199   ,p_ass_attribute22              in     varchar2 default hr_api.g_varchar2
5200   ,p_ass_attribute23              in     varchar2 default hr_api.g_varchar2
5201   ,p_ass_attribute24              in     varchar2 default hr_api.g_varchar2
5202   ,p_ass_attribute25              in     varchar2 default hr_api.g_varchar2
5203   ,p_ass_attribute26              in     varchar2 default hr_api.g_varchar2
5204   ,p_ass_attribute27              in     varchar2 default hr_api.g_varchar2
5205   ,p_ass_attribute28              in     varchar2 default hr_api.g_varchar2
5206   ,p_ass_attribute29              in     varchar2 default hr_api.g_varchar2
5207   ,p_ass_attribute30              in     varchar2 default hr_api.g_varchar2
5208   ,p_title                        in     varchar2 default hr_api.g_varchar2
5209   ,p_tax_unit                     in     varchar2 default hr_api.g_varchar2
5210   ,p_timecard_approver            in     varchar2 default hr_api.g_varchar2
5211   ,p_timecard_required            in     varchar2 default hr_api.g_varchar2
5212   ,p_work_schedule                in     varchar2 default hr_api.g_varchar2
5213   ,p_shift                        in     varchar2 default hr_api.g_varchar2
5214   ,p_spouse_salary                in     varchar2 default hr_api.g_varchar2
5215   ,p_legal_representative         in     varchar2 default hr_api.g_varchar2
5216   ,p_wc_override_code             in     varchar2 default hr_api.g_varchar2
5217   ,p_eeo_1_establishment          in     varchar2 default hr_api.g_varchar2
5218   ,p_contract_id                  in     number   default hr_api.g_number
5219   ,p_establishment_id             in     number   default hr_api.g_number
5220   ,p_collective_agreement_id      in     number   default hr_api.g_number
5221   ,p_cagr_id_flex_num             in     number   default hr_api.g_number
5222   ,p_notice_period		  in     number   default hr_api.g_number
5223   ,p_notice_period_uom	      	  in     varchar2 default hr_api.g_varchar2
5224   ,p_employee_category	          in     varchar2 default hr_api.g_varchar2
5225   ,p_work_at_home		  in     varchar2 default hr_api.g_varchar2
5226   ,p_job_post_source_name	  in     varchar2 default hr_api.g_varchar2
5227   ,p_supervisor_assignment_id     in     number   default hr_api.g_number
5228   ,p_cagr_grade_def_id               out nocopy number
5229   ,p_cagr_concatenated_segments      out nocopy varchar2
5230   ,p_comment_id                      out nocopy number
5231   ,p_soft_coding_keyflex_id          out nocopy number
5232   ,p_effective_start_date            out nocopy date
5233   ,p_effective_end_date              out nocopy date
5234 -- Bug 944911
5235 -- Amended p_concatenated_segments to be out
5236 -- Added p_concat_segments  - in param
5237   ,p_concatenated_segments           out nocopy varchar2
5238   ,p_concat_segments              in     varchar2 default hr_api.g_varchar2
5239   ,p_no_managers_warning             out nocopy boolean
5240   ,p_other_manager_warning           out nocopy boolean
5241   ,p_hourly_salaried_warning         out nocopy boolean
5242   );
5243 
5244 --
5245 -- ----------------------------------------------------------------------------
5246 -- |----------------------------< update_us_emp_asg >-------------------------|
5247 -- ----------------------------------------------------------------------------
5248 --
5249 -- {Start Of Comments}
5250 /*#
5251  * This API updates employee assignment details that do not affect entitlement
5252  * to element entries, for employees in a United States legislation.
5253  *
5254  *
5255  * <p><b>Licensing</b><br>
5256  * This API is licensed for use with Human Resources.
5257  *
5258  * <p><b>Prerequisites</b><br>
5259  * The assignment must exist as of the effective date, and must be an employee
5260  * assignment.
5261  *
5262  * <p><b>Post Success</b><br>
5263  * The API updates the assignment.
5264  *
5265  * <p><b>Post Failure</b><br>
5266  * The API does not update the assignment and raises an error.
5267  * @param p_validate If true, then validation alone will be performed and the
5268  * database will remain unchanged. If false and all validation checks pass,
5269  * then the database will be modified.
5270  * @param p_effective_date Determines when the DateTrack operation comes into
5271  * force.
5272  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
5273  * updating the record. You must set to either UPDATE, CORRECTION,
5274  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
5275  * particular record depend on the dates of previous record changes and the
5276  * effective date of this change.
5277  * @param p_assignment_id Identifies the assignment record to be modified.
5278  * @param p_object_version_number Pass in the current version number of the
5279  * assignment to be updated. When the API completes if p_validate is false,
5280  * will be set to the new version number of the updated assignment. If
5281  * p_validate is true will be set to the same value which was passed in.
5282  * @param p_supervisor_id Supervisor for the assignment. The value refers to
5283  * the supervisor's person record.
5284  * @param p_assignment_number Assignment number
5285  * @param p_change_reason Reason for the assignment status change. If there is
5286  * no change reason the parameter can be null. Valid values are defined in the
5287  * EMP_ASSIGN_REASON lookup type.
5288  * @param p_comments Comment text.
5289  * @param p_date_probation_end End date of probation period
5290  * @param p_default_code_comb_id Identifier for the General Ledger Accounting
5291  * Flexfield combination which applies to this assignment
5292  * @param p_frequency Frequency associated with the defined normal working
5293  * hours. Valid values are defined in the FREQUENCY lookup type.
5294  * @param p_internal_address_line Internal address identified with this
5295  * assignment.
5296  * @param p_manager_flag Indicates whether the employee is a manager
5297  * @param p_normal_hours Normal working hours for this assignment
5298  * @param p_perf_review_period Length of performance review period
5299  * @param p_perf_review_period_frequency Units of performance review period.
5300  * Valid values are defined in the FREQUENCY lookup type.
5301  * @param p_probation_period Length of probation period
5302  * @param p_probation_unit Units of probation period. Valid values are defined
5303  * in the QUALIFYING_UNITS lookup type.
5304  * @param p_sal_review_period Length of salary review period
5305  * @param p_sal_review_period_frequency Units of salary review period. Valid
5306  * values are defined in the FREQUENCY lookup type.
5307  * @param p_set_of_books_id Identifies General Ledger set of books.
5308  * @param p_source_type Recruitment activity which this assignment is sourced
5309  * from. Valid values are defined in the REC_TYPE lookup type.
5310  * @param p_time_normal_finish Normal work finish time
5311  * @param p_time_normal_start Normal work start time
5312  * @param p_bargaining_unit_code Code for bargaining unit. Valid values are
5313  * defined in the BARGAINING_UNIT_CODE lookup type.
5314  * @param p_labour_union_member_flag Value 'Y' indicates employee is a labour
5315  * union member. Other values indicate not a member.
5316  * @param p_hourly_salaried_code Identifies if the assignment is paid hourly or
5317  * is salaried. Valid values defined in the HOURLY_SALARIED_CODE lookup type.
5318  * @param p_ass_attribute_category This context value determines which
5319  * Flexfield Structure to use with the Descriptive flexfield segments.
5320  * @param p_ass_attribute1 Descriptive flexfield segment
5321  * @param p_ass_attribute2 Descriptive flexfield segment
5322  * @param p_ass_attribute3 Descriptive flexfield segment
5323  * @param p_ass_attribute4 Descriptive flexfield segment
5324  * @param p_ass_attribute5 Descriptive flexfield segment
5325  * @param p_ass_attribute6 Descriptive flexfield segment
5326  * @param p_ass_attribute7 Descriptive flexfield segment
5327  * @param p_ass_attribute8 Descriptive flexfield segment
5328  * @param p_ass_attribute9 Descriptive flexfield segment
5329  * @param p_ass_attribute10 Descriptive flexfield segment
5330  * @param p_ass_attribute11 Descriptive flexfield segment
5331  * @param p_ass_attribute12 Descriptive flexfield segment
5332  * @param p_ass_attribute13 Descriptive flexfield segment
5333  * @param p_ass_attribute14 Descriptive flexfield segment
5334  * @param p_ass_attribute15 Descriptive flexfield segment
5335  * @param p_ass_attribute16 Descriptive flexfield segment
5336  * @param p_ass_attribute17 Descriptive flexfield segment
5337  * @param p_ass_attribute18 Descriptive flexfield segment
5338  * @param p_ass_attribute19 Descriptive flexfield segment
5339  * @param p_ass_attribute20 Descriptive flexfield segment
5340  * @param p_ass_attribute21 Descriptive flexfield segment
5341  * @param p_ass_attribute22 Descriptive flexfield segment
5342  * @param p_ass_attribute23 Descriptive flexfield segment
5343  * @param p_ass_attribute24 Descriptive flexfield segment
5344  * @param p_ass_attribute25 Descriptive flexfield segment
5345  * @param p_ass_attribute26 Descriptive flexfield segment
5346  * @param p_ass_attribute27 Descriptive flexfield segment
5347  * @param p_ass_attribute28 Descriptive flexfield segment
5348  * @param p_ass_attribute29 Descriptive flexfield segment
5349  * @param p_ass_attribute30 Descriptive flexfield segment
5350  * @param p_title Obsolete parameter, do not use.
5351  * @param p_tax_unit Government Reporting Entity
5352  * @param p_timecard_approver Timecard Approver
5353  * @param p_timecard_required Indicates whether timecard is required
5354  * @param p_work_schedule Indicates the pattern of work for the assignment
5355  * @param p_shift Shift. Valid values are defined in US_SHIFTS lookup type.
5356  * @param p_spouse_salary Spouse's Salary
5357  * @param p_legal_representative Indicates if employee is a legal
5358  * representative
5359  * @param p_wc_override_code Workers Comp Override Code
5360  * @param p_eeo_1_establishment Reporting Establishment
5361  * @param p_contract_id Contract associated with this assignment
5362  * @param p_establishment_id For French business groups, this identifies the
5363  * Establishment Legal Entity for this assignment.
5364  * @param p_collective_agreement_id Collective Agreement that applies to this
5365  * assignment
5366  * @param p_cagr_id_flex_num Identifier for the structure from CAGR Key
5367  * flexfield to use for this assignment
5368  * @param p_notice_period Length of notice period
5369  * @param p_notice_period_uom Units for notice period. Valid values are defined
5370  * in the QUALIFYING_UNITS lookup type.
5371  * @param p_employee_category Employee Category. Valid values are defined in
5372  * the EMPLOYEE_CATG lookup type.
5373  * @param p_work_at_home Indicate whether this assignment is to work at home.
5374  * Valid values are defined in the YES_NO lookup type.
5375  * @param p_job_post_source_name Name of the source of the job posting that was
5376  * answered for this assignment.
5377  * @param p_supervisor_assignment_id Supervisor's assignment that is
5378  * responsible for supervising this assignment.
5379  * @param p_cagr_grade_def_id If a value is passed in for this parameter, it
5380  * identifies an existing CAGR Key Flexfield combination to associate with the
5381  * assignment, and segment values are ignored. If a value is not passed in,
5382  * then the individual CAGR Key Flexfield segments supplied will be used to
5383  * choose an existing combination or create a new combination. When the API
5384  * completes, if p_validate is false, then this uniquely identifies the
5385  * associated combination of the CAGR Key flexfield for this assignment. If
5386  * p_validate is true, then set to null.
5387  * @param p_cagr_concatenated_segments CAGR Key Flexfield concatenated segments
5388  * @param p_comment_id If p_validate is false and comment text was provided,
5389  * then will be set to the identifier of the created assignment comment record.
5390  * If p_validate is true or no comment text was provided, then will be null.
5391  * @param p_soft_coding_keyflex_id If a value is passed in for this parameter,
5392  * it identifies an existing Soft Coded Key Flexfield combination to associate
5393  * with the assignment, and segment values are ignored. If a value is not
5394  * passed in, then the individual Soft Coded Key Flexfield segments supplied
5395  * will be used to choose an existing combination or create a new combination.
5396  * When the API completes, if p_validate is false, then this uniquely
5397  * identifies the associated combination of the Soft Coded Key flexfield for
5398  * this assignment. If p_validate is true, then set to null.
5399  * @param p_effective_start_date If p_validate is false, then set to the
5400  * earliest effective start date for the created assignment. If p_validate is
5401  * true, then set to null.
5402  * @param p_effective_end_date If p_validate is false, then set to the
5403  * effective end date for the created assignment. If p_validate is true, then
5404  * set to null.
5405  * @param p_concatenated_segments If p_validate is false, set to Soft Coded Key
5406  * Flexfield concatenated segments, if p_validate is true, set to null.
5407  * @param p_concat_segments Concatenated segments for Soft Coded Key Flexfield.
5408  * Concatenated segments can be supplied instead of individual segments.
5409  * @param p_no_managers_warning Set to true if as a result of the update there
5410  * is no manager in the organization. Otherwise set to false.
5411  * @param p_other_manager_warning If set to true, then a manager existed in the
5412  * organization prior to calling this API and the manager flag has been set to
5413  * 'Y' for yes.
5414  * @param p_hourly_salaried_warning Set to true if values entered for Salary
5415  * Basis and Hourly Salaried Code are invalid date as of p_effective_date.
5416  * @param p_gsp_post_process_warning Set to the name of a warning message from
5417  * the Message Dictionary if any Grade Ladder related errors have been
5418  * encountered while running this API.
5419  * @rep:displayname Update Employee Assignment for United States
5420  * @rep:category BUSINESS_ENTITY PER_EMPLOYEE_ASG
5421  * @rep:category MISC_EXTENSIONS HR_DATAPUMP
5422  * @rep:scope public
5423  * @rep:lifecycle active
5424  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
5425 */
5426 --
5427 -- {End Of Comments}
5428 --
5429 procedure update_us_emp_asg
5430   (p_validate                     in     boolean  default false
5431   ,p_effective_date               in     date
5432   ,p_datetrack_update_mode        in     varchar2
5433   ,p_assignment_id                in     number
5434   ,p_object_version_number        in out nocopy number
5435   ,p_supervisor_id                in     number   default hr_api.g_number
5436   ,p_assignment_number            in     varchar2 default hr_api.g_varchar2
5437   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
5438   ,p_comments                     in     varchar2 default hr_api.g_varchar2
5439   ,p_date_probation_end           in     date     default hr_api.g_date
5440   ,p_default_code_comb_id         in     number   default hr_api.g_number
5441   ,p_frequency                    in     varchar2 default hr_api.g_varchar2
5442   ,p_internal_address_line        in     varchar2 default hr_api.g_varchar2
5443   ,p_manager_flag                 in     varchar2 default hr_api.g_varchar2
5444   ,p_normal_hours                 in     number   default hr_api.g_number
5445   ,p_perf_review_period           in     number   default hr_api.g_number
5446   ,p_perf_review_period_frequency in     varchar2 default hr_api.g_varchar2
5447   ,p_probation_period             in     number   default hr_api.g_number
5448   ,p_probation_unit               in     varchar2 default hr_api.g_varchar2
5449   ,p_sal_review_period            in     number   default hr_api.g_number
5450   ,p_sal_review_period_frequency  in     varchar2 default hr_api.g_varchar2
5451   ,p_set_of_books_id              in     number   default hr_api.g_number
5452   ,p_source_type                  in     varchar2 default hr_api.g_varchar2
5453   ,p_time_normal_finish           in     varchar2 default hr_api.g_varchar2
5454   ,p_time_normal_start            in     varchar2 default hr_api.g_varchar2
5455   ,p_bargaining_unit_code         in     varchar2 default hr_api.g_varchar2
5456   ,p_labour_union_member_flag     in     varchar2 default hr_api.g_varchar2
5457   ,p_hourly_salaried_code         in     varchar2 default hr_api.g_varchar2
5458   ,p_ass_attribute_category       in     varchar2 default hr_api.g_varchar2
5459   ,p_ass_attribute1               in     varchar2 default hr_api.g_varchar2
5460   ,p_ass_attribute2               in     varchar2 default hr_api.g_varchar2
5461   ,p_ass_attribute3               in     varchar2 default hr_api.g_varchar2
5462   ,p_ass_attribute4               in     varchar2 default hr_api.g_varchar2
5463   ,p_ass_attribute5               in     varchar2 default hr_api.g_varchar2
5464   ,p_ass_attribute6               in     varchar2 default hr_api.g_varchar2
5465   ,p_ass_attribute7               in     varchar2 default hr_api.g_varchar2
5466   ,p_ass_attribute8               in     varchar2 default hr_api.g_varchar2
5467   ,p_ass_attribute9               in     varchar2 default hr_api.g_varchar2
5468   ,p_ass_attribute10              in     varchar2 default hr_api.g_varchar2
5469   ,p_ass_attribute11              in     varchar2 default hr_api.g_varchar2
5470   ,p_ass_attribute12              in     varchar2 default hr_api.g_varchar2
5471   ,p_ass_attribute13              in     varchar2 default hr_api.g_varchar2
5472   ,p_ass_attribute14              in     varchar2 default hr_api.g_varchar2
5473   ,p_ass_attribute15              in     varchar2 default hr_api.g_varchar2
5474   ,p_ass_attribute16              in     varchar2 default hr_api.g_varchar2
5475   ,p_ass_attribute17              in     varchar2 default hr_api.g_varchar2
5476   ,p_ass_attribute18              in     varchar2 default hr_api.g_varchar2
5477   ,p_ass_attribute19              in     varchar2 default hr_api.g_varchar2
5478   ,p_ass_attribute20              in     varchar2 default hr_api.g_varchar2
5479   ,p_ass_attribute21              in     varchar2 default hr_api.g_varchar2
5480   ,p_ass_attribute22              in     varchar2 default hr_api.g_varchar2
5481   ,p_ass_attribute23              in     varchar2 default hr_api.g_varchar2
5482   ,p_ass_attribute24              in     varchar2 default hr_api.g_varchar2
5483   ,p_ass_attribute25              in     varchar2 default hr_api.g_varchar2
5484   ,p_ass_attribute26              in     varchar2 default hr_api.g_varchar2
5485   ,p_ass_attribute27              in     varchar2 default hr_api.g_varchar2
5486   ,p_ass_attribute28              in     varchar2 default hr_api.g_varchar2
5487   ,p_ass_attribute29              in     varchar2 default hr_api.g_varchar2
5488   ,p_ass_attribute30              in     varchar2 default hr_api.g_varchar2
5489   ,p_title                        in     varchar2 default hr_api.g_varchar2
5490   ,p_tax_unit                     in     varchar2 default hr_api.g_varchar2
5491   ,p_timecard_approver            in     varchar2 default hr_api.g_varchar2
5492   ,p_timecard_required            in     varchar2 default hr_api.g_varchar2
5493   ,p_work_schedule                in     varchar2 default hr_api.g_varchar2
5494   ,p_shift                        in     varchar2 default hr_api.g_varchar2
5495   ,p_spouse_salary                in     varchar2 default hr_api.g_varchar2
5496   ,p_legal_representative         in     varchar2 default hr_api.g_varchar2
5497   ,p_wc_override_code             in     varchar2 default hr_api.g_varchar2
5498   ,p_eeo_1_establishment          in     varchar2 default hr_api.g_varchar2
5499   ,p_contract_id                  in     number   default hr_api.g_number
5500   ,p_establishment_id             in     number   default hr_api.g_number
5501   ,p_collective_agreement_id      in     number   default hr_api.g_number
5502   ,p_cagr_id_flex_num             in     number   default hr_api.g_number
5503   ,p_notice_period		  in     number   default hr_api.g_number
5504   ,p_notice_period_uom	      	  in     varchar2 default hr_api.g_varchar2
5505   ,p_employee_category	          in     varchar2 default hr_api.g_varchar2
5506   ,p_work_at_home		  in     varchar2 default hr_api.g_varchar2
5507   ,p_job_post_source_name	  in     varchar2 default hr_api.g_varchar2
5508   ,p_supervisor_assignment_id     in     number   default hr_api.g_number
5509   ,p_cagr_grade_def_id               out nocopy number
5510   ,p_cagr_concatenated_segments      out nocopy varchar2
5511   ,p_comment_id                      out nocopy number
5512   ,p_soft_coding_keyflex_id          out nocopy number
5513   ,p_effective_start_date            out nocopy date
5514   ,p_effective_end_date              out nocopy date
5515 -- Bug 944911
5516 -- Amended p_concatenated_segments to be out
5517 -- Added p_concat_segments  - in param
5518   ,p_concatenated_segments           out nocopy varchar2
5519   ,p_concat_segments              in     varchar2 default hr_api.g_varchar2
5520   ,p_no_managers_warning             out nocopy boolean
5521   ,p_other_manager_warning           out nocopy boolean
5522   ,p_hourly_salaried_warning         out nocopy boolean
5523   ,p_gsp_post_process_warning        out nocopy varchar2
5524   );
5525 --
5526 -- ----------------------------------------------------------------------------
5527 -- |-------------------------< update_emp_asg_criteria >----------------------|
5528 -- ----------------------------------------------------------------------------
5529 --
5530 -- This version of the API is now out-of-date however it has been provided to
5531 -- you for backward compatibility support and will be removed in the future.
5532 -- Oracle recommends you to modify existing calling programs in advance of the
5533 -- support being withdrawn thus avoiding any potential disruption.
5534 --
5535 procedure update_emp_asg_criteria
5536   (p_effective_date               in     date
5537   ,p_datetrack_update_mode        in     varchar2
5538   ,p_assignment_id                in     number
5539   ,p_validate                     in     boolean  default false
5540   ,p_called_from_mass_update      in     boolean  default false
5541   ,p_grade_id                     in     number   default hr_api.g_number
5542   ,p_position_id                  in     number   default hr_api.g_number
5543   ,p_job_id                       in     number   default hr_api.g_number
5544   ,p_payroll_id                   in     number   default hr_api.g_number
5545   ,p_location_id                  in     number   default hr_api.g_number
5546   ,p_organization_id              in     number   default hr_api.g_number
5547   ,p_pay_basis_id                 in     number   default hr_api.g_number
5548   ,p_segment1                     in     varchar2 default hr_api.g_varchar2
5549   ,p_segment2                     in     varchar2 default hr_api.g_varchar2
5550   ,p_segment3                     in     varchar2 default hr_api.g_varchar2
5551   ,p_segment4                     in     varchar2 default hr_api.g_varchar2
5552   ,p_segment5                     in     varchar2 default hr_api.g_varchar2
5553   ,p_segment6                     in     varchar2 default hr_api.g_varchar2
5554   ,p_segment7                     in     varchar2 default hr_api.g_varchar2
5555   ,p_segment8                     in     varchar2 default hr_api.g_varchar2
5556   ,p_segment9                     in     varchar2 default hr_api.g_varchar2
5557   ,p_segment10                    in     varchar2 default hr_api.g_varchar2
5558   ,p_segment11                    in     varchar2 default hr_api.g_varchar2
5559   ,p_segment12                    in     varchar2 default hr_api.g_varchar2
5560   ,p_segment13                    in     varchar2 default hr_api.g_varchar2
5561   ,p_segment14                    in     varchar2 default hr_api.g_varchar2
5562   ,p_segment15                    in     varchar2 default hr_api.g_varchar2
5563   ,p_segment16                    in     varchar2 default hr_api.g_varchar2
5564   ,p_segment17                    in     varchar2 default hr_api.g_varchar2
5565   ,p_segment18                    in     varchar2 default hr_api.g_varchar2
5566   ,p_segment19                    in     varchar2 default hr_api.g_varchar2
5567   ,p_segment20                    in     varchar2 default hr_api.g_varchar2
5568   ,p_segment21                    in     varchar2 default hr_api.g_varchar2
5569   ,p_segment22                    in     varchar2 default hr_api.g_varchar2
5570   ,p_segment23                    in     varchar2 default hr_api.g_varchar2
5571   ,p_segment24                    in     varchar2 default hr_api.g_varchar2
5572   ,p_segment25                    in     varchar2 default hr_api.g_varchar2
5573   ,p_segment26                    in     varchar2 default hr_api.g_varchar2
5574   ,p_segment27                    in     varchar2 default hr_api.g_varchar2
5575   ,p_segment28                    in     varchar2 default hr_api.g_varchar2
5576   ,p_segment29                    in     varchar2 default hr_api.g_varchar2
5577   ,p_segment30                    in     varchar2 default hr_api.g_varchar2
5578   ,p_employment_category          in     varchar2 default hr_api.g_varchar2
5579 -- Bug 944911
5580 -- Amended p_group_name to out
5581 -- Added new param p_pgp_concat_segments for sec asg procs
5582 -- for others added p_concat_segments
5583   ,p_concat_segments              in     varchar2 default hr_api.g_varchar2
5584   ,p_grade_ladder_pgm_id          in     number   default hr_api.g_number
5585   ,p_supervisor_assignment_id     in     number   default hr_api.g_number
5586   ,p_people_group_id              in out nocopy number -- bug 2359997
5587   ,p_object_version_number        in out nocopy number
5588   ,p_special_ceiling_step_id      in out nocopy number
5589   ,p_group_name                      out nocopy varchar2
5590   ,p_effective_start_date            out nocopy date
5591   ,p_effective_end_date              out nocopy date
5592   ,p_org_now_no_manager_warning      out nocopy boolean
5593   ,p_other_manager_warning           out nocopy boolean
5594   ,p_spp_delete_warning              out nocopy boolean
5595   ,p_entries_changed_warning         out nocopy varchar2
5596   ,p_tax_district_changed_warning    out nocopy boolean
5597   );
5598 
5599 
5600 --
5601 -- ----------------------------------------------------------------------------
5602 -- |-------------------------< update_emp_asg_criteria >----------------------|
5603 -- ----------------------------------------------------------------------------
5604 --
5605 -- This version of the API is now out-of-date however it has been provided to
5606 -- you for backward compatibility support and will be removed in the future.
5607 -- Oracle recommends you to modify existing calling programs in advance of the
5608 -- support being withdrawn thus avoiding any potential disruption.
5609 --
5610 
5611 procedure update_emp_asg_criteria
5612   (p_effective_date               in     date
5613   ,p_datetrack_update_mode        in     varchar2
5614   ,p_assignment_id                in     number
5615   ,p_validate                     in     boolean  default false
5616   ,p_called_from_mass_update      in     boolean  default false
5617   ,p_grade_id                     in     number   default hr_api.g_number
5618   ,p_position_id                  in     number   default hr_api.g_number
5619   ,p_job_id                       in     number   default hr_api.g_number
5620   ,p_payroll_id                   in     number   default hr_api.g_number
5621   ,p_location_id                  in     number   default hr_api.g_number
5622   ,p_organization_id              in     number   default hr_api.g_number
5623   ,p_pay_basis_id                 in     number   default hr_api.g_number
5624   ,p_segment1                     in     varchar2 default hr_api.g_varchar2
5625   ,p_segment2                     in     varchar2 default hr_api.g_varchar2
5626   ,p_segment3                     in     varchar2 default hr_api.g_varchar2
5627   ,p_segment4                     in     varchar2 default hr_api.g_varchar2
5628   ,p_segment5                     in     varchar2 default hr_api.g_varchar2
5629   ,p_segment6                     in     varchar2 default hr_api.g_varchar2
5630   ,p_segment7                     in     varchar2 default hr_api.g_varchar2
5631   ,p_segment8                     in     varchar2 default hr_api.g_varchar2
5632   ,p_segment9                     in     varchar2 default hr_api.g_varchar2
5633   ,p_segment10                    in     varchar2 default hr_api.g_varchar2
5634   ,p_segment11                    in     varchar2 default hr_api.g_varchar2
5635   ,p_segment12                    in     varchar2 default hr_api.g_varchar2
5636   ,p_segment13                    in     varchar2 default hr_api.g_varchar2
5637   ,p_segment14                    in     varchar2 default hr_api.g_varchar2
5638   ,p_segment15                    in     varchar2 default hr_api.g_varchar2
5639   ,p_segment16                    in     varchar2 default hr_api.g_varchar2
5640   ,p_segment17                    in     varchar2 default hr_api.g_varchar2
5641   ,p_segment18                    in     varchar2 default hr_api.g_varchar2
5642   ,p_segment19                    in     varchar2 default hr_api.g_varchar2
5643   ,p_segment20                    in     varchar2 default hr_api.g_varchar2
5644   ,p_segment21                    in     varchar2 default hr_api.g_varchar2
5645   ,p_segment22                    in     varchar2 default hr_api.g_varchar2
5646   ,p_segment23                    in     varchar2 default hr_api.g_varchar2
5647   ,p_segment24                    in     varchar2 default hr_api.g_varchar2
5648   ,p_segment25                    in     varchar2 default hr_api.g_varchar2
5649   ,p_segment26                    in     varchar2 default hr_api.g_varchar2
5650   ,p_segment27                    in     varchar2 default hr_api.g_varchar2
5651   ,p_segment28                    in     varchar2 default hr_api.g_varchar2
5652   ,p_segment29                    in     varchar2 default hr_api.g_varchar2
5653   ,p_segment30                    in     varchar2 default hr_api.g_varchar2
5654   ,p_employment_category          in     varchar2 default hr_api.g_varchar2
5655 -- Bug 944911
5656 -- Amended p_group_name to out
5657 -- Added new param p_pgp_concat_segments  for sec asg procs
5658 -- for others added p_concat_segments
5659   ,p_concat_segments              in     varchar2 default hr_api.g_varchar2
5660   ,p_contract_id                  in     number  default hr_api.g_number   -- bug 2622747
5661   ,p_establishment_id             in     number  default hr_api.g_number   -- bug 2622747
5662   ,p_scl_segment1                 in     varchar2 default hr_api.g_varchar2   -- bug 2622747
5663   ,p_grade_ladder_pgm_id          in     number  default hr_api.g_number
5664   ,p_supervisor_assignment_id     in     number  default hr_api.g_number
5665   ,p_object_version_number        in out nocopy number
5666   ,p_special_ceiling_step_id      in out nocopy number
5667   ,p_people_group_id              in out nocopy number -- bug 2359997
5668   ,p_soft_coding_keyflex_id       in out nocopy number   -- bug 2622747
5669   ,p_group_name                      out nocopy varchar2
5670   ,p_effective_start_date            out nocopy date
5671   ,p_effective_end_date              out nocopy date
5672   ,p_org_now_no_manager_warning      out nocopy boolean
5673   ,p_other_manager_warning           out nocopy boolean
5674   ,p_spp_delete_warning              out nocopy boolean
5675   ,p_entries_changed_warning         out nocopy varchar2
5676   ,p_tax_district_changed_warning    out nocopy boolean
5677   ,p_concatenated_segments           out nocopy varchar2 -- bug 2622747
5678   );
5679 
5680 --
5681 -- ----------------------------------------------------------------------------
5682 -- |-------------------------< update_emp_asg_criteria >----------------------|
5683 -- ----------------------------------------------------------------------------
5684 --
5685 -- {Start Of Comments}
5686 /*#
5687  * This API updates attributes of the employee assignment that affect the
5688  * entitlement criteria for any element entry.
5689  *
5690  *
5691  * <p><b>Licensing</b><br>
5692  * This API is licensed for use with Human Resources.
5693  *
5694  * <p><b>Prerequisites</b><br>
5695  * The assignment must be an employee assignment. The assignment must exist as
5696  * of the effective date of the change
5697  *
5698  * <p><b>Post Success</b><br>
5699  * The API updates the assignment.
5700  *
5701  * <p><b>Post Failure</b><br>
5702  * The API does not update the assignment and raises an error.
5703  * @param p_effective_date Determines when the DateTrack operation comes into
5704  * force.
5705  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
5706  * updating the record. You must set to either UPDATE, CORRECTION,
5707  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
5708  * particular record depend on the dates of previous record changes and the
5709  * effective date of this change.
5710  * @param p_assignment_id Identifies the assignment record to be modified.
5711  * @param p_validate If true, then validation alone will be performed and the
5712  * database will remain unchanged. If false and all validation checks pass,
5713  * then the database will be modified.
5714  * @param p_called_from_mass_update Set to TRUE if the API is called from the
5715  * Mass Update Processes. This defaults Job and Organization information from
5716  * the Position information, if the first two are not supplied.
5717  * @param p_grade_id Identifies the grade of the assignment
5718  * @param p_position_id Identifies the position of the assignment
5719  * @param p_job_id Identifies the job of the assignment
5720  * @param p_payroll_id Identifies the payroll of this assignment.
5721  * @param p_location_id Identifies the location of the assignment
5722  * @param p_organization_id Identifies the organization of the assignment
5723  * @param p_pay_basis_id Salary basis for the assignment
5724  * @param p_segment1 Key flexfield segment.
5725  * @param p_segment2 Key flexfield segment.
5726  * @param p_segment3 Key flexfield segment.
5727  * @param p_segment4 Key flexfield segment.
5728  * @param p_segment5 Key flexfield segment.
5729  * @param p_segment6 Key flexfield segment.
5730  * @param p_segment7 Key flexfield segment.
5731  * @param p_segment8 Key flexfield segment.
5732  * @param p_segment9 Key flexfield segment.
5733  * @param p_segment10 Key flexfield segment.
5734  * @param p_segment11 Key flexfield segment.
5735  * @param p_segment12 Key flexfield segment.
5736  * @param p_segment13 Key flexfield segment.
5737  * @param p_segment14 Key flexfield segment.
5738  * @param p_segment15 Key flexfield segment.
5739  * @param p_segment16 Key flexfield segment.
5740  * @param p_segment17 Key flexfield segment.
5741  * @param p_segment18 Key flexfield segment.
5742  * @param p_segment19 Key flexfield segment.
5743  * @param p_segment20 Key flexfield segment.
5744  * @param p_segment21 Key flexfield segment.
5745  * @param p_segment22 Key flexfield segment.
5746  * @param p_segment23 Key flexfield segment.
5747  * @param p_segment24 Key flexfield segment.
5748  * @param p_segment25 Key flexfield segment.
5749  * @param p_segment26 Key flexfield segment.
5750  * @param p_segment27 Key flexfield segment.
5751  * @param p_segment28 Key flexfield segment.
5752  * @param p_segment29 Key flexfield segment.
5753  * @param p_segment30 Key flexfield segment.
5754  * @param p_employment_category Employment category. Valid values are defined
5755  * in the EMP_CAT lookup type.
5756  * @param p_concat_segments Concatenated Key Flexfield segments
5757  * @param p_contract_id Contract associated with this assignment
5758  * @param p_establishment_id For French business groups, this identifies the
5759  * Establishment Legal Entity for this assignment.
5760  * @param p_scl_segment1 First segment from Soft Coded Key Flexfield.
5761  * @param p_grade_ladder_pgm_id Grade Ladder for this assignment
5762  * @param p_supervisor_assignment_id Supervisor's assignment which is
5763  * responsible for supervising this assignment.
5764  * @param p_object_version_number Pass in the current version number of the
5765  * assignment to be updated. When the API completes if p_validate is false,
5766  * will be set to the new version number of the updated assignment. If
5767  * p_validate is true will be set to the same value which was passed in.
5768  * @param p_special_ceiling_step_id Pass in the highest allowed step for the
5769  * grade scale associated with the grade of the assignment. Will be set to null
5770  * if the Grade is updated to null. If p_validate is false, will be set to the
5771  * value of the Ceiling step from the database. If p_validate is true will be
5772  * set to the value passed in.
5773  * @param p_people_group_id If a value is passed in for this parameter, it
5774  * identifies an existing People Group Key Flexfield combination to associate
5775  * with the assignment, and segment values are ignored. If a value is not
5776  * passed in, then the individual People Group Key Flexfield segments supplied
5777  * will be used to choose an existing combination or create a new combination.
5778  * When the API completes, if p_validate is false, then this uniquely
5779  * identifies the associated combination of the People Group Key flexfield for
5780  * this assignment. If p_validate is true, then set to null.
5781  * @param p_soft_coding_keyflex_id If a value is passed in for this parameter,
5782  * it identifies an existing Soft Coded Key Flexfield combination to associate
5783  * with the assignment, and segment values are ignored. If a value is not
5784  * passed in, then the individual Soft Coded Key Flexfield segments supplied
5785  * will be used to choose an existing combination or create a new combination.
5786  * When the API completes, if p_validate is false, then this uniquely
5787  * identifies the associated combination of the Soft Coded Key flexfield for
5788  * this assignment. If p_validate is true, then set to null.
5789  * @param p_group_name If p_validate is false, set to the People Group Key
5790  * Flexfield concatenated segments. If p_validate is true, set to null.
5791  * @param p_effective_start_date If p_validate is false, then set to the
5792  * effective start date on the updated assignment row which now exists as of
5793  * the effective date. If p_validate is true, then set to null.
5794  * @param p_effective_end_date If p_validate is false, then set to the
5795  * effective end date on the updated assignment row which now exists as of the
5796  * effective date. If p_validate is true, then set to null.
5797  * @param p_org_now_no_manager_warning Set to true if this assignment is a
5798  * manager, the organization is updated and there is now no manager in the
5799  * previous organization. Set to false if another manager exists in the
5800  * previous organization.
5801  * @param p_other_manager_warning If set to true, then a manager existed in the
5802  * organization prior to calling this API and the manager flag has been set to
5803  * 'Y' for yes.
5804  * @param p_spp_delete_warning Set to true when grade step and point placements
5805  * are date effectively ended or purged by this update. Both types of change
5806  * occur when the Grade is changed and spinal point placement rows exist over
5807  * the updated date range. Set to false when no grade step and point placements
5808  * are affected.
5809  * @param p_entries_changed_warning Set to 'Y' when one or more element entries
5810  * are changed due to the assignment change. Set to 'S' if at least one salary
5811  * element entry is affected. ('S' is a more specific case of 'Y') Set to 'N'
5812  * when no element entries are changed.
5813  * @param p_tax_district_changed_warning Set to true if the assignment is for a
5814  * United Kingdom legislation and the payroll has changed such that. Otherwise
5815  * set to false.
5816  * @param p_concatenated_segments If p_validate is false, set to Soft Coded Key
5817  * Flexfield concatenated segments, if p_validate is true, set to null.
5818  * @param p_gsp_post_process_warning Set to the name of a warning message from
5819  * the Message Dictionary if any Grade Ladder related errors have been
5820  * encountered while running this API.
5821  * @rep:displayname Update Employee Assignment Criteria
5822  * @rep:category BUSINESS_ENTITY PER_EMPLOYEE_ASG
5823  * @rep:category MISC_EXTENSIONS HR_DATAPUMP
5824  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
5825  * @rep:scope public
5826  * @rep:lifecycle active
5827  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
5828 */
5829 --
5830 -- {End Of Comments}
5831 --
5832 procedure update_emp_asg_criteria
5833   (p_effective_date               in     date
5834   ,p_datetrack_update_mode        in     varchar2
5835   ,p_assignment_id                in     number
5836   ,p_validate                     in     boolean  default false
5837   ,p_called_from_mass_update      in     boolean  default false
5838   ,p_grade_id                     in     number   default hr_api.g_number
5839   ,p_position_id                  in     number   default hr_api.g_number
5840   ,p_job_id                       in     number   default hr_api.g_number
5841   ,p_payroll_id                   in     number   default hr_api.g_number
5842   ,p_location_id                  in     number   default hr_api.g_number
5843   ,p_organization_id              in     number   default hr_api.g_number
5844   ,p_pay_basis_id                 in     number   default hr_api.g_number
5845   ,p_segment1                     in     varchar2 default hr_api.g_varchar2
5846   ,p_segment2                     in     varchar2 default hr_api.g_varchar2
5847   ,p_segment3                     in     varchar2 default hr_api.g_varchar2
5848   ,p_segment4                     in     varchar2 default hr_api.g_varchar2
5849   ,p_segment5                     in     varchar2 default hr_api.g_varchar2
5850   ,p_segment6                     in     varchar2 default hr_api.g_varchar2
5851   ,p_segment7                     in     varchar2 default hr_api.g_varchar2
5852   ,p_segment8                     in     varchar2 default hr_api.g_varchar2
5853   ,p_segment9                     in     varchar2 default hr_api.g_varchar2
5854   ,p_segment10                    in     varchar2 default hr_api.g_varchar2
5855   ,p_segment11                    in     varchar2 default hr_api.g_varchar2
5856   ,p_segment12                    in     varchar2 default hr_api.g_varchar2
5857   ,p_segment13                    in     varchar2 default hr_api.g_varchar2
5858   ,p_segment14                    in     varchar2 default hr_api.g_varchar2
5859   ,p_segment15                    in     varchar2 default hr_api.g_varchar2
5860   ,p_segment16                    in     varchar2 default hr_api.g_varchar2
5861   ,p_segment17                    in     varchar2 default hr_api.g_varchar2
5862   ,p_segment18                    in     varchar2 default hr_api.g_varchar2
5863   ,p_segment19                    in     varchar2 default hr_api.g_varchar2
5864   ,p_segment20                    in     varchar2 default hr_api.g_varchar2
5865   ,p_segment21                    in     varchar2 default hr_api.g_varchar2
5866   ,p_segment22                    in     varchar2 default hr_api.g_varchar2
5867   ,p_segment23                    in     varchar2 default hr_api.g_varchar2
5868   ,p_segment24                    in     varchar2 default hr_api.g_varchar2
5869   ,p_segment25                    in     varchar2 default hr_api.g_varchar2
5870   ,p_segment26                    in     varchar2 default hr_api.g_varchar2
5871   ,p_segment27                    in     varchar2 default hr_api.g_varchar2
5872   ,p_segment28                    in     varchar2 default hr_api.g_varchar2
5873   ,p_segment29                    in     varchar2 default hr_api.g_varchar2
5874   ,p_segment30                    in     varchar2 default hr_api.g_varchar2
5875   ,p_employment_category          in     varchar2 default hr_api.g_varchar2
5876 -- Bug 944911
5877 -- Amended p_group_name to out
5878 -- Added new param p_pgp_concat_segments  for sec asg procs
5879 -- for others added p_concat_segments
5880   ,p_concat_segments              in     varchar2 default hr_api.g_varchar2
5881   ,p_contract_id                  in     number  default hr_api.g_number   -- bug 2622747
5882   ,p_establishment_id             in     number  default hr_api.g_number   -- bug 2622747
5883   ,p_scl_segment1                 in     varchar2 default hr_api.g_varchar2   -- bug 2622747
5884   ,p_grade_ladder_pgm_id          in     number  default hr_api.g_number
5885   ,p_supervisor_assignment_id     in     number  default hr_api.g_number
5886   ,p_object_version_number        in out nocopy number
5887   ,p_special_ceiling_step_id      in out nocopy number
5888   ,p_people_group_id              in out nocopy number -- bug 2359997
5889   ,p_soft_coding_keyflex_id       in out nocopy number   -- bug 2622747
5890   ,p_group_name                      out nocopy varchar2
5891   ,p_effective_start_date            out nocopy date
5892   ,p_effective_end_date              out nocopy date
5893   ,p_org_now_no_manager_warning      out nocopy boolean
5894   ,p_other_manager_warning           out nocopy boolean
5895   ,p_spp_delete_warning              out nocopy boolean
5896   ,p_entries_changed_warning         out nocopy varchar2
5897   ,p_tax_district_changed_warning    out nocopy boolean
5898   ,p_concatenated_segments           out nocopy varchar2 -- bug 2622747
5899   ,p_gsp_post_process_warning        out nocopy varchar2
5900   );
5901 
5902 --
5903 -- ----------------------------------------------------------------------------
5904 -- |------------------------------< update_apl_asg >--------------------------|
5905 -- ----------------------------------------------------------------------------
5906 --
5907 -- {Start Of Comments}
5908 /*#
5909  * This API updates applicant assignment details.
5910  *
5911  *
5912  * <p><b>Licensing</b><br>
5913  * This API is licensed for use with Human Resources.
5914  *
5915  * <p><b>Prerequisites</b><br>
5916  * The assignment must exist as of the effective date, and must be an applicant
5917  * assignment.
5918  *
5919  * <p><b>Post Success</b><br>
5920  * The API updates the assignment.
5921  *
5922  * <p><b>Post Failure</b><br>
5923  * The API does not update the assignment and raises an error.
5924  * @param p_validate If true, then validation alone will be performed and the
5925  * database will remain unchanged. If false and all validation checks pass,
5926  * then the database will be modified.
5927  * @param p_effective_date Determines when the DateTrack operation comes into
5928  * force.
5929  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
5930  * updating the record. You must set to either UPDATE, CORRECTION,
5931  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
5932  * particular record depend on the dates of previous record changes and the
5933  * effective date of this change.
5934  * @param p_assignment_id Identifies the assignment record to be modified.
5935  * @param p_object_version_number Pass in the current version number of the
5936  * assignment to be updated. When the API completes if p_validate is false,
5937  * will be set to the new version number of the updated assignment. If
5938  * p_validate is true will be set to the same value which was passed in.
5939  * @param p_recruiter_id Recruiter for the assignment. The value refers to the
5940  * recruiter's person record.
5941  * @param p_grade_id Identifies the grade of the assignment
5942  * @param p_position_id Identifies the position of the assignment
5943  * @param p_job_id Identifies the job of the assignment
5944  * @param p_payroll_id Identifies the payroll of the assignment
5945  * @param p_location_id Identifies the location of the assignment
5946  * @param p_person_referred_by_id Identifies the person record of the person
5947  * who referred the applicant.
5948  * @param p_supervisor_id Supervisor for the assignment. The value refers to
5949  * the supervisor's person record.
5950  * @param p_special_ceiling_step_id Highest allowed step for the grade scale
5951  * associated with the grade of the assignment.
5952  * @param p_recruitment_activity_id Identifies the Recruitment Activity from
5953  * which the applicant was found.
5954  * @param p_source_organization_id Identifies the Source organization.
5955  * @param p_organization_id Identifies the organization of the assignment
5956  * @param p_vacancy_id Identifies the vacancy which the applicant applied for.
5957  * @param p_pay_basis_id Salary basis for the assignment
5958  * @param p_application_id Identifies the application record to which this
5959  * assignment belongs.
5960  * @param p_change_reason Reason for the change in the assignment. Valid values
5961  * are defined in the APL_ASSIGN_REASON lookup type.
5962  * @param p_assignment_status_type_id Assignment status. The system status must
5963  * be the same as before the update. Otherwise one of the status change APIs
5964  * should be used.
5965  * @param p_comments Comment text.
5966  * @param p_date_probation_end End date of probation period
5967  * @param p_default_code_comb_id Identifier for the General Ledger Accounting
5968  * Flexfield combination which applies to this assignment
5969  * @param p_employment_category Employment category. Valid values are defined
5970  * in the EMP_CAT lookup type.
5971  * @param p_frequency Frequency associated with the defined normal working
5972  * hours. Valid values are defined in the FREQUENCY lookup type.
5973  * @param p_internal_address_line Internal address identified with this
5974  * assignment.
5975  * @param p_manager_flag Indicates whether the applicant is a manager
5976  * @param p_normal_hours Normal working hours for this assignment
5977  * @param p_perf_review_period Length of performance review period
5978  * @param p_perf_review_period_frequency Units of performance review period.
5979  * Valid values are defined in the FREQUENCY lookup type.
5980  * @param p_probation_period Length of probation period
5981  * @param p_probation_unit Units of probation period. Valid values are defined
5982  * in the QUALIFYING_UNITS lookup type.
5983  * @param p_sal_review_period Length of salary review period
5984  * @param p_sal_review_period_frequency Units of salary review period. Valid
5985  * values are defined in the FREQUENCY lookup type.
5986  * @param p_set_of_books_id Identifies General Ledger set of books.
5987  * @param p_source_type Recruitment activity which this assignment is sourced
5988  * from. Valid values are defined in the REC_TYPE lookup type.
5989  * @param p_time_normal_finish Normal work finish time
5990  * @param p_time_normal_start Normal work start time
5991  * @param p_bargaining_unit_code Code for bargaining unit. Valid values are
5992  * defined in the BARGAINING_UNIT_CODE lookup type.
5993  * @param p_ass_attribute_category This context value determines which
5994  * Flexfield Structure to use with the Descriptive flexfield segments.
5995  * @param p_ass_attribute1 Descriptive flexfield segment
5996  * @param p_ass_attribute2 Descriptive flexfield segment
5997  * @param p_ass_attribute3 Descriptive flexfield segment
5998  * @param p_ass_attribute4 Descriptive flexfield segment
5999  * @param p_ass_attribute5 Descriptive flexfield segment
6000  * @param p_ass_attribute6 Descriptive flexfield segment
6001  * @param p_ass_attribute7 Descriptive flexfield segment
6002  * @param p_ass_attribute8 Descriptive flexfield segment
6003  * @param p_ass_attribute9 Descriptive flexfield segment
6004  * @param p_ass_attribute10 Descriptive flexfield segment
6005  * @param p_ass_attribute11 Descriptive flexfield segment
6006  * @param p_ass_attribute12 Descriptive flexfield segment
6007  * @param p_ass_attribute13 Descriptive flexfield segment
6008  * @param p_ass_attribute14 Descriptive flexfield segment
6009  * @param p_ass_attribute15 Descriptive flexfield segment
6010  * @param p_ass_attribute16 Descriptive flexfield segment
6011  * @param p_ass_attribute17 Descriptive flexfield segment
6012  * @param p_ass_attribute18 Descriptive flexfield segment
6013  * @param p_ass_attribute19 Descriptive flexfield segment
6014  * @param p_ass_attribute20 Descriptive flexfield segment
6015  * @param p_ass_attribute21 Descriptive flexfield segment
6016  * @param p_ass_attribute22 Descriptive flexfield segment
6017  * @param p_ass_attribute23 Descriptive flexfield segment
6018  * @param p_ass_attribute24 Descriptive flexfield segment
6019  * @param p_ass_attribute25 Descriptive flexfield segment
6020  * @param p_ass_attribute26 Descriptive flexfield segment
6021  * @param p_ass_attribute27 Descriptive flexfield segment
6022  * @param p_ass_attribute28 Descriptive flexfield segment
6023  * @param p_ass_attribute29 Descriptive flexfield segment
6024  * @param p_ass_attribute30 Descriptive flexfield segment
6025  * @param p_title Obsolete parameter, do not use.
6026  * @param p_scl_segment1 Soft Coded key flexfield segment
6027  * @param p_scl_segment2 Soft Coded key flexfield segment
6028  * @param p_scl_segment3 Soft Coded key flexfield segment
6029  * @param p_scl_segment4 Soft Coded key flexfield segment
6030  * @param p_scl_segment5 Soft Coded key flexfield segment
6031  * @param p_scl_segment6 Soft Coded key flexfield segment
6032  * @param p_scl_segment7 Soft Coded key flexfield segment
6033  * @param p_scl_segment8 Soft Coded key flexfield segment
6034  * @param p_scl_segment9 Soft Coded key flexfield segment
6035  * @param p_scl_segment10 Soft Coded key flexfield segment
6036  * @param p_scl_segment11 Soft Coded key flexfield segment
6037  * @param p_scl_segment12 Soft Coded key flexfield segment
6038  * @param p_scl_segment13 Soft Coded key flexfield segment
6039  * @param p_scl_segment14 Soft Coded key flexfield segment
6040  * @param p_scl_segment15 Soft Coded key flexfield segment
6041  * @param p_scl_segment16 Soft Coded key flexfield segment
6042  * @param p_scl_segment17 Soft Coded key flexfield segment
6043  * @param p_scl_segment18 Soft Coded key flexfield segment
6044  * @param p_scl_segment19 Soft Coded key flexfield segment
6045  * @param p_scl_segment20 Soft Coded key flexfield segment
6046  * @param p_scl_segment21 Soft Coded key flexfield segment
6047  * @param p_scl_segment22 Soft Coded key flexfield segment
6048  * @param p_scl_segment23 Soft Coded key flexfield segment
6049  * @param p_scl_segment24 Soft Coded key flexfield segment
6050  * @param p_scl_segment25 Soft Coded key flexfield segment
6051  * @param p_scl_segment26 Soft Coded key flexfield segment
6052  * @param p_scl_segment27 Soft Coded key flexfield segment
6053  * @param p_scl_segment28 Soft Coded key flexfield segment
6054  * @param p_scl_segment29 Soft Coded key flexfield segment
6055  * @param p_scl_segment30 Soft Coded key flexfield segment
6056  * @param p_scl_concat_segments Concatenated segments for Soft Coded Key
6057  * Flexfield. Concatenated segments can be supplied instead of individual
6058  * segments.
6059  * @param p_concatenated_segments If p_validate is false, set to Soft Coded Key
6060  * Flexfield concatenated segments, if p_validate is true, set to null.
6061  * @param p_pgp_segment1 People group key flexfield segment
6062  * @param p_pgp_segment2 People group key flexfield segment
6063  * @param p_pgp_segment3 People group key flexfield segment
6064  * @param p_pgp_segment4 People group key flexfield segment
6065  * @param p_pgp_segment5 People group key flexfield segment
6066  * @param p_pgp_segment6 People group key flexfield segment
6067  * @param p_pgp_segment7 People group key flexfield segment
6068  * @param p_pgp_segment8 People group key flexfield segment
6069  * @param p_pgp_segment9 People group key flexfield segment
6070  * @param p_pgp_segment10 People group key flexfield segment
6071  * @param p_pgp_segment11 People group key flexfield segment
6072  * @param p_pgp_segment12 People group key flexfield segment
6073  * @param p_pgp_segment13 People group key flexfield segment
6074  * @param p_pgp_segment14 People group key flexfield segment
6075  * @param p_pgp_segment15 People group key flexfield segment
6076  * @param p_pgp_segment16 People group key flexfield segment
6077  * @param p_pgp_segment17 People group key flexfield segment
6078  * @param p_pgp_segment18 People group key flexfield segment
6079  * @param p_pgp_segment19 People group key flexfield segment
6080  * @param p_pgp_segment20 People group key flexfield segment
6081  * @param p_pgp_segment21 People group key flexfield segment
6082  * @param p_pgp_segment22 People group key flexfield segment
6083  * @param p_pgp_segment23 People group key flexfield segment
6084  * @param p_pgp_segment24 People group key flexfield segment
6085  * @param p_pgp_segment25 People group key flexfield segment
6086  * @param p_pgp_segment26 People group key flexfield segment
6087  * @param p_pgp_segment27 People group key flexfield segment
6088  * @param p_pgp_segment28 People group key flexfield segment
6089  * @param p_pgp_segment29 People group key flexfield segment
6090  * @param p_pgp_segment30 People group key flexfield segment
6091  * @param p_concat_segments Concatenated segments for People Group Key
6092  * Flexfield. Concatenated segments can be supplied instead of individual
6093  * segments.
6094  * @param p_contract_id Contract associated with this assignment
6095  * @param p_establishment_id For French business groups, this identifies the
6096  * Establishment Legal Entity for this assignment.
6097  * @param p_collective_agreement_id Collective Agreement that applies to this
6098  * assignment
6099  * @param p_cagr_id_flex_num Identifier for the structure from CAGR Key
6100  * flexfield to use for this assignment
6101  * @param p_cag_segment1 CAGR Key Flexfield segment
6102  * @param p_cag_segment2 CAGR Key Flexfield segment
6103  * @param p_cag_segment3 CAGR Key Flexfield segment
6104  * @param p_cag_segment4 CAGR Key Flexfield segment
6105  * @param p_cag_segment5 CAGR Key Flexfield segment
6106  * @param p_cag_segment6 CAGR Key Flexfield segment
6107  * @param p_cag_segment7 CAGR Key Flexfield segment
6108  * @param p_cag_segment8 CAGR Key Flexfield segment
6109  * @param p_cag_segment9 CAGR Key Flexfield segment
6110  * @param p_cag_segment10 CAGR Key Flexfield segment
6111  * @param p_cag_segment11 CAGR Key Flexfield segment
6112  * @param p_cag_segment12 CAGR Key Flexfield segment
6113  * @param p_cag_segment13 CAGR Key Flexfield segment
6114  * @param p_cag_segment14 CAGR Key Flexfield segment
6115  * @param p_cag_segment15 CAGR Key Flexfield segment
6116  * @param p_cag_segment16 CAGR Key Flexfield segment
6117  * @param p_cag_segment17 CAGR Key Flexfield segment
6118  * @param p_cag_segment18 CAGR Key Flexfield segment
6119  * @param p_cag_segment19 CAGR Key Flexfield segment
6120  * @param p_cag_segment20 CAGR Key Flexfield segment
6121  * @param p_notice_period Length of notice period
6122  * @param p_notice_period_uom Units for notice period. Valid values are defined
6123  * in the QUALIFYING_UNITS lookup type.
6124  * @param p_employee_category Employee Category. Valid values are defined in
6125  * the EMPLOYEE_CATG lookup type.
6126  * @param p_work_at_home Indicate whether this assignment is to work at home.
6127  * Valid values are defined in the YES_NO lookup type.
6128  * @param p_job_post_source_name Name of the source of the job posting which
6129  * was answered for this assignment.
6130  * @param p_posting_content_id Identifies the posting to which the applicant
6131  * has applied.
6132  * @param p_applicant_rank Applicant's rank.
6133  * @param p_grade_ladder_pgm_id Grade Ladder for this assignment
6134  * @param p_supervisor_assignment_id Supervisor's assignment that is
6135  * responsible for supervising this assignment.
6136  * @param p_cagr_grade_def_id If a value is passed in for this parameter, it
6137  * identifies an existing CAGR Key Flexfield combination to associate with the
6138  * assignment, and segment values are ignored. If a value is not passed in,
6139  * then the individual CAGR Key Flexfield segments supplied will be used to
6140  * choose an existing combination or create a new combination. When the API
6141  * completes, if p_validate is false, then this uniquely identifies the
6142  * associated combination of the CAGR Key flexfield for this assignment. If
6143  * p_validate is true, then set to null.
6144  * @param p_cagr_concatenated_segments If p_validate is false, set to the
6145  * concatenation of all CAGR Key Flexfield segments. If p_validate is true, set
6146  * to null.
6147  * @param p_group_name If p_validate is false, set to the People Group Key
6148  * Flexfield concatenated segments. If p_validate is true, set to null.
6149  * @param p_comment_id If p_validate is false and comment text was provided,
6150  * then will be set to the identifier of the created assignment comment record.
6151  * If p_validate is true or no comment text was provided, then will be null.
6152  * @param p_people_group_id If a value is passed in for this parameter, it
6153  * identifies an existing People Group Key Flexfield combination to associate
6154  * with the assignment, and segment values are ignored. If a value is not
6155  * passed in, then the individual People Group Key Flexfield segments supplied
6156  * will be used to choose an existing combination or create a new combination.
6157  * When the API completes, if p_validate is false, then this uniquely
6158  * identifies the associated combination of the People Group Key flexfield for
6159  * this assignment. If p_validate is true, then set to null.
6160  * @param p_soft_coding_keyflex_id If a value is passed in for this parameter,
6161  * it identifies an existing Soft Coded Key Flexfield combination to associate
6162  * with the assignment, and segment values are ignored. If a value is not
6163  * passed in, then the individual Soft Coded Key Flexfield segments supplied
6164  * will be used to choose an existing combination or create a new combination.
6165  * When the API completes, if p_validate is false, then this uniquely
6166  * identifies the associated combination of the Soft Coded Key flexfield for
6167  * this assignment. If p_validate is true, then set to null.
6168  * @param p_effective_start_date If p_validate is false, then set to the
6169  * effective start date for the assignment row which now exists as of the
6170  * effective date. If p_validate is true, then set to null.
6171  * @param p_effective_end_date If p_validate is false, then set to the
6172  * effective end date for the assignment row which now exists as of the
6173  * effective date. If p_validate is true, then set to null.
6174  * @rep:displayname Update Applicant Assignment
6175  * @rep:category BUSINESS_ENTITY PER_APPLICANT_ASG
6176  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
6177  * @rep:scope public
6178  * @rep:lifecycle active
6179  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
6180 */
6181 --
6182 -- {End Of Comments}
6183 --
6184 procedure update_apl_asg
6185   (p_validate                     in     boolean  default false
6186   ,p_effective_date               in     date
6187   ,p_datetrack_update_mode        in     varchar2
6188   ,p_assignment_id                in     number
6189   ,p_object_version_number        in out nocopy number
6190   ,p_recruiter_id                 in     number   default hr_api.g_number
6191   ,p_grade_id                     in     number   default hr_api.g_number
6192   ,p_position_id                  in     number   default hr_api.g_number
6193   ,p_job_id                       in     number   default hr_api.g_number
6194   ,p_payroll_id                   in     number   default hr_api.g_number
6195   ,p_location_id                  in     number   default hr_api.g_number
6196   ,p_person_referred_by_id        in     number   default hr_api.g_number
6197   ,p_supervisor_id                in     number   default hr_api.g_number
6198   ,p_special_ceiling_step_id      in     number   default hr_api.g_number
6199   ,p_recruitment_activity_id      in     number   default hr_api.g_number
6200   ,p_source_organization_id       in     number   default hr_api.g_number
6201   ,p_organization_id              in     number   default hr_api.g_number
6202   ,p_vacancy_id                   in     number   default hr_api.g_number
6203   ,p_pay_basis_id                 in     number   default hr_api.g_number
6204   ,p_application_id               in     number   default hr_api.g_number
6205   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
6206   ,p_assignment_status_type_id    in     number   default hr_api.g_number
6207   ,p_comments                     in     varchar2 default hr_api.g_varchar2
6208   ,p_date_probation_end           in     date     default hr_api.g_date
6209   ,p_default_code_comb_id         in     number   default hr_api.g_number
6210   ,p_employment_category          in     varchar2 default hr_api.g_varchar2
6211   ,p_frequency                    in     varchar2 default hr_api.g_varchar2
6212   ,p_internal_address_line        in     varchar2 default hr_api.g_varchar2
6213   ,p_manager_flag                 in     varchar2 default hr_api.g_varchar2
6214   ,p_normal_hours                 in     number   default hr_api.g_number
6215   ,p_perf_review_period           in     number   default hr_api.g_number
6216   ,p_perf_review_period_frequency in     varchar2 default hr_api.g_varchar2
6217   ,p_probation_period             in     number   default hr_api.g_number
6218   ,p_probation_unit               in     varchar2 default hr_api.g_varchar2
6219   ,p_sal_review_period            in     number   default hr_api.g_number
6220   ,p_sal_review_period_frequency  in     varchar2 default hr_api.g_varchar2
6221   ,p_set_of_books_id              in     number   default hr_api.g_number
6222   ,p_source_type                  in     varchar2 default hr_api.g_varchar2
6223   ,p_time_normal_finish           in     varchar2 default hr_api.g_varchar2
6224   ,p_time_normal_start            in     varchar2 default hr_api.g_varchar2
6225   ,p_bargaining_unit_code         in     varchar2 default hr_api.g_varchar2
6226   ,p_ass_attribute_category       in     varchar2 default hr_api.g_varchar2
6227   ,p_ass_attribute1               in     varchar2 default hr_api.g_varchar2
6228   ,p_ass_attribute2               in     varchar2 default hr_api.g_varchar2
6229   ,p_ass_attribute3               in     varchar2 default hr_api.g_varchar2
6230   ,p_ass_attribute4               in     varchar2 default hr_api.g_varchar2
6231   ,p_ass_attribute5               in     varchar2 default hr_api.g_varchar2
6232   ,p_ass_attribute6               in     varchar2 default hr_api.g_varchar2
6233   ,p_ass_attribute7               in     varchar2 default hr_api.g_varchar2
6234   ,p_ass_attribute8               in     varchar2 default hr_api.g_varchar2
6235   ,p_ass_attribute9               in     varchar2 default hr_api.g_varchar2
6236   ,p_ass_attribute10              in     varchar2 default hr_api.g_varchar2
6237   ,p_ass_attribute11              in     varchar2 default hr_api.g_varchar2
6238   ,p_ass_attribute12              in     varchar2 default hr_api.g_varchar2
6239   ,p_ass_attribute13              in     varchar2 default hr_api.g_varchar2
6240   ,p_ass_attribute14              in     varchar2 default hr_api.g_varchar2
6241   ,p_ass_attribute15              in     varchar2 default hr_api.g_varchar2
6242   ,p_ass_attribute16              in     varchar2 default hr_api.g_varchar2
6243   ,p_ass_attribute17              in     varchar2 default hr_api.g_varchar2
6244   ,p_ass_attribute18              in     varchar2 default hr_api.g_varchar2
6245   ,p_ass_attribute19              in     varchar2 default hr_api.g_varchar2
6246   ,p_ass_attribute20              in     varchar2 default hr_api.g_varchar2
6247   ,p_ass_attribute21              in     varchar2 default hr_api.g_varchar2
6248   ,p_ass_attribute22              in     varchar2 default hr_api.g_varchar2
6249   ,p_ass_attribute23              in     varchar2 default hr_api.g_varchar2
6250   ,p_ass_attribute24              in     varchar2 default hr_api.g_varchar2
6251   ,p_ass_attribute25              in     varchar2 default hr_api.g_varchar2
6252   ,p_ass_attribute26              in     varchar2 default hr_api.g_varchar2
6253   ,p_ass_attribute27              in     varchar2 default hr_api.g_varchar2
6254   ,p_ass_attribute28              in     varchar2 default hr_api.g_varchar2
6255   ,p_ass_attribute29              in     varchar2 default hr_api.g_varchar2
6256   ,p_ass_attribute30              in     varchar2 default hr_api.g_varchar2
6257   ,p_title                        in     varchar2 default hr_api.g_varchar2
6258   ,p_scl_segment1                 in     varchar2 default hr_api.g_varchar2
6259   ,p_scl_segment2                 in     varchar2 default hr_api.g_varchar2
6260   ,p_scl_segment3                 in     varchar2 default hr_api.g_varchar2
6261   ,p_scl_segment4                 in     varchar2 default hr_api.g_varchar2
6262   ,p_scl_segment5                 in     varchar2 default hr_api.g_varchar2
6263   ,p_scl_segment6                 in     varchar2 default hr_api.g_varchar2
6264   ,p_scl_segment7                 in     varchar2 default hr_api.g_varchar2
6265   ,p_scl_segment8                 in     varchar2 default hr_api.g_varchar2
6266   ,p_scl_segment9                 in     varchar2 default hr_api.g_varchar2
6267   ,p_scl_segment10                in     varchar2 default hr_api.g_varchar2
6268   ,p_scl_segment11                in     varchar2 default hr_api.g_varchar2
6269   ,p_scl_segment12                in     varchar2 default hr_api.g_varchar2
6270   ,p_scl_segment13                in     varchar2 default hr_api.g_varchar2
6271   ,p_scl_segment14                in     varchar2 default hr_api.g_varchar2
6272   ,p_scl_segment15                in     varchar2 default hr_api.g_varchar2
6273   ,p_scl_segment16                in     varchar2 default hr_api.g_varchar2
6274   ,p_scl_segment17                in     varchar2 default hr_api.g_varchar2
6275   ,p_scl_segment18                in     varchar2 default hr_api.g_varchar2
6276   ,p_scl_segment19                in     varchar2 default hr_api.g_varchar2
6277   ,p_scl_segment20                in     varchar2 default hr_api.g_varchar2
6278   ,p_scl_segment21                in     varchar2 default hr_api.g_varchar2
6279   ,p_scl_segment22                in     varchar2 default hr_api.g_varchar2
6280   ,p_scl_segment23                in     varchar2 default hr_api.g_varchar2
6281   ,p_scl_segment24                in     varchar2 default hr_api.g_varchar2
6282   ,p_scl_segment25                in     varchar2 default hr_api.g_varchar2
6283   ,p_scl_segment26                in     varchar2 default hr_api.g_varchar2
6284   ,p_scl_segment27                in     varchar2 default hr_api.g_varchar2
6285   ,p_scl_segment28                in     varchar2 default hr_api.g_varchar2
6286   ,p_scl_segment29                in     varchar2 default hr_api.g_varchar2
6287   ,p_scl_segment30                in     varchar2 default hr_api.g_varchar2
6288 -- Bug 944911
6289 -- Amended p_scl_concatenated_segments to be an out instead of in out
6290 -- Added p_scl_concat_segments ( in param )
6291 -- Amended p_scl_concatenated_segments to be p_concatenated_segments
6292   ,p_scl_concat_segments          in     varchar2 default hr_api.g_varchar2
6293   ,p_concatenated_segments       out nocopy varchar2
6294   ,p_pgp_segment1                 in     varchar2 default hr_api.g_varchar2
6295   ,p_pgp_segment2                 in     varchar2 default hr_api.g_varchar2
6296   ,p_pgp_segment3                 in     varchar2 default hr_api.g_varchar2
6297   ,p_pgp_segment4                 in     varchar2 default hr_api.g_varchar2
6298   ,p_pgp_segment5                 in     varchar2 default hr_api.g_varchar2
6299   ,p_pgp_segment6                 in     varchar2 default hr_api.g_varchar2
6300   ,p_pgp_segment7                 in     varchar2 default hr_api.g_varchar2
6301   ,p_pgp_segment8                 in     varchar2 default hr_api.g_varchar2
6302   ,p_pgp_segment9                 in     varchar2 default hr_api.g_varchar2
6303   ,p_pgp_segment10                in     varchar2 default hr_api.g_varchar2
6304   ,p_pgp_segment11                in     varchar2 default hr_api.g_varchar2
6305   ,p_pgp_segment12                in     varchar2 default hr_api.g_varchar2
6306   ,p_pgp_segment13                in     varchar2 default hr_api.g_varchar2
6307   ,p_pgp_segment14                in     varchar2 default hr_api.g_varchar2
6308   ,p_pgp_segment15                in     varchar2 default hr_api.g_varchar2
6309   ,p_pgp_segment16                in     varchar2 default hr_api.g_varchar2
6310   ,p_pgp_segment17                in     varchar2 default hr_api.g_varchar2
6311   ,p_pgp_segment18                in     varchar2 default hr_api.g_varchar2
6312   ,p_pgp_segment19                in     varchar2 default hr_api.g_varchar2
6313   ,p_pgp_segment20                in     varchar2 default hr_api.g_varchar2
6314   ,p_pgp_segment21                in     varchar2 default hr_api.g_varchar2
6315   ,p_pgp_segment22                in     varchar2 default hr_api.g_varchar2
6316   ,p_pgp_segment23                in     varchar2 default hr_api.g_varchar2
6317   ,p_pgp_segment24                in     varchar2 default hr_api.g_varchar2
6318   ,p_pgp_segment25                in     varchar2 default hr_api.g_varchar2
6319   ,p_pgp_segment26                in     varchar2 default hr_api.g_varchar2
6320   ,p_pgp_segment27                in     varchar2 default hr_api.g_varchar2
6321   ,p_pgp_segment28                in     varchar2 default hr_api.g_varchar2
6322   ,p_pgp_segment29                in     varchar2 default hr_api.g_varchar2
6323   ,p_pgp_segment30                in     varchar2 default hr_api.g_varchar2
6324 -- Bug 944911
6325 -- Amended p_group_name to out
6326 -- Added new param p_pgp_concat_segments - for sec asg procs
6327 -- for others added p_concat_segments
6328   ,p_concat_segments		  in     varchar2 default hr_api.g_varchar2
6329   ,p_contract_id                  in     number default hr_api.g_number
6330   ,p_establishment_id             in     number default hr_api.g_number
6331   ,p_collective_agreement_id      in     number default hr_api.g_number
6332   ,p_cagr_id_flex_num             in     number default hr_api.g_number
6333   ,p_cag_segment1                 in     varchar2 default hr_api.g_varchar2
6334   ,p_cag_segment2                 in     varchar2 default hr_api.g_varchar2
6335   ,p_cag_segment3                 in     varchar2 default hr_api.g_varchar2
6336   ,p_cag_segment4                 in     varchar2 default hr_api.g_varchar2
6337   ,p_cag_segment5                 in     varchar2 default hr_api.g_varchar2
6338   ,p_cag_segment6                 in     varchar2 default hr_api.g_varchar2
6339   ,p_cag_segment7                 in     varchar2 default hr_api.g_varchar2
6340   ,p_cag_segment8                 in     varchar2 default hr_api.g_varchar2
6341   ,p_cag_segment9                 in     varchar2 default hr_api.g_varchar2
6342   ,p_cag_segment10                in     varchar2 default hr_api.g_varchar2
6343   ,p_cag_segment11                in     varchar2 default hr_api.g_varchar2
6344   ,p_cag_segment12                in     varchar2 default hr_api.g_varchar2
6345   ,p_cag_segment13                in     varchar2 default hr_api.g_varchar2
6346   ,p_cag_segment14                in     varchar2 default hr_api.g_varchar2
6347   ,p_cag_segment15                in     varchar2 default hr_api.g_varchar2
6348   ,p_cag_segment16                in     varchar2 default hr_api.g_varchar2
6349   ,p_cag_segment17                in     varchar2 default hr_api.g_varchar2
6350   ,p_cag_segment18                in     varchar2 default hr_api.g_varchar2
6351   ,p_cag_segment19                in     varchar2 default hr_api.g_varchar2
6352   ,p_cag_segment20                in     varchar2 default hr_api.g_varchar2
6353   ,p_notice_period		  in     number   default hr_api.g_number
6354   ,p_notice_period_uom	      	  in     varchar2 default hr_api.g_varchar2
6355   ,p_employee_category	          in     varchar2 default hr_api.g_varchar2
6356   ,p_work_at_home		  in     varchar2 default hr_api.g_varchar2
6357   ,p_job_post_source_name	  in     varchar2 default hr_api.g_varchar2
6358   ,p_posting_content_id           in     number   default hr_api.g_number
6359   ,p_applicant_rank               in     number   default hr_api.g_number
6360   ,p_grade_ladder_pgm_id          in     number   default hr_api.g_number
6361   ,p_supervisor_assignment_id     in     number   default hr_api.g_number
6362   ,p_cagr_grade_def_id            in out nocopy number
6363   ,p_cagr_concatenated_segments      out nocopy varchar2
6364   ,p_group_name                      out nocopy varchar2
6365   ,p_comment_id                      out nocopy number
6366   ,p_people_group_id              in out nocopy number
6367   ,p_soft_coding_keyflex_id       in out nocopy number
6368   ,p_effective_start_date            out nocopy date
6369   ,p_effective_end_date              out nocopy date
6370  );
6371 --
6372 -- ----------------------------------------------------------------------------
6373 -- |------------------------------< update_apl_asg >--------------------------|
6374 -- ----------------------------------------------------------------------------
6375 --
6376 -- This version of the API is now out-of-date however it has been provided to
6377 -- you for backward compatibility support and will be removed in the future.
6378 -- Oracle recommends you to modify existing calling programs in advance of the
6379 -- support being withdrawn thus avoiding any potential disruption.
6380 --
6381 procedure update_apl_asg
6382   (p_validate                     in     boolean  default false
6383   ,p_effective_date               in     date
6384   ,p_datetrack_update_mode        in     varchar2
6385   ,p_assignment_id                in     number
6386   ,p_object_version_number        in out nocopy number
6387   ,p_grade_id                     in     number   default hr_api.g_number
6388   ,p_job_id                       in     number   default hr_api.g_number
6389   ,p_location_id                  in     number   default hr_api.g_number
6390   ,p_organization_id              in     number   default hr_api.g_number
6391   ,p_position_id                  in     number   default hr_api.g_number
6392   ,p_application_id               in     number   default hr_api.g_number
6393   ,p_recruiter_id                 in     number   default hr_api.g_number
6394   ,p_recruitment_activity_id      in     number   default hr_api.g_number
6395   ,p_vacancy_id                   in     number   default hr_api.g_number
6396   ,p_person_referred_by_id        in     number   default hr_api.g_number
6397   ,p_supervisor_id                in     number   default hr_api.g_number
6398   ,p_source_organization_id       in     number   default hr_api.g_number
6399   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
6400   ,p_frequency                    in     varchar2 default hr_api.g_varchar2
6401   ,p_manager_flag                 in     varchar2 default hr_api.g_varchar2
6402   ,p_normal_hours                 in     number   default hr_api.g_number
6403   ,p_probation_period             in     number   default hr_api.g_number
6404   ,p_probation_unit               in     varchar2 default hr_api.g_varchar2
6405   ,p_source_type                  in     varchar2 default hr_api.g_varchar2
6406   ,p_time_normal_finish           in     varchar2 default hr_api.g_varchar2
6407   ,p_time_normal_start            in     varchar2 default hr_api.g_varchar2
6408   ,p_comments                     in     varchar2 default hr_api.g_varchar2
6409   ,p_date_probation_end           in     date     default hr_api.g_date
6410   ,p_title                        in     varchar2 default hr_api.g_varchar2
6411   ,p_ass_attribute_category       in     varchar2 default hr_api.g_varchar2
6412   ,p_ass_attribute1               in     varchar2 default hr_api.g_varchar2
6413   ,p_ass_attribute2               in     varchar2 default hr_api.g_varchar2
6414   ,p_ass_attribute3               in     varchar2 default hr_api.g_varchar2
6415   ,p_ass_attribute4               in     varchar2 default hr_api.g_varchar2
6416   ,p_ass_attribute5               in     varchar2 default hr_api.g_varchar2
6417   ,p_ass_attribute6               in     varchar2 default hr_api.g_varchar2
6418   ,p_ass_attribute7               in     varchar2 default hr_api.g_varchar2
6419   ,p_ass_attribute8               in     varchar2 default hr_api.g_varchar2
6420   ,p_ass_attribute9               in     varchar2 default hr_api.g_varchar2
6421   ,p_ass_attribute10              in     varchar2 default hr_api.g_varchar2
6422   ,p_ass_attribute11              in     varchar2 default hr_api.g_varchar2
6423   ,p_ass_attribute12              in     varchar2 default hr_api.g_varchar2
6424   ,p_ass_attribute13              in     varchar2 default hr_api.g_varchar2
6425   ,p_ass_attribute14              in     varchar2 default hr_api.g_varchar2
6426   ,p_ass_attribute15              in     varchar2 default hr_api.g_varchar2
6427   ,p_ass_attribute16              in     varchar2 default hr_api.g_varchar2
6428   ,p_ass_attribute17              in     varchar2 default hr_api.g_varchar2
6429   ,p_ass_attribute18              in     varchar2 default hr_api.g_varchar2
6430   ,p_ass_attribute19              in     varchar2 default hr_api.g_varchar2
6431   ,p_ass_attribute20              in     varchar2 default hr_api.g_varchar2
6432   ,p_ass_attribute21              in     varchar2 default hr_api.g_varchar2
6433   ,p_ass_attribute22              in     varchar2 default hr_api.g_varchar2
6434   ,p_ass_attribute23              in     varchar2 default hr_api.g_varchar2
6435   ,p_ass_attribute24              in     varchar2 default hr_api.g_varchar2
6436   ,p_ass_attribute25              in     varchar2 default hr_api.g_varchar2
6437   ,p_ass_attribute26              in     varchar2 default hr_api.g_varchar2
6438   ,p_ass_attribute27              in     varchar2 default hr_api.g_varchar2
6439   ,p_ass_attribute28              in     varchar2 default hr_api.g_varchar2
6440   ,p_ass_attribute29              in     varchar2 default hr_api.g_varchar2
6441   ,p_ass_attribute30              in     varchar2 default hr_api.g_varchar2
6442   ,p_segment1                     in     varchar2 default hr_api.g_varchar2
6443   ,p_segment2                     in     varchar2 default hr_api.g_varchar2
6444   ,p_segment3                     in     varchar2 default hr_api.g_varchar2
6445   ,p_segment4                     in     varchar2 default hr_api.g_varchar2
6446   ,p_segment5                     in     varchar2 default hr_api.g_varchar2
6447   ,p_segment6                     in     varchar2 default hr_api.g_varchar2
6448   ,p_segment7                     in     varchar2 default hr_api.g_varchar2
6449   ,p_segment8                     in     varchar2 default hr_api.g_varchar2
6450   ,p_segment9                     in     varchar2 default hr_api.g_varchar2
6451   ,p_segment10                    in     varchar2 default hr_api.g_varchar2
6452   ,p_segment11                    in     varchar2 default hr_api.g_varchar2
6453   ,p_segment12                    in     varchar2 default hr_api.g_varchar2
6454   ,p_segment13                    in     varchar2 default hr_api.g_varchar2
6455   ,p_segment14                    in     varchar2 default hr_api.g_varchar2
6456   ,p_segment15                    in     varchar2 default hr_api.g_varchar2
6457   ,p_segment16                    in     varchar2 default hr_api.g_varchar2
6458   ,p_segment17                    in     varchar2 default hr_api.g_varchar2
6459   ,p_segment18                    in     varchar2 default hr_api.g_varchar2
6460   ,p_segment19                    in     varchar2 default hr_api.g_varchar2
6461   ,p_segment20                    in     varchar2 default hr_api.g_varchar2
6462   ,p_segment21                    in     varchar2 default hr_api.g_varchar2
6463   ,p_segment22                    in     varchar2 default hr_api.g_varchar2
6464   ,p_segment23                    in     varchar2 default hr_api.g_varchar2
6465   ,p_segment24                    in     varchar2 default hr_api.g_varchar2
6466   ,p_segment25                    in     varchar2 default hr_api.g_varchar2
6467   ,p_segment26                    in     varchar2 default hr_api.g_varchar2
6468   ,p_segment27                    in     varchar2 default hr_api.g_varchar2
6469   ,p_segment28                    in     varchar2 default hr_api.g_varchar2
6470   ,p_segment29                    in     varchar2 default hr_api.g_varchar2
6471   ,p_segment30                    in     varchar2 default hr_api.g_varchar2
6472   ,p_supervisor_assignment_id     in     number   default hr_api.g_number
6473 -- Bug 944911
6474 -- Amended p_concat_segments to be an in instead of in out
6475 -- ,p_concat_segments             in     varchar2 default hr_api.g_varchar2
6476   ,p_concatenated_segments        in out nocopy varchar2
6477   ,p_comment_id                      out nocopy number -- in-out?
6478   ,p_people_group_id                 out nocopy number
6479   ,p_effective_start_date            out nocopy date
6480   ,p_effective_end_date              out nocopy date
6481  );
6482 --
6483 -- ----------------------------------------------------------------------------
6484 -- |-------------------------< create_secondary_apl_asg >---------------------|
6485 -- ----------------------------------------------------------------------------
6486 --
6487 -- {Start Of Comments}
6488 /*#
6489  * This API creates an additional applicant assignment.
6490  *
6491  *
6492  * <p><b>Licensing</b><br>
6493  * This API is licensed for use with Human Resources.
6494  *
6495  * <p><b>Prerequisites</b><br>
6496  * The person must exist as of the effective date. An application must be
6497  * active as of the effective date.
6498  *
6499  * <p><b>Post Success</b><br>
6500  * The API creates the applicant assignment.
6501  *
6502  * <p><b>Post Failure</b><br>
6503  * The API does not create the assignment and raises an error.
6504  * @param p_validate If true, then validation alone will be performed and the
6505  * database will remain unchanged. If false and all validation checks pass,
6506  * then the database will be modified.
6507  * @param p_effective_date Determines when the DateTrack operation comes into
6508  * force.
6509  * @param p_person_id Identifies the person for whom you create the assignment
6510  * record
6511  * @param p_organization_id Identifies the organization of the assignment
6512  * @param p_recruiter_id Recruiter for the assignment. The value refers to the
6513  * recruiter's person record.
6514  * @param p_grade_id Identifies the grade of the assignment
6515  * @param p_position_id Identifies the position of the assignment
6516  * @param p_job_id Identifies the job of the assignment
6517  * @param p_assignment_status_type_id Assignment status
6518  * @param p_payroll_id Identifies the payroll of the assignment
6519  * @param p_location_id Identifies the location of the assignment
6520  * @param p_person_referred_by_id Identifies the person record of the person
6521  * who referred the applicant.
6522  * @param p_supervisor_id Supervisor for the assignment. The value refers to
6523  * the supervisor's person record.
6524  * @param p_special_ceiling_step_id Highest allowed step for the grade scale
6525  * associated with the grade of the assignment.
6526  * @param p_recruitment_activity_id Identifies the Recruitment Activity from
6527  * which the applicant was found.
6528  * @param p_source_organization_id Identifies the Source organization.
6529  * @param p_vacancy_id Identifies the vacancy which the applicant applied for.
6530  * @param p_pay_basis_id Salary basis for the assignment
6531  * @param p_change_reason Reason for the change in the assignment. Valid values
6532  * are defined in the APL_ASSIGN_REASON lookup type.
6533  * @param p_comments Comment text.
6534  * @param p_date_probation_end End date of probation period
6535  * @param p_default_code_comb_id Identifier for the General Ledger Accounting
6536  * Flexfield combination that applies to this assignment
6537  * @param p_employment_category Employment category. Valid values are defined
6538  * in the EMP_CAT lookup type.
6539  * @param p_frequency Frequency associated with the defined normal working
6540  * hours. Valid values are defined in the FREQUENCY lookup type.
6541  * @param p_internal_address_line Internal address identified with this
6542  * assignment.
6543  * @param p_manager_flag Indicates whether the employee is a manager
6544  * @param p_normal_hours Normal working hours for this assignment
6545  * @param p_perf_review_period Length of performance review period
6546  * @param p_perf_review_period_frequency Units of performance review period.
6547  * Valid values are defined in the FREQUENCY lookup type.
6548  * @param p_probation_period Length of probation period
6549  * @param p_probation_unit Units of probation period. Valid values are defined
6550  * in the QUALIFYING_UNITS lookup type.
6551  * @param p_sal_review_period Length of salary review period
6552  * @param p_sal_review_period_frequency Units of salary review period. Valid
6553  * values are defined in the FREQUENCY lookup type.
6554  * @param p_set_of_books_id Identifies General Ledger set of books.
6555  * @param p_source_type Recruitment activity which this assignment is sourced
6556  * from. Valid values are defined in the REC_TYPE lookup type.
6557  * @param p_time_normal_finish Normal work finish time
6558  * @param p_time_normal_start Normal work start time
6559  * @param p_bargaining_unit_code Code for bargaining unit. Valid values are
6560  * defined in the BARGAINING_UNIT_CODE lookup type.
6561  * @param p_ass_attribute_category This context value determines which
6562  * Flexfield Structure to use with the Descriptive flexfield segments.
6563  * @param p_ass_attribute1 Descriptive flexfield segment
6564  * @param p_ass_attribute2 Descriptive flexfield segment
6565  * @param p_ass_attribute3 Descriptive flexfield segment
6566  * @param p_ass_attribute4 Descriptive flexfield segment
6567  * @param p_ass_attribute5 Descriptive flexfield segment
6568  * @param p_ass_attribute6 Descriptive flexfield segment
6569  * @param p_ass_attribute7 Descriptive flexfield segment
6570  * @param p_ass_attribute8 Descriptive flexfield segment
6571  * @param p_ass_attribute9 Descriptive flexfield segment
6572  * @param p_ass_attribute10 Descriptive flexfield segment
6573  * @param p_ass_attribute11 Descriptive flexfield segment
6574  * @param p_ass_attribute12 Descriptive flexfield segment
6575  * @param p_ass_attribute13 Descriptive flexfield segment
6576  * @param p_ass_attribute14 Descriptive flexfield segment
6577  * @param p_ass_attribute15 Descriptive flexfield segment
6578  * @param p_ass_attribute16 Descriptive flexfield segment
6579  * @param p_ass_attribute17 Descriptive flexfield segment
6580  * @param p_ass_attribute18 Descriptive flexfield segment
6581  * @param p_ass_attribute19 Descriptive flexfield segment
6582  * @param p_ass_attribute20 Descriptive flexfield segment
6583  * @param p_ass_attribute21 Descriptive flexfield segment
6584  * @param p_ass_attribute22 Descriptive flexfield segment
6585  * @param p_ass_attribute23 Descriptive flexfield segment
6586  * @param p_ass_attribute24 Descriptive flexfield segment
6587  * @param p_ass_attribute25 Descriptive flexfield segment
6588  * @param p_ass_attribute26 Descriptive flexfield segment
6589  * @param p_ass_attribute27 Descriptive flexfield segment
6590  * @param p_ass_attribute28 Descriptive flexfield segment
6591  * @param p_ass_attribute29 Descriptive flexfield segment
6592  * @param p_ass_attribute30 Descriptive flexfield segment
6593  * @param p_title Obsolete parameter, do not use.
6594  * @param p_scl_segment1 Soft Coded key flexfield segment
6595  * @param p_scl_segment2 Soft Coded key flexfield segment
6596  * @param p_scl_segment3 Soft Coded key flexfield segment
6597  * @param p_scl_segment4 Soft Coded key flexfield segment
6598  * @param p_scl_segment5 Soft Coded key flexfield segment
6599  * @param p_scl_segment6 Soft Coded key flexfield segment
6600  * @param p_scl_segment7 Soft Coded key flexfield segment
6601  * @param p_scl_segment8 Soft Coded key flexfield segment
6602  * @param p_scl_segment9 Soft Coded key flexfield segment
6603  * @param p_scl_segment10 Soft Coded key flexfield segment
6604  * @param p_scl_segment11 Soft Coded key flexfield segment
6605  * @param p_scl_segment12 Soft Coded key flexfield segment
6606  * @param p_scl_segment13 Soft Coded key flexfield segment
6607  * @param p_scl_segment14 Soft Coded key flexfield segment
6608  * @param p_scl_segment15 Soft Coded key flexfield segment
6609  * @param p_scl_segment16 Soft Coded key flexfield segment
6610  * @param p_scl_segment17 Soft Coded key flexfield segment
6611  * @param p_scl_segment18 Soft Coded key flexfield segment
6612  * @param p_scl_segment19 Soft Coded key flexfield segment
6613  * @param p_scl_segment20 Soft Coded key flexfield segment
6614  * @param p_scl_segment21 Soft Coded key flexfield segment
6615  * @param p_scl_segment22 Soft Coded key flexfield segment
6616  * @param p_scl_segment23 Soft Coded key flexfield segment
6617  * @param p_scl_segment24 Soft Coded key flexfield segment
6618  * @param p_scl_segment25 Soft Coded key flexfield segment
6619  * @param p_scl_segment26 Soft Coded key flexfield segment
6620  * @param p_scl_segment27 Soft Coded key flexfield segment
6621  * @param p_scl_segment28 Soft Coded key flexfield segment
6622  * @param p_scl_segment29 Soft Coded key flexfield segment
6623  * @param p_scl_segment30 Soft Coded key flexfield segment
6624  * @param p_scl_concat_segments Concatenated segments for Soft Coded Key
6625  * Flexfield. Concatenated segments can be supplied instead of individual
6626  * segments.
6627  * @param p_concatenated_segments If p_validate is false, set to Soft Coded Key
6628  * Flexfield concatenated segments, if p_validate is true, set to null.
6629  * @param p_pgp_segment1 People group key flexfield segment
6630  * @param p_pgp_segment2 People group key flexfield segment
6631  * @param p_pgp_segment3 People group key flexfield segment
6632  * @param p_pgp_segment4 People group key flexfield segment
6633  * @param p_pgp_segment5 People group key flexfield segment
6634  * @param p_pgp_segment6 People group key flexfield segment
6635  * @param p_pgp_segment7 People group key flexfield segment
6636  * @param p_pgp_segment8 People group key flexfield segment
6637  * @param p_pgp_segment9 People group key flexfield segment
6638  * @param p_pgp_segment10 People group key flexfield segment
6639  * @param p_pgp_segment11 People group key flexfield segment
6640  * @param p_pgp_segment12 People group key flexfield segment
6641  * @param p_pgp_segment13 People group key flexfield segment
6642  * @param p_pgp_segment14 People group key flexfield segment
6643  * @param p_pgp_segment15 People group key flexfield segment
6644  * @param p_pgp_segment16 People group key flexfield segment
6645  * @param p_pgp_segment17 People group key flexfield segment
6646  * @param p_pgp_segment18 People group key flexfield segment
6647  * @param p_pgp_segment19 People group key flexfield segment
6648  * @param p_pgp_segment20 People group key flexfield segment
6649  * @param p_pgp_segment21 People group key flexfield segment
6650  * @param p_pgp_segment22 People group key flexfield segment
6651  * @param p_pgp_segment23 People group key flexfield segment
6652  * @param p_pgp_segment24 People group key flexfield segment
6653  * @param p_pgp_segment25 People group key flexfield segment
6654  * @param p_pgp_segment26 People group key flexfield segment
6655  * @param p_pgp_segment27 People group key flexfield segment
6656  * @param p_pgp_segment28 People group key flexfield segment
6657  * @param p_pgp_segment29 People group key flexfield segment
6658  * @param p_pgp_segment30 People group key flexfield segment
6659  * @param p_concat_segments Concatenated segments for People Group Key
6660  * Flexfield. Concatenated segments can be supplied instead of individual
6661  * segments.
6662  * @param p_contract_id Contract associated with this assignment
6663  * @param p_establishment_id For French business groups, this identifies the
6664  * Establishment Legal Entity for this assignment.
6665  * @param p_collective_agreement_id Collective Agreement that applies to this
6666  * assignment
6667  * @param p_cagr_id_flex_num Identifier for the structure from CAGR Key
6668  * flexfield to use for this assignment
6669  * @param p_cag_segment1 CAGR Key Flexfield segment
6670  * @param p_cag_segment2 CAGR Key Flexfield segment
6671  * @param p_cag_segment3 CAGR Key Flexfield segment
6672  * @param p_cag_segment4 CAGR Key Flexfield segment
6673  * @param p_cag_segment5 CAGR Key Flexfield segment
6674  * @param p_cag_segment6 CAGR Key Flexfield segment
6675  * @param p_cag_segment7 CAGR Key Flexfield segment
6676  * @param p_cag_segment8 CAGR Key Flexfield segment
6677  * @param p_cag_segment9 CAGR Key Flexfield segment
6678  * @param p_cag_segment10 CAGR Key Flexfield segment
6679  * @param p_cag_segment11 CAGR Key Flexfield segment
6680  * @param p_cag_segment12 CAGR Key Flexfield segment
6681  * @param p_cag_segment13 CAGR Key Flexfield segment
6682  * @param p_cag_segment14 CAGR Key Flexfield segment
6683  * @param p_cag_segment15 CAGR Key Flexfield segment
6684  * @param p_cag_segment16 CAGR Key Flexfield segment
6685  * @param p_cag_segment17 CAGR Key Flexfield segment
6686  * @param p_cag_segment18 CAGR Key Flexfield segment
6687  * @param p_cag_segment19 CAGR Key Flexfield segment
6688  * @param p_cag_segment20 CAGR Key Flexfield segment
6689  * @param p_notice_period Length of notice period
6690  * @param p_notice_period_uom Units for notice period. Valid values are defined
6691  * in the QUALIFYING_UNITS lookup type.
6692  * @param p_employee_category Employee Category. Valid values are defined in
6693  * the EMPLOYEE_CATG lookup type.
6694  * @param p_work_at_home Indicate whether this assignment is to work at home.
6695  * Valid values are defined in the YES_NO lookup type.
6696  * @param p_job_post_source_name Name of the source of the job posting which
6697  * was answered for this assignment.
6698  * @param p_applicant_rank Applicant's rank.
6699  * @param p_posting_content_id Identifies the posting to which the applicant
6700  * has applied.
6701  * @param p_grade_ladder_pgm_id Grade Ladder for this assignment
6702  * @param p_supervisor_assignment_id Supervisor's assignment which is
6703  * responsible for supervising this assignment.
6704  * @param p_cagr_grade_def_id If a value is passed in for this parameter, it
6705  * identifies an existing CAGR Key Flexfield combination to associate with the
6706  * assignment, and segment values are ignored. If a value is not passed in,
6707  * then the individual CAGR Key Flexfield segments supplied will be used to
6708  * choose an existing combination or create a new combination. When the API
6709  * completes, if p_validate is false, then this uniquely identifies the
6710  * associated combination of the CAGR Key flexfield for this assignment. If
6711  * p_validate is true, then set to null.
6712  * @param p_cagr_concatenated_segments If p_validate is false, set to the
6713  * concatenation of all CAGR Key Flexfield segments. If p_validate is true, set
6714  * to null.
6715  * @param p_group_name If p_validate is false, set to the People Group Key
6716  * Flexfield concatenated segments. If p_validate is true, set to null.
6717  * @param p_assignment_id If p_validate is false, then this uniquely identifies
6718  * the created assignment. If p_validate is true, then set to null.
6719  * @param p_people_group_id If a value is passed in for this parameter, it
6720  * identifies an existing People Group Key Flexfield combination to associate
6721  * with the assignment, and segment values are ignored. If a value is not
6722  * passed in, then the individual People Group Key Flexfield segments supplied
6723  * will be used to choose an existing combination or create a new combination.
6724  * When the API completes, if p_validate is false, then this uniquely
6725  * identifies the associated combination of the People Group Key flexfield for
6726  * this assignment. If p_validate is true, then set to null.
6727  * @param p_soft_coding_keyflex_id If a value is passed in for this parameter,
6728  * it identifies an existing Soft Coded Key Flexfield combination to associate
6729  * with the assignment, and segment values are ignored. If a value is not
6730  * passed in, then the individual Soft Coded Key Flexfield segments supplied
6731  * will be used to choose an existing combination or create a new combination.
6732  * When the API completes, if p_validate is false, then this uniquely
6733  * identifies the associated combination of the Soft Coded Key flexfield for
6734  * this assignment. If p_validate is true, then set to null.
6735  * @param p_comment_id If p_validate is false and comment text was provided,
6736  * then will be set to the identifier of the created assignment comment record.
6737  * If p_validate is true or no comment text was provided, then will be null.
6738  * @param p_object_version_number If p_validate is false, then set to the
6739  * version number of the created assignment. If p_validate is true, then the
6740  * value will be null.
6741  * @param p_effective_start_date If p_validate is false, then set to the
6742  * earliest effective start date for the created assignment. If p_validate is
6743  * true, then set to null.
6744  * @param p_effective_end_date If p_validate is false, then set to the
6745  * effective end date for the created assignment. If p_validate is true, then
6746  * set to null.
6747  * @param p_assignment_sequence If p_validate is false, set to assignment
6748  * sequence number. If p_validate is true, set to null.
6749  * @param p_appl_override_warning This value returns TRUE if any future
6750  * applications have been overriden.
6751  * @rep:displayname Create Secondary Applicant Assignment
6752  * @rep:category BUSINESS_ENTITY PER_APPLICANT_ASG
6753  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
6754  * @rep:scope public
6755  * @rep:lifecycle active
6756  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
6757 */
6758 --
6759 -- {End Of Comments}
6760 --
6761 procedure create_secondary_apl_asg
6762   (p_validate                     in     boolean  default false
6763   ,p_effective_date               in     date
6764   ,p_person_id                    in     number
6765   ,p_organization_id              in     number
6766   ,p_recruiter_id                 in     number   default null
6767   ,p_grade_id                     in     number   default null
6768   ,p_position_id                  in     number   default null
6769   ,p_job_id                       in     number   default null
6770   ,p_assignment_status_type_id    in     number   default null
6771   ,p_payroll_id                   in     number   default null
6772   ,p_location_id                  in     number   default null
6773   ,p_person_referred_by_id        in     number   default null
6774   ,p_supervisor_id                in     number   default null
6775   ,p_special_ceiling_step_id      in     number   default null
6776   ,p_recruitment_activity_id      in     number   default null
6777   ,p_source_organization_id       in     number   default null
6778   ,p_vacancy_id                   in     number   default null
6779   ,p_pay_basis_id                 in     number   default null
6780   ,p_change_reason                in     varchar2 default null
6781   ,p_comments                     in     varchar2 default null
6782   ,p_date_probation_end           in     date     default null
6783   ,p_default_code_comb_id         in     number   default null
6784   ,p_employment_category          in     varchar2 default null
6785   ,p_frequency                    in     varchar2 default null
6786   ,p_internal_address_line        in     varchar2 default null
6787   ,p_manager_flag                 in     varchar2 default 'N'
6788   ,p_normal_hours                 in     number   default null
6789   ,p_perf_review_period           in     number   default null
6790   ,p_perf_review_period_frequency in     varchar2 default null
6791   ,p_probation_period             in     number   default null
6792   ,p_probation_unit               in     varchar2 default null
6793   ,p_sal_review_period            in     number   default null
6794   ,p_sal_review_period_frequency  in     varchar2 default null
6795   ,p_set_of_books_id              in     number   default null
6796   ,p_source_type                  in     varchar2 default null
6797   ,p_time_normal_finish           in     varchar2 default null
6798   ,p_time_normal_start            in     varchar2 default null
6799   ,p_bargaining_unit_code         in     varchar2 default null
6800   ,p_ass_attribute_category       in     varchar2 default null
6801   ,p_ass_attribute1               in     varchar2 default null
6802   ,p_ass_attribute2               in     varchar2 default null
6803   ,p_ass_attribute3               in     varchar2 default null
6804   ,p_ass_attribute4               in     varchar2 default null
6805   ,p_ass_attribute5               in     varchar2 default null
6806   ,p_ass_attribute6               in     varchar2 default null
6807   ,p_ass_attribute7               in     varchar2 default null
6808   ,p_ass_attribute8               in     varchar2 default null
6809   ,p_ass_attribute9               in     varchar2 default null
6810   ,p_ass_attribute10              in     varchar2 default null
6811   ,p_ass_attribute11              in     varchar2 default null
6812   ,p_ass_attribute12              in     varchar2 default null
6813   ,p_ass_attribute13              in     varchar2 default null
6814   ,p_ass_attribute14              in     varchar2 default null
6815   ,p_ass_attribute15              in     varchar2 default null
6816   ,p_ass_attribute16              in     varchar2 default null
6817   ,p_ass_attribute17              in     varchar2 default null
6818   ,p_ass_attribute18              in     varchar2 default null
6819   ,p_ass_attribute19              in     varchar2 default null
6820   ,p_ass_attribute20              in     varchar2 default null
6821   ,p_ass_attribute21              in     varchar2 default null
6822   ,p_ass_attribute22              in     varchar2 default null
6823   ,p_ass_attribute23              in     varchar2 default null
6824   ,p_ass_attribute24              in     varchar2 default null
6825   ,p_ass_attribute25              in     varchar2 default null
6826   ,p_ass_attribute26              in     varchar2 default null
6827   ,p_ass_attribute27              in     varchar2 default null
6828   ,p_ass_attribute28              in     varchar2 default null
6829   ,p_ass_attribute29              in     varchar2 default null
6830   ,p_ass_attribute30              in     varchar2 default null
6831   ,p_title                        in     varchar2 default null
6832   ,p_scl_segment1                 in     varchar2 default null
6833   ,p_scl_segment2                 in     varchar2 default null
6834   ,p_scl_segment3                 in     varchar2 default null
6835   ,p_scl_segment4                 in     varchar2 default null
6836   ,p_scl_segment5                 in     varchar2 default null
6837   ,p_scl_segment6                 in     varchar2 default null
6838   ,p_scl_segment7                 in     varchar2 default null
6839   ,p_scl_segment8                 in     varchar2 default null
6840   ,p_scl_segment9                 in     varchar2 default null
6841   ,p_scl_segment10                in     varchar2 default null
6842   ,p_scl_segment11                in     varchar2 default null
6843   ,p_scl_segment12                in     varchar2 default null
6844   ,p_scl_segment13                in     varchar2 default null
6845   ,p_scl_segment14                in     varchar2 default null
6846   ,p_scl_segment15                in     varchar2 default null
6847   ,p_scl_segment16                in     varchar2 default null
6848   ,p_scl_segment17                in     varchar2 default null
6849   ,p_scl_segment18                in     varchar2 default null
6850   ,p_scl_segment19                in     varchar2 default null
6851   ,p_scl_segment20                in     varchar2 default null
6852   ,p_scl_segment21                in     varchar2 default null
6853   ,p_scl_segment22                in     varchar2 default null
6854   ,p_scl_segment23                in     varchar2 default null
6855   ,p_scl_segment24                in     varchar2 default null
6856   ,p_scl_segment25                in     varchar2 default null
6857   ,p_scl_segment26                in     varchar2 default null
6858   ,p_scl_segment27                in     varchar2 default null
6859   ,p_scl_segment28                in     varchar2 default null
6860   ,p_scl_segment29                in     varchar2 default null
6861   ,p_scl_segment30                in     varchar2 default null
6862 -- Bug 944911
6863 -- Amended p_scl_concatenated_segments to be an out instead of in out
6864 -- Added new param p_scl_concat_segments
6865 -- Amended p_scl_concatenated_segments to be p_concatenated_segments
6866   ,p_scl_concat_segments          in     varchar2 default null
6867   ,p_concatenated_segments       out nocopy varchar2
6868   ,p_pgp_segment1                 in     varchar2 default null
6869   ,p_pgp_segment2                 in     varchar2 default null
6870   ,p_pgp_segment3                 in     varchar2 default null
6871   ,p_pgp_segment4                 in     varchar2 default null
6872   ,p_pgp_segment5                 in     varchar2 default null
6873   ,p_pgp_segment6                 in     varchar2 default null
6874   ,p_pgp_segment7                 in     varchar2 default null
6875   ,p_pgp_segment8                 in     varchar2 default null
6876   ,p_pgp_segment9                 in     varchar2 default null
6877   ,p_pgp_segment10                in     varchar2 default null
6878   ,p_pgp_segment11                in     varchar2 default null
6879   ,p_pgp_segment12                in     varchar2 default null
6880   ,p_pgp_segment13                in     varchar2 default null
6881   ,p_pgp_segment14                in     varchar2 default null
6882   ,p_pgp_segment15                in     varchar2 default null
6883   ,p_pgp_segment16                in     varchar2 default null
6884   ,p_pgp_segment17                in     varchar2 default null
6885   ,p_pgp_segment18                in     varchar2 default null
6886   ,p_pgp_segment19                in     varchar2 default null
6887   ,p_pgp_segment20                in     varchar2 default null
6888   ,p_pgp_segment21                in     varchar2 default null
6889   ,p_pgp_segment22                in     varchar2 default null
6890   ,p_pgp_segment23                in     varchar2 default null
6891   ,p_pgp_segment24                in     varchar2 default null
6892   ,p_pgp_segment25                in     varchar2 default null
6893   ,p_pgp_segment26                in     varchar2 default null
6894   ,p_pgp_segment27                in     varchar2 default null
6895   ,p_pgp_segment28                in     varchar2 default null
6896   ,p_pgp_segment29                in     varchar2 default null
6897   ,p_pgp_segment30                in     varchar2 default null
6898 -- Bug 944911
6899 -- Amended p_group_name to out
6900 -- Added new param p_pgp_concat_segments - for sec asg procs
6901 -- for others added p_concat_segments
6902   ,p_concat_segments		  in     varchar2 default null
6903   ,p_contract_id                  in     number default null
6904   ,p_establishment_id             in     number default null
6905   ,p_collective_agreement_id      in     number default null
6906   ,p_cagr_id_flex_num             in     number default null
6907   ,p_cag_segment1                 in     varchar2  default null
6908   ,p_cag_segment2                 in     varchar2  default null
6909   ,p_cag_segment3                 in     varchar2  default null
6910   ,p_cag_segment4                 in     varchar2  default null
6911   ,p_cag_segment5                 in     varchar2  default null
6912   ,p_cag_segment6                 in     varchar2  default null
6913   ,p_cag_segment7                 in     varchar2  default null
6914   ,p_cag_segment8                 in     varchar2  default null
6915   ,p_cag_segment9                 in     varchar2  default null
6916   ,p_cag_segment10                in     varchar2  default null
6917   ,p_cag_segment11                in     varchar2  default null
6918   ,p_cag_segment12                in     varchar2  default null
6919   ,p_cag_segment13                in     varchar2  default null
6920   ,p_cag_segment14                in     varchar2  default null
6921   ,p_cag_segment15                in     varchar2  default null
6922   ,p_cag_segment16                in     varchar2  default null
6923   ,p_cag_segment17                in     varchar2  default null
6924   ,p_cag_segment18                in     varchar2  default null
6925   ,p_cag_segment19                in     varchar2  default null
6926   ,p_cag_segment20                in     varchar2  default null
6927   ,p_notice_period		  in	 number    default  null
6928   ,p_notice_period_uom		  in     varchar2  default  null
6929   ,p_employee_category		  in     varchar2  default  null
6930   ,p_work_at_home		  in	 varchar2  default  null
6931   ,p_job_post_source_name         in     varchar2  default  null
6932   ,p_applicant_rank               in     number    default  null
6933   ,p_posting_content_id           in     number    default  null
6934   ,p_grade_ladder_pgm_id          in     number    default  null
6935   ,p_supervisor_assignment_id     in     number    default  null
6936   ,p_cagr_grade_def_id            in out nocopy number
6937   ,p_cagr_concatenated_segments      out nocopy varchar2
6938   ,p_group_name                      out nocopy varchar2
6939   ,p_assignment_id                   out nocopy number
6940   ,p_people_group_id              in out nocopy number
6941   ,p_soft_coding_keyflex_id       in out nocopy number
6942   ,p_comment_id                      out nocopy number
6943   ,p_object_version_number           out nocopy number
6944   ,p_effective_start_date            out nocopy date
6945   ,p_effective_end_date              out nocopy date
6946   ,p_assignment_sequence             out nocopy number
6947   ,p_appl_override_warning           OUT NOCOPY boolean  -- 3652025
6948   );
6949 --
6950 -- ----------------------------------------------------------------------------
6951 -- |-------------------------< create_secondary_apl_asg >---------------------|
6952 -- ----------------------------------------------------------------------------
6953 --
6954 -- This version of the API is now out-of-date however it has been provided to
6955 -- you for backward compatibility support and will be removed in the future.
6956 -- Oracle recommends you to modify existing calling programs in advance of the
6957 -- support being withdrawn thus avoiding any potential disruption.
6958 --
6959 procedure create_secondary_apl_asg
6960   (p_validate                     in     boolean  default false
6961   ,p_effective_date               in     date
6962   ,p_person_id                    in     number
6963   ,p_organization_id              in     number
6964   ,p_recruiter_id                 in     number   default null
6965   ,p_grade_id                     in     number   default null
6966   ,p_position_id                  in     number   default null
6967   ,p_job_id                       in     number   default null
6968   ,p_assignment_status_type_id    in     number   default null
6969   ,p_payroll_id                   in     number   default null
6970   ,p_location_id                  in     number   default null
6971   ,p_person_referred_by_id        in     number   default null
6972   ,p_supervisor_id                in     number   default null
6973   ,p_special_ceiling_step_id      in     number   default null
6974   ,p_recruitment_activity_id      in     number   default null
6975   ,p_source_organization_id       in     number   default null
6976   ,p_vacancy_id                   in     number   default null
6977   ,p_pay_basis_id                 in     number   default null
6978   ,p_change_reason                in     varchar2 default null
6979   ,p_comments                     in     varchar2 default null
6980   ,p_date_probation_end           in     date     default null
6981   ,p_default_code_comb_id         in     number   default null
6982   ,p_employment_category          in     varchar2 default null
6983   ,p_frequency                    in     varchar2 default null
6984   ,p_internal_address_line        in     varchar2 default null
6985   ,p_manager_flag                 in     varchar2 default 'N'
6986   ,p_normal_hours                 in     number   default null
6987   ,p_perf_review_period           in     number   default null
6988   ,p_perf_review_period_frequency in     varchar2 default null
6989   ,p_probation_period             in     number   default null
6990   ,p_probation_unit               in     varchar2 default null
6991   ,p_sal_review_period            in     number   default null
6992   ,p_sal_review_period_frequency  in     varchar2 default null
6993   ,p_set_of_books_id              in     number   default null
6994   ,p_source_type                  in     varchar2 default null
6995   ,p_time_normal_finish           in     varchar2 default null
6996   ,p_time_normal_start            in     varchar2 default null
6997   ,p_bargaining_unit_code         in     varchar2 default null
6998   ,p_ass_attribute_category       in     varchar2 default null
6999   ,p_ass_attribute1               in     varchar2 default null
7000   ,p_ass_attribute2               in     varchar2 default null
7001   ,p_ass_attribute3               in     varchar2 default null
7002   ,p_ass_attribute4               in     varchar2 default null
7003   ,p_ass_attribute5               in     varchar2 default null
7004   ,p_ass_attribute6               in     varchar2 default null
7005   ,p_ass_attribute7               in     varchar2 default null
7006   ,p_ass_attribute8               in     varchar2 default null
7007   ,p_ass_attribute9               in     varchar2 default null
7008   ,p_ass_attribute10              in     varchar2 default null
7009   ,p_ass_attribute11              in     varchar2 default null
7010   ,p_ass_attribute12              in     varchar2 default null
7011   ,p_ass_attribute13              in     varchar2 default null
7012   ,p_ass_attribute14              in     varchar2 default null
7013   ,p_ass_attribute15              in     varchar2 default null
7014   ,p_ass_attribute16              in     varchar2 default null
7015   ,p_ass_attribute17              in     varchar2 default null
7016   ,p_ass_attribute18              in     varchar2 default null
7017   ,p_ass_attribute19              in     varchar2 default null
7018   ,p_ass_attribute20              in     varchar2 default null
7019   ,p_ass_attribute21              in     varchar2 default null
7020   ,p_ass_attribute22              in     varchar2 default null
7021   ,p_ass_attribute23              in     varchar2 default null
7022   ,p_ass_attribute24              in     varchar2 default null
7023   ,p_ass_attribute25              in     varchar2 default null
7024   ,p_ass_attribute26              in     varchar2 default null
7025   ,p_ass_attribute27              in     varchar2 default null
7026   ,p_ass_attribute28              in     varchar2 default null
7027   ,p_ass_attribute29              in     varchar2 default null
7028   ,p_ass_attribute30              in     varchar2 default null
7029   ,p_title                        in     varchar2 default null
7030   ,p_scl_segment1                 in     varchar2 default null
7031   ,p_scl_segment2                 in     varchar2 default null
7032   ,p_scl_segment3                 in     varchar2 default null
7033   ,p_scl_segment4                 in     varchar2 default null
7034   ,p_scl_segment5                 in     varchar2 default null
7035   ,p_scl_segment6                 in     varchar2 default null
7036   ,p_scl_segment7                 in     varchar2 default null
7037   ,p_scl_segment8                 in     varchar2 default null
7038   ,p_scl_segment9                 in     varchar2 default null
7039   ,p_scl_segment10                in     varchar2 default null
7040   ,p_scl_segment11                in     varchar2 default null
7041   ,p_scl_segment12                in     varchar2 default null
7042   ,p_scl_segment13                in     varchar2 default null
7043   ,p_scl_segment14                in     varchar2 default null
7044   ,p_scl_segment15                in     varchar2 default null
7045   ,p_scl_segment16                in     varchar2 default null
7046   ,p_scl_segment17                in     varchar2 default null
7047   ,p_scl_segment18                in     varchar2 default null
7048   ,p_scl_segment19                in     varchar2 default null
7049   ,p_scl_segment20                in     varchar2 default null
7050   ,p_scl_segment21                in     varchar2 default null
7051   ,p_scl_segment22                in     varchar2 default null
7052   ,p_scl_segment23                in     varchar2 default null
7053   ,p_scl_segment24                in     varchar2 default null
7054   ,p_scl_segment25                in     varchar2 default null
7055   ,p_scl_segment26                in     varchar2 default null
7056   ,p_scl_segment27                in     varchar2 default null
7057   ,p_scl_segment28                in     varchar2 default null
7058   ,p_scl_segment29                in     varchar2 default null
7059   ,p_scl_segment30                in     varchar2 default null
7060 -- Bug 944911
7061 -- Amended p_scl_concatenated_segments to be an out instead of in out
7062 -- Added new param p_scl_concat_segments
7063 -- Amended p_scl_concatenated_segments to be p_concatenated_segments
7064   ,p_scl_concat_segments          in     varchar2 default null
7065   ,p_concatenated_segments       out nocopy varchar2
7066   ,p_pgp_segment1                 in     varchar2 default null
7067   ,p_pgp_segment2                 in     varchar2 default null
7068   ,p_pgp_segment3                 in     varchar2 default null
7069   ,p_pgp_segment4                 in     varchar2 default null
7070   ,p_pgp_segment5                 in     varchar2 default null
7071   ,p_pgp_segment6                 in     varchar2 default null
7072   ,p_pgp_segment7                 in     varchar2 default null
7073   ,p_pgp_segment8                 in     varchar2 default null
7074   ,p_pgp_segment9                 in     varchar2 default null
7075   ,p_pgp_segment10                in     varchar2 default null
7076   ,p_pgp_segment11                in     varchar2 default null
7077   ,p_pgp_segment12                in     varchar2 default null
7078   ,p_pgp_segment13                in     varchar2 default null
7079   ,p_pgp_segment14                in     varchar2 default null
7080   ,p_pgp_segment15                in     varchar2 default null
7081   ,p_pgp_segment16                in     varchar2 default null
7082   ,p_pgp_segment17                in     varchar2 default null
7083   ,p_pgp_segment18                in     varchar2 default null
7084   ,p_pgp_segment19                in     varchar2 default null
7085   ,p_pgp_segment20                in     varchar2 default null
7086   ,p_pgp_segment21                in     varchar2 default null
7087   ,p_pgp_segment22                in     varchar2 default null
7088   ,p_pgp_segment23                in     varchar2 default null
7089   ,p_pgp_segment24                in     varchar2 default null
7090   ,p_pgp_segment25                in     varchar2 default null
7091   ,p_pgp_segment26                in     varchar2 default null
7092   ,p_pgp_segment27                in     varchar2 default null
7093   ,p_pgp_segment28                in     varchar2 default null
7094   ,p_pgp_segment29                in     varchar2 default null
7095   ,p_pgp_segment30                in     varchar2 default null
7096 -- Bug 944911
7097 -- Amended p_group_name to out
7098 -- Added new param p_pgp_concat_segments - for sec asg procs
7099 -- for others added p_concat_segments
7100   ,p_concat_segments		  in     varchar2 default null
7101   ,p_contract_id                  in     number default null
7102   ,p_establishment_id             in     number default null
7103   ,p_collective_agreement_id      in     number default null
7104   ,p_cagr_id_flex_num             in     number default null
7105   ,p_cag_segment1                 in     varchar2  default null
7106   ,p_cag_segment2                 in     varchar2  default null
7107   ,p_cag_segment3                 in     varchar2  default null
7108   ,p_cag_segment4                 in     varchar2  default null
7109   ,p_cag_segment5                 in     varchar2  default null
7110   ,p_cag_segment6                 in     varchar2  default null
7111   ,p_cag_segment7                 in     varchar2  default null
7112   ,p_cag_segment8                 in     varchar2  default null
7113   ,p_cag_segment9                 in     varchar2  default null
7114   ,p_cag_segment10                in     varchar2  default null
7115   ,p_cag_segment11                in     varchar2  default null
7116   ,p_cag_segment12                in     varchar2  default null
7117   ,p_cag_segment13                in     varchar2  default null
7118   ,p_cag_segment14                in     varchar2  default null
7119   ,p_cag_segment15                in     varchar2  default null
7120   ,p_cag_segment16                in     varchar2  default null
7121   ,p_cag_segment17                in     varchar2  default null
7122   ,p_cag_segment18                in     varchar2  default null
7123   ,p_cag_segment19                in     varchar2  default null
7124   ,p_cag_segment20                in     varchar2  default null
7125   ,p_notice_period		  in	 number    default  null
7126   ,p_notice_period_uom		  in     varchar2  default  null
7127   ,p_employee_category		  in     varchar2  default  null
7128   ,p_work_at_home		  in	 varchar2  default  null
7129   ,p_job_post_source_name         in     varchar2  default  null
7130   ,p_applicant_rank               in     number    default  null
7131   ,p_posting_content_id           in     number    default  null
7132   ,p_grade_ladder_pgm_id          in     number    default  null
7133   ,p_supervisor_assignment_id     in     number    default  null
7134   ,p_cagr_grade_def_id            in out nocopy number
7135   ,p_cagr_concatenated_segments      out nocopy varchar2
7136   ,p_group_name                      out nocopy varchar2
7137   ,p_assignment_id                   out nocopy number
7138   ,p_people_group_id              in out nocopy number
7139   ,p_soft_coding_keyflex_id       in out nocopy number
7140   ,p_comment_id                      out nocopy number
7141   ,p_object_version_number           out nocopy number
7142   ,p_effective_start_date            out nocopy date
7143   ,p_effective_end_date              out nocopy date
7144   ,p_assignment_sequence             out nocopy number
7145   );
7146 -- ----------------------------------------------------------------------------
7147 -- |---------------------< create_secondary_apl_asg >-------------------------|
7148 -- ----------------------------------------------------------------------------
7149 -- {Start Of Comments}
7150 --
7151 -- Description:
7152 --   This API creates an additional applicant assignment for an existing
7153 --   applicant. This second assignment indicates that the person is applying
7154 --   for more than one vacancy, or is an internal transfer.
7155 --    Note this is a limited subset of the parameters for R11 compatability.
7156 --
7157 -- Prerequisites:
7158 --   The person (p_person_id) and the organization (p_organization_id)
7159 --   must exist at the effective start date of the assignment (p_effective_date).
7160 --
7161 -- In Parameters:
7162 --   Name                           Reqd Type     Description
7163 --   p_validate                          boolean  If true, the database remains
7164 --                                                unchanged. If false a valid
7165 --                                                assignment is created in
7166 --                                                the database.
7167 --   p_effective_date               Yes  date     Effective start date of
7168 --                                                this assignment
7169 --   p_person_id                    Yes  number   Person identifier for this
7170 --                                                assignment
7171 --   p_organization_id              Yes  number   Organization
7172 --   p_recruiter_id                 No   number   Recruiter
7173 --   p_grade_id                     No   number   Grade
7174 --   p_position_id                  No   number   Position
7175 --   p_job_id                       No   number   Job
7176 --   p_assignment_status_type_id    No   number   Assignment status
7177 --   p_location_id                  No   number   Location
7178 --   p_person_referred_by_id        No   number   Person who referred this
7179 --                                                applicant for the assignment
7180 --   p_supervisor_id                No   number   Supervisor
7181 --   p_supervisor_assignment_id     No   number   Supervisor's assignment
7182 --   p_recruitment_activity_id      No   number   Recruitment Activity
7183 --   p_source_organization_id       No   number   Source Organization
7184 --   p_vacancy_id                   No   number   Vacancy
7185 --   p_change_reason                No   varchar2 Reason for the change.
7186 --                                                If there is no change reason
7187 --                                                please explicitly set this to
7188 --                                                null. (else there is a risk
7189 --                                                of inadvertantly recording
7190 --                                                promotions - bug 2994473)
7191 --   p_comments                     No   varchar2 Comments
7192 --   p_date_probation_end           No   date     End date of probation period
7193 --   p_frequency                    No   varchar2 Frequency for quoting working hours (eg per week)
7194 --   p_manager_flag                 No   varchar2 Indicates whether assignment is a manager
7195 --   p_normal_hours                 No   number   Normal working hours
7196 --   p_probation_period             No   number   Length of probation period
7197 --   p_probation_unit               No   varchar2 Units for quoting probation period (eg months)
7198 --   p_source_type                  No   varchar2 Recruitment activity source
7199 --   p_time_normal_finish           No   varchar2 Normal work finish time
7200 --   p_time_normal_start            No   varchar2 Normal work start time
7201 --   p_ass_attribute_category       No   varchar2 Descriptive flexfield
7202 --                                                attribute category
7203 --   p_ass_attribute1               No   varchar2 Descriptive flexfield
7204 --   p_ass_attribute2               No   varchar2 Descriptive flexfield
7205 --   p_ass_attribute3               No   varchar2 Descriptive flexfield
7206 --   p_ass_attribute4               No   varchar2 Descriptive flexfield
7207 --   p_ass_attribute5               No   varchar2 Descriptive flexfield
7208 --   p_ass_attribute6               No   varchar2 Descriptive flexfield
7209 --   p_ass_attribute7               No   varchar2 Descriptive flexfield
7210 --   p_ass_attribute8               No   varchar2 Descriptive flexfield
7211 --   p_ass_attribute9               No   varchar2 Descriptive flexfield
7212 --   p_ass_attribute10              No   varchar2 Descriptive flexfield
7213 --   p_ass_attribute11              No   varchar2 Descriptive flexfield
7214 --   p_ass_attribute12              No   varchar2 Descriptive flexfield
7215 --   p_ass_attribute13              No   varchar2 Descriptive flexfield
7216 --   p_ass_attribute14              No   varchar2 Descriptive flexfield
7217 --   p_ass_attribute15              No   varchar2 Descriptive flexfield
7218 --   p_ass_attribute16              No   varchar2 Descriptive flexfield
7219 --   p_ass_attribute17              No   varchar2 Descriptive flexfield
7220 --   p_ass_attribute18              No   varchar2 Descriptive flexfield
7221 --   p_ass_attribute19              No   varchar2 Descriptive flexfield
7222 --   p_ass_attribute20              No   varchar2 Descriptive flexfield
7223 --   p_ass_attribute21              No   varchar2 Descriptive flexfield
7224 --   p_ass_attribute22              No   varchar2 Descriptive flexfield
7225 --   p_ass_attribute23              No   varchar2 Descriptive flexfield
7226 --   p_ass_attribute24              No   varchar2 Descriptive flexfield
7227 --   p_ass_attribute25              No   varchar2 Descriptive flexfield
7228 --   p_ass_attribute26              No   varchar2 Descriptive flexfield
7229 --   p_ass_attribute27              No   varchar2 Descriptive flexfield
7230 --   p_ass_attribute28              No   varchar2 Descriptive flexfield
7231 --   p_ass_attribute29              No   varchar2 Descriptive flexfield
7232 --   p_ass_attribute30              No   varchar2 Descriptive flexfield
7233 --   p_title                        No   varchar2 Title -must be NULL
7234 --   p_segment1                     No   varchar2 People group Coding segment
7235 --   p_segment2                     No   varchar2 People group segment
7236 --   p_segment3                     No   varchar2 People group segment
7237 --   p_segment4                     No   varchar2 People group segment
7238 --   p_segment5                     No   varchar2 People group segment
7239 --   p_segment6                     No   varchar2 People group segment
7240 --   p_segment7                     No   varchar2 People group segment
7241 --   p_segment8                     No   varchar2 People group segment
7242 --   p_segment9                     No   varchar2 People group segment
7243 --   p_segment10                    No   varchar2 People group segment
7244 --   p_segment11                    No   varchar2 People group segment
7245 --   p_segment12                    No   varchar2 People group segment
7246 --   p_segment13                    No   varchar2 People group segment
7247 --   p_segment14                    No   varchar2 People group segment
7248 --   p_segment15                    No   varchar2 People group segment
7249 --   p_segment16                    No   varchar2 People group segment
7250 --   p_segment17                    No   varchar2 People group segment
7251 --   p_segment18                    No   varchar2 People group segment
7252 --   p_segment19                    No   varchar2 People group segment
7253 --   p_segment20                    No   varchar2 People group segment
7254 --   p_segment21                    No   varchar2 People group segment
7255 --   p_segment22                    No   varchar2 People group segment
7256 --   p_segment23                    No   varchar2 People group segment
7257 --   p_segment24                    No   varchar2 People group segment
7258 --   p_segment25                    No   varchar2 People group segment
7259 --   p_segment26                    No   varchar2 People group segment
7260 --   p_segment27                    No   varchar2 People group segment
7261 --   p_segment28                    No   varchar2 People group segment
7262 --   p_segment29                    No   varchar2 People group segment
7263 --   p_segment30                    No   varchar2 People group segment
7264 --
7265 --
7266 -- Post Success:
7267 --   The API creates the applicant assignment and set the following out
7268 --   parameters:
7269 --
7270 --   Name                           Type     Description
7271 --   p_assignment_id                number   If p_validate is false, set to
7272 --                                           the unique ID for the assignment
7273 --                                           created by the API. If
7274 --                                           p_validate is true, set to null.
7275 --   p_people_group_id              number   If p_validate is false and people
7276 --                                           group segment values have been
7277 --                                           specified, set to the
7278 --                                           people group combination ID.
7279 --                                           If p_validate is true or people
7280 --                                           group segment values have not
7281 --                                           been provided, set to null.
7282 --   p_object_version_number        number   If p_validate is false, set to
7283 --                                           version number of the new
7284 --                                           assignment. If p_validate is
7285 --                                           true, set to null.
7286 --   p_effective_start_date         date     If p_validate is false, set to
7287 --                                           the effective start date of this
7288 --                                           assignment. If p_validate is
7289 --                                           true, set to null.
7290 --   p_effective_end_date           date     If p_validate is false, set to
7291 --                                           the effective end date of this
7292 --                                           assignment. If p_validate is
7293 --                                           true, set to null.
7294 --   p_assignment_sequence          number   If p_validate is false, set to
7295 --                                           assignment sequence number.
7296 --                                           If p_validate is true, set to
7297 --                                           null.
7298 --   p_comment_id                   number   If p_validate is false and
7299 --                                           comment text has been provided,
7300 --                                           set to the ID of the comments.
7301 --                                           Otherwise set to null.
7302 --   p_group_name                   varchar2 If p_validate is false and people
7303 --                                           group segment values have been
7304 --                                           specified, set to the
7305 --                                           people group combination name.
7306 --                                           If p_validate is true, or people
7307 --                                           group segment values have not
7308 --                                           been provided, set to
7309 --                                           null.
7310 --
7311 -- Post Failure:
7312 --   The API does not create the assignment and raises an error.
7313 --
7314 -- Access Status:
7315 --   Public.
7316 --
7317 -- {End Of Comments}
7318 --
7319 procedure create_secondary_apl_asg
7320   (p_validate                     in     boolean  default false
7321   ,p_effective_date               in     date
7322   ,p_person_id                    in     number
7323   ,p_organization_id              in     number
7324   ,p_recruiter_id                 in     number   default null
7325   ,p_grade_id                     in     number   default null
7326   ,p_position_id                  in     number   default null
7327   ,p_job_id                       in     number   default null
7328   ,p_assignment_status_type_id    in     number   default null
7329   ,p_location_id                  in     number   default null
7330   ,p_person_referred_by_id        in     number   default null
7331   ,p_supervisor_id                in     number   default null
7332   ,p_recruitment_activity_id      in     number   default null
7333   ,p_source_organization_id       in     number   default null
7334   ,p_vacancy_id                   in     number   default null
7335   ,p_change_reason                in     varchar2 default null
7336   ,p_comments                     in     varchar2 default null
7337   ,p_date_probation_end           in     date     default null
7338   ,p_frequency                    in     varchar2 default null
7339   ,p_manager_flag                 in     varchar2 default 'N'
7340   ,p_normal_hours                 in     number   default null
7341   ,p_probation_period             in     number   default null
7342   ,p_probation_unit               in     varchar2 default null
7343   ,p_source_type                  in     varchar2 default null
7344   ,p_time_normal_finish           in     varchar2 default null
7345   ,p_time_normal_start            in     varchar2 default null
7346   ,p_ass_attribute_category       in     varchar2 default null
7347   ,p_ass_attribute1               in     varchar2 default null
7348   ,p_ass_attribute2               in     varchar2 default null
7349   ,p_ass_attribute3               in     varchar2 default null
7350   ,p_ass_attribute4               in     varchar2 default null
7351   ,p_ass_attribute5               in     varchar2 default null
7352   ,p_ass_attribute6               in     varchar2 default null
7353   ,p_ass_attribute7               in     varchar2 default null
7354   ,p_ass_attribute8               in     varchar2 default null
7355   ,p_ass_attribute9               in     varchar2 default null
7356   ,p_ass_attribute10              in     varchar2 default null
7357   ,p_ass_attribute11              in     varchar2 default null
7358   ,p_ass_attribute12              in     varchar2 default null
7359   ,p_ass_attribute13              in     varchar2 default null
7360   ,p_ass_attribute14              in     varchar2 default null
7361   ,p_ass_attribute15              in     varchar2 default null
7362   ,p_ass_attribute16              in     varchar2 default null
7363   ,p_ass_attribute17              in     varchar2 default null
7364   ,p_ass_attribute18              in     varchar2 default null
7365   ,p_ass_attribute19              in     varchar2 default null
7366   ,p_ass_attribute20              in     varchar2 default null
7367   ,p_ass_attribute21              in     varchar2 default null
7368   ,p_ass_attribute22              in     varchar2 default null
7369   ,p_ass_attribute23              in     varchar2 default null
7370   ,p_ass_attribute24              in     varchar2 default null
7371   ,p_ass_attribute25              in     varchar2 default null
7372   ,p_ass_attribute26              in     varchar2 default null
7373   ,p_ass_attribute27              in     varchar2 default null
7374   ,p_ass_attribute28              in     varchar2 default null
7375   ,p_ass_attribute29              in     varchar2 default null
7376   ,p_ass_attribute30              in     varchar2 default null
7377   ,p_title                        in     varchar2 default null
7378   ,p_segment1                     in     varchar2 default null
7379   ,p_segment2                     in     varchar2 default null
7380   ,p_segment3                     in     varchar2 default null
7381   ,p_segment4                     in     varchar2 default null
7382   ,p_segment5                     in     varchar2 default null
7383   ,p_segment6                     in     varchar2 default null
7384   ,p_segment7                     in     varchar2 default null
7385   ,p_segment8                     in     varchar2 default null
7386   ,p_segment9                     in     varchar2 default null
7387   ,p_segment10                    in     varchar2 default null
7388   ,p_segment11                    in     varchar2 default null
7389   ,p_segment12                    in     varchar2 default null
7390   ,p_segment13                    in     varchar2 default null
7391   ,p_segment14                    in     varchar2 default null
7392   ,p_segment15                    in     varchar2 default null
7393   ,p_segment16                    in     varchar2 default null
7394   ,p_segment17                    in     varchar2 default null
7395   ,p_segment18                    in     varchar2 default null
7396   ,p_segment19                    in     varchar2 default null
7397   ,p_segment20                    in     varchar2 default null
7398   ,p_segment21                    in     varchar2 default null
7399   ,p_segment22                    in     varchar2 default null
7400   ,p_segment23                    in     varchar2 default null
7401   ,p_segment24                    in     varchar2 default null
7402   ,p_segment25                    in     varchar2 default null
7403   ,p_segment26                    in     varchar2 default null
7404   ,p_segment27                    in     varchar2 default null
7405   ,p_segment28                    in     varchar2 default null
7406   ,p_segment29                    in     varchar2 default null
7407   ,p_segment30                    in     varchar2 default null
7408 -- Bug 944911
7409 -- Amended p_group_name to out
7410 -- Added new param p_pgp_concat_segments - for sec asg procs
7411 -- for others added p_concat_segments
7412 -- Revering these changes ar they are for R11
7413   -- ,p_concat_segments		  in     varchar2 default null
7414   ,p_supervisor_assignment_id     in     number   default null
7415   ,p_group_name                   in out nocopy varchar2
7416   ,p_assignment_id                   out nocopy number
7417   ,p_object_version_number           out nocopy number
7418   ,p_effective_start_date            out nocopy date
7419   ,p_effective_end_date              out nocopy date
7420   ,p_assignment_sequence             out nocopy number
7421   ,p_comment_id                      out nocopy number
7422   ,p_people_group_id                 out nocopy number
7423   );
7424 --
7425 -- ----------------------------------------------------------------------------
7426 -- |------------------------------< offer_apl_asg >---------------------------|
7427 -- ----------------------------------------------------------------------------
7428 --
7429 -- {Start Of Comments}
7430 /*#
7431  * This API changes the status of an applicant assignment to a status of the
7432  * 'Offer' type.
7433  *
7434  *
7435  * <p><b>Licensing</b><br>
7436  * This API is licensed for use with Human Resources.
7437  *
7438  * <p><b>Prerequisites</b><br>
7439  * The assignment must be an applicant assignment. The assignment must exist as
7440  * of the effective date of the change.Also the assignment status must exist
7441  * with a system status of OFFER.
7442  *
7443  * <p><b>Post Success</b><br>
7444  * The API updates the assignment.
7445  *
7446  * <p><b>Post Failure</b><br>
7447  * The API does not update the assignment and raises an error.
7448  * @param p_validate If true, then validation alone will be performed and the
7449  * database will remain unchanged. If false and all validation checks pass,
7450  * then the database will be modified.
7451  * @param p_effective_date Determines when the DateTrack operation comes into
7452  * force.
7453  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
7454  * updating the record. You must set to either UPDATE, CORRECTION,
7455  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
7456  * particular record depend on the dates of previous record changes and the
7457  * effective date of this change.
7458  * @param p_assignment_id Identifies the assignment record to be modified.
7459  * @param p_object_version_number Pass in the current version number of the
7460  * assignment to be updated. When the API completes if p_validate is false,
7461  * will be set to the new version number of the updated assignment. If
7462  * p_validate is true will be set to the same value which was passed in.
7463  * @param p_assignment_status_type_id The new assignment status must have a
7464  * system assignment status of OFFER. If the assignment status is already a
7465  * type of OFFER, this API can be used to set a different offer status. If no
7466  * value is supplied, this API uses the default OFFER status for the business
7467  * group in which this assignment exists.
7468  * @param p_change_reason Reason for the change in the assignment. Valid values
7469  * are defined in the APL_ASSIGN_REASON lookup type.
7470  * @param p_effective_start_date If p_validate is false, then set to the
7471  * earliest effective start date for the created assignment. If p_validate is
7472  * true, then set to null.
7473  * @param p_effective_end_date If p_validate is false, then set to the
7474  * effective end date for the created assignment. If p_validate is true, then
7475  * set to null.
7476  * @rep:displayname Offer Applicant Assignment
7477  * @rep:category BUSINESS_ENTITY PER_APPLICANT_ASG
7478  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
7479  * @rep:scope public
7480  * @rep:lifecycle active
7481  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
7482 */
7483 --
7484 -- {End Of Comments}
7485 --
7486 procedure offer_apl_asg
7487   (p_validate                     in     boolean  default false
7488   ,p_effective_date               in     date
7489   ,p_datetrack_update_mode        in     varchar2
7490   ,p_assignment_id                in     number
7491   ,p_object_version_number        in out nocopy number
7492   ,p_assignment_status_type_id    in     number   default hr_api.g_number
7493   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
7494   ,p_effective_start_date            out nocopy date
7495   ,p_effective_end_date              out nocopy date
7496   );
7497 
7498 
7499 --
7500 -- ----------------------------------------------------------------------------
7501 -- |------------------------------< accept_apl_asg >--------------------------|
7502 -- ----------------------------------------------------------------------------
7503 --
7504 -- {Start Of Comments}
7505 /*#
7506  * This API changes the status of an applicant assignment to a status of the
7507  * 'Accepted' type.
7508  *
7509  *
7510  * <p><b>Licensing</b><br>
7511  * This API is licensed for use with Human Resources.
7512  *
7513  * <p><b>Prerequisites</b><br>
7514  * The assignment must be an applicant assignment. The assignment must exist as
7515  * of the effective date of the change
7516  *
7517  * <p><b>Post Success</b><br>
7518  * The API updates the assignment.
7519  *
7520  * <p><b>Post Failure</b><br>
7521  * The API does not update the assignment and raises an error.
7522  * @param p_validate If true, then validation alone will be performed and the
7523  * database will remain unchanged. If false and all validation checks pass,
7524  * then the database will be modified.
7525  * @param p_effective_date Determines when the DateTrack operation comes into
7526  * force.
7527  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
7528  * updating the record. You must set to either UPDATE, CORRECTION,
7529  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
7530  * particular record depend on the dates of previous record changes and the
7531  * effective date of this change.
7532  * @param p_assignment_id Identifies the assignment record to be modified.
7533  * @param p_object_version_number Pass in the current version number of the
7534  * assignment to be updated. When the API completes if p_validate is false,
7535  * will be set to the new version number of the updated assignment. If
7536  * p_validate is true will be set to the same value which was passed in.
7537  * @param p_assignment_status_type_id The new assignment status must have a
7538  * system assignment status of ACCEPTED. If the assignment status is already a
7539  * type of ACCEPTED, this API can be used to set a different accepted status.
7540  * If no value is supplied, this API uses the default ACCEPTED status for the
7541  * business group in which this assignment exists.
7542  * @param p_change_reason Reason for the change in the assignment. Valid values
7543  * are defined in the APL_ASSIGN_REASON lookup type.
7544  * @param p_effective_start_date If p_validate is false, then set to the
7545  * earliest effective start date for the created assignment. If p_validate is
7546  * true, then set to null.
7547  * @param p_effective_end_date If p_validate is false, then set to the
7548  * effective end date for the created assignment. If p_validate is true, then
7549  * set to null.
7550  * @rep:displayname Accept Applicant Assignment
7551  * @rep:category BUSINESS_ENTITY PER_APPLICANT_ASG
7552  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
7553  * @rep:scope public
7554  * @rep:lifecycle active
7555  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
7556 */
7557 --
7558 -- {End Of Comments}
7559 --
7560 procedure accept_apl_asg
7561   (p_validate                     in     boolean  default false
7562   ,p_effective_date               in     date
7563   ,p_datetrack_update_mode        in     varchar2
7564   ,p_assignment_id                in     number
7565   ,p_object_version_number        in out nocopy number
7566   ,p_assignment_status_type_id    in     number   default hr_api.g_number
7567   ,p_change_reason                in     varchar2 default hr_api.g_varchar2
7568   ,p_effective_start_date            out nocopy date
7569   ,p_effective_end_date              out nocopy date
7570   );
7571 --
7572 -- ----------------------------------------------------------------------------
7573 -- |-----------------------------< activate_apl_asg >-------------------------|
7574 -- ----------------------------------------------------------------------------
7575 --
7576 -- {Start Of Comments}
7577 /*#
7578  * This API changes the status of an applicant assignment to a status of the
7579  * 'Active' type.
7580  *
7581  *
7582  * <p><b>Licensing</b><br>
7583  * This API is licensed for use with Human Resources.
7584  *
7585  * <p><b>Prerequisites</b><br>
7586  * The assignment must be an applicant assignment. The assignment must exist as
7587  * of the effective date of the change
7588  *
7589  * <p><b>Post Success</b><br>
7590  * The API updates the assignment.
7591  *
7592  * <p><b>Post Failure</b><br>
7593  * The API does not update the assignment and raises an error.
7594  * @param p_validate If true, then validation alone will be performed and the
7595  * database will remain unchanged. If false and all validation checks pass,
7596  * then the database will be modified.
7597  * @param p_effective_date Determines when the DateTrack operation comes into
7598  * force.
7599  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
7600  * updating the record. You must set to either UPDATE, CORRECTION,
7601  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
7602  * particular record depend on the dates of previous record changes and the
7603  * effective date of this change.
7604  * @param p_assignment_id Identifies the assignment record to be modified.
7605  * @param p_object_version_number Pass in the current version number of the
7606  * assignment to be updated. When the API completes if p_validate is false,
7607  * will be set to the new version number of the updated assignment. If
7608  * p_validate is true will be set to the same value which was passed in.
7609  * @param p_assignment_status_type_id The new assignment status must have a
7610  * system assignment status of ACTIVE_APL. If the assignment status is already
7611  * a type of ACTIVE_APL, this API can be used to set a different accepted
7612  * status. If no value is supplied, this API uses the default ACTIVE_APL status
7613  * for the business group in which this assignment exists.
7614  * @param p_change_reason Reason for the change in the assignment. Valid values
7615  * are defined in the APL_ASSIGN_REASON lookup type.
7616  * @param p_effective_start_date If p_validate is false, then set to the
7617  * earliest effective start date for the created assignment. If p_validate is
7618  * true, then set to null.
7619  * @param p_effective_end_date If p_validate is false, then set to the
7620  * effective end date for the created assignment. If p_validate is true, then
7621  * set to null.
7622  * @rep:displayname Activate Applicant Assignment
7623  * @rep:category BUSINESS_ENTITY PER_APPLICANT_ASG
7624  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
7625  * @rep:scope public
7626  * @rep:lifecycle active
7627  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
7628 */
7629 --
7630 -- {End Of Comments}
7631 --
7632 PROCEDURE activate_apl_asg
7633   (p_validate                     IN     BOOLEAN                                                    DEFAULT FALSE
7634   ,p_effective_date               IN     DATE
7635   ,p_datetrack_update_mode        IN     VARCHAR2
7636   ,p_assignment_id                IN     per_all_assignments_f.assignment_id%TYPE
7637   ,p_object_version_number        IN OUT NOCOPY per_all_assignments_f.object_version_number%TYPE
7638   ,p_assignment_status_type_id    IN     per_assignment_status_types.assignment_status_type_id%TYPE DEFAULT hr_api.g_number
7639   ,p_change_reason                IN     per_all_assignments_f.change_reason%TYPE                   DEFAULT hr_api.g_varchar2
7640   ,p_effective_start_date            OUT NOCOPY per_all_assignments_f.effective_start_date%TYPE
7641   ,p_effective_end_date              OUT NOCOPY per_all_assignments_f.effective_end_date%TYPE
7642   );
7643 --
7644 -- ----------------------------------------------------------------------------
7645 -- |----------------------------< terminate_apl_asg >-------------------------|
7646 -- ----------------------------------------------------------------------------
7647 --
7648 -- {Start Of Comments}
7649 /*#
7650  * This API ends an applicant assignment.
7651  *
7652  * A 'Terminate' status type is not explicitly stored against an applicant
7653  * assignment, this API will end date the assignment.
7654  *
7655  * <p><b>Licensing</b><br>
7656  * This API is licensed for use with Human Resources.
7657  *
7658  * <p><b>Prerequisites</b><br>
7659  * The assignment must be an applicant assignment. The assignment must exist as
7660  * of the effective date of the change
7661  *
7662  * <p><b>Post Success</b><br>
7663  * This API terminates the Applicant Assignment
7664  *
7665  * <p><b>Post Failure</b><br>
7666  * The API does not update the assignment and raises an error.
7667  * @param p_validate If true, then validation alone will be performed and the
7668  * database will remain unchanged. If false and all validation checks pass,
7669  * then the database will be modified.
7670  * @param p_effective_date Determines when the DateTrack operation comes into
7671  * force.
7672  * @param p_assignment_id Identifies the assignment record to be terminated.
7673  * @param p_assignment_status_type_id The new assignment status must have a
7674  * system assignment status of TERM_APL. If no value is supplied, this API uses
7675  * the default TERM_APL status for the business group in which this assignment
7676  * exists.
7677  * @param p_object_version_number Pass in the current version number of the
7678  * assignment to be updated. When the API completes if p_validate is false,
7679  * will be set to the new version number of the updated assignment. If
7680  * p_validate is true will be set to the same value which was passed in.
7681  * @param p_effective_start_date If p_validate is false, then set to the
7682  * effective start date for the terminated assignment. If p_validate is true,
7683  * then set to null.
7684  * @param p_effective_end_date If p_validate is false, then set to the
7685  * effective end date for the terminated assignment. If p_validate is true,
7686  * then set to null.
7687  * @rep:displayname Terminate Applicant Assignment
7688  * @rep:category BUSINESS_ENTITY PER_APPLICANT_ASG
7689  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
7690  * @rep:scope public
7691  * @rep:lifecycle active
7692  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
7693 */
7694 --
7695 -- {End Of Comments}
7696 --
7697 PROCEDURE terminate_apl_asg
7698   (p_validate                     IN     BOOLEAN                                          DEFAULT FALSE
7699   ,p_effective_date               IN     DATE
7700   ,p_assignment_id                IN     per_all_assignments_f.assignment_id%TYPE
7701   ,p_assignment_status_type_id    IN  per_all_assignments_f.assignment_status_type_id%TYPE DEFAULT NULL
7702   ,p_object_version_number        IN OUT NOCOPY per_all_assignments_f.object_version_number%TYPE
7703   ,p_effective_start_date            OUT NOCOPY per_all_assignments_f.effective_start_date%TYPE
7704   ,p_effective_end_date              OUT NOCOPY per_all_assignments_f.effective_end_date%TYPE
7705   );
7706 -- -----------------------------------------------------------------------------
7707 -- |-------------------------< terminate_apl_asg >-----------------------------|
7708 -- -----------------------------------------------------------------------------
7709 --
7710 -- {Start of Comments}
7711 --
7712 -- Description:
7713 --   This business process terminates an applicant assignment for a person. It
7714 --   will not allow termination of the assignment if it is the last applicant
7715 --   assignment for the person. In order to terminate the whole application use
7716 --   the terminate_applicant API.
7717 --
7718 -- Pre-requisites:
7719 --   None
7720 --
7721 -- In Parameters
7722 --   Name                           Reqd Type     Description
7723 --   p_validate                     No   boolean  If true, the database remains
7724 --                                                unchanged. If false a valid
7725 --                                                assignment is updated in the
7726 --                                                database.
7727 --   p_effective_date               Yes  date     Effective date of change of
7728 --                                                status.
7729 --   p_assignment_id                Yes  number   Assignment to be terminated.
7730 --   p_assignment_status_type_id    No   number   Required for IRC status maintenance
7731 --   p_object_version_number        Yes  number   Version number of the
7732 --                                                assignment record.
7733 --   p_change_reason                No   varchar2 Required for IRC status maintenance
7734 --
7735 -- Post Success
7736 --   The API updates the person and application and sets the following out
7737 --   parameters:
7738 --   Name                           Type     Description
7739 --   p_object_version_number        Number   If p_validate is false, set to the
7740 --                                           new version number of the
7741 --                                           assignment record. If p_validate is
7742 --                                           true, set to the value passed in.
7743 --   p_effective_start_date         Date     If p_validate is false, set to the
7744 --                                           effective start date of the updated
7745 --                                           assignment record. If p_validate is
7746 --                                           true, set to null.
7747 --   p_effective_end_date           Date     If p_validate is false, set to the
7748 --                                           effective end date of the updated
7749 --                                           assignment record. If p_validate is
7750 --                                           true, set to null.
7751 --
7752 -- Post Failure:
7753 --   The API does not update the assignment and raises an error.
7754 --
7755 -- Access Status:
7756 --   Public
7757 --
7758 -- {End of Comments}
7759 --
7760 PROCEDURE terminate_apl_asg
7761   (p_validate                     IN     BOOLEAN                                          DEFAULT FALSE
7762   ,p_effective_date               IN     DATE
7763   ,p_assignment_id                IN     per_all_assignments_f.assignment_id%TYPE
7764   ,p_assignment_status_type_id    IN  per_all_assignments_f.assignment_status_type_id%TYPE DEFAULT NULL
7765   ,p_change_reason                IN  per_all_assignments_f.change_reason%TYPE  -- 4066579
7766   ,p_object_version_number        IN OUT NOCOPY per_all_assignments_f.object_version_number%TYPE
7767   ,p_effective_start_date            OUT NOCOPY per_all_assignments_f.effective_start_date%TYPE
7768   ,p_effective_end_date              OUT NOCOPY per_all_assignments_f.effective_end_date%TYPE
7769   );
7770 --
7771 -- ----------------------------------------------------------------------------
7772 -- |---------------------------< set_new_primary_asg >------------------------|
7773 -- ----------------------------------------------------------------------------
7774 --
7775 -- {Start Of Comments}
7776 /*#
7777  * This API sets a chosen employee assignment as the primary assignment.
7778  *
7779  * The API also updates the previous primary assignment so that it becomes
7780  * secondary.
7781  *
7782  * <p><b>Licensing</b><br>
7783  * This API is licensed for use with Human Resources.
7784  *
7785  * <p><b>Prerequisites</b><br>
7786  * The assignment must exist as of the effective date of the change, must be an
7787  * employee assignment and must not be a primary assignment.
7788  *
7789  * <p><b>Post Success</b><br>
7790  * The speficied assignment is set as the primary assignment for the employee.
7791  *
7792  * <p><b>Post Failure</b><br>
7793  * The API does not update the primary employee assignment.
7794  * @param p_validate If true, then validation alone will be performed and the
7795  * database will remain unchanged. If false and all validation checks pass,
7796  * then the database will be modified.
7797  * @param p_effective_date Determines when the DateTrack operation comes into
7798  * force.
7799  * @param p_person_id Identifies the person record that owns the assignments to
7800  * update.
7801  * @param p_assignment_id Identifies the secondary assignment that is to become
7802  * the primary assignment.
7803  * @param p_object_version_number Pass in the current version number of the
7804  * assignment to be updated. When the API completes if p_validate is false,
7805  * will be set to the new version number of the updated assignment. If
7806  * p_validate is true will be set to the same value which was passed in.
7807  * @param p_effective_start_date If p_validate is false, then set to the
7808  * earliest effective start date for the created assignment. If p_validate is
7809  * true, then set to null.
7810  * @param p_effective_end_date If p_validate is false, then set to the
7811  * effective end date for the created assignment. If p_validate is true, then
7812  * set to null.
7813  * @rep:displayname Set New Primary Employee Assignment
7814  * @rep:category BUSINESS_ENTITY PER_EMPLOYEE_ASG
7815  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
7816  * @rep:scope public
7817  * @rep:lifecycle active
7818  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
7819 */
7820 --
7821 -- {End Of Comments}
7822 --
7823 PROCEDURE set_new_primary_asg
7824   (p_validate                    IN     BOOLEAN                                          DEFAULT FALSE
7825   ,p_effective_date              IN     DATE
7826   ,p_person_id                   IN     per_all_people_f.person_id%TYPE
7827   ,p_assignment_id               IN     per_all_assignments_f.assignment_id%TYPE
7828   ,p_object_version_number       IN OUT NOCOPY per_all_assignments_f.object_version_number%TYPE
7829   ,p_effective_start_date           OUT NOCOPY per_all_assignments_f.effective_start_date%TYPE
7830   ,p_effective_end_date             OUT NOCOPY per_all_assignments_f.effective_end_date%TYPE
7831   );
7832 --
7833 -- ----------------------------------------------------------------------------
7834 -- |-------------------------< set_new_primary_cwk_asg >----------------------|
7835 -- ----------------------------------------------------------------------------
7836 --
7837 -- {Start Of Comments}
7838 /*#
7839  * This API sets a chosen contingent worker assignment as the primary
7840  * assignment.
7841  *
7842  * The API also updates the previous primary assignment so that it becomes
7843  * secondary.
7844  *
7845  * <p><b>Licensing</b><br>
7846  * This API is licensed for use with Human Resources.
7847  *
7848  * <p><b>Prerequisites</b><br>
7849  * The assignment must exist as of the effective date of the change, must be a
7850  * contingent worker assignment and must not be a primary assignment.
7851  *
7852  * <p><b>Post Success</b><br>
7853  * The chosen assignment is set as the primary contingent worker assignment.
7854  *
7855  * <p><b>Post Failure</b><br>
7856  * The API does not update the primary contingent worker assignment.
7857  * @param p_validate If true, then validation alone will be performed and the
7858  * database will remain unchanged. If false and all validation checks pass,
7859  * then the database will be modified.
7860  * @param p_effective_date Determines when the DateTrack operation comes into
7861  * force.
7862  * @param p_person_id Identifies the person record that owns the assignments to
7863  * update.
7864  * @param p_assignment_id Identifies the assignment that is to become the
7865  * primary assignment.
7866  * @param p_object_version_number Pass in the current version number of the
7867  * assignment to be updated. When the API completes if p_validate is false,
7868  * will be set to the new version number of the updated assignment. If
7869  * p_validate is true will be set to the same value which was passed in.
7870  * @param p_effective_start_date If p_validate is false, then set to the
7871  * earliest effective start date for the created assignment. If p_validate is
7872  * true, then set to null.
7873  * @param p_effective_end_date If p_validate is false, then set to the
7874  * effective end date for the created assignment. If p_validate is true, then
7875  * set to null.
7876  * @rep:displayname Set New Primary Contingent Worker Assignment
7877  * @rep:category BUSINESS_ENTITY PER_CWK_ASG
7878  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
7879  * @rep:scope public
7880  * @rep:lifecycle active
7881  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
7882 */
7883 --
7884 -- {End Of Comments}
7885 --
7886 PROCEDURE set_new_primary_cwk_asg
7887   (p_validate                    IN     BOOLEAN                                          DEFAULT FALSE
7888   ,p_effective_date              IN     DATE
7889   ,p_person_id                   IN     per_all_people_f.person_id%TYPE
7890   ,p_assignment_id               IN     per_all_assignments_f.assignment_id%TYPE
7891   ,p_object_version_number       IN OUT NOCOPY per_all_assignments_f.object_version_number%TYPE
7892   ,p_effective_start_date           OUT NOCOPY per_all_assignments_f.effective_start_date%TYPE
7893   ,p_effective_end_date             OUT NOCOPY per_all_assignments_f.effective_end_date%TYPE
7894   );
7895 --
7896 -- ----------------------------------------------------------------------------
7897 -- |----------------------------< interview1_apl_asg >------------------------|
7898 -- ----------------------------------------------------------------------------
7899 --
7900 -- {Start Of Comments}
7901 /*#
7902  * This API changes the status of an applicant assignment to a status of the
7903  * 'First Interview' type.
7904  *
7905  * Obsolete letter requests may be deleted, and new letter requests may be
7906  * created if the assignment becomes eligible for those.
7907  *
7908  * <p><b>Licensing</b><br>
7909  * This API is licensed for use with Human Resources.
7910  *
7911  * <p><b>Prerequisites</b><br>
7912  * The assignment must be an applicant assignment. The assignment must exist as
7913  * of the effective date of the change.Also the assignment status must exist
7914  * with a system status of INTERVIEW1.
7915  *
7916  * <p><b>Post Success</b><br>
7917  * The API updates the assignment.
7918  *
7919  * <p><b>Post Failure</b><br>
7920  * The API does not update the assignment and raises an error.
7921  * @param p_validate If true, then validation alone will be performed and the
7922  * database will remain unchanged. If false and all validation checks pass,
7923  * then the database will be modified.
7924  * @param p_effective_date Determines when the DateTrack operation comes into
7925  * force.
7926  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
7927  * updating the record. You must set to either UPDATE, CORRECTION,
7928  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
7929  * particular record depend on the dates of previous record changes and the
7930  * effective date of this change.
7931  * @param p_assignment_id Identifies the assignment record to be modified.
7932  * @param p_object_version_number Pass in the current version number of the
7933  * assignment to be updated. When the API completes if p_validate is false,
7934  * will be set to the new version number of the updated assignment. If
7935  * p_validate is true will be set to the same value which was passed in.
7936  * @param p_assignment_status_type_id The new assignment status must have a
7937  * system assignment status of INTERVIEW1 If the assignment status is already a
7938  * type of INTERVIEW1, this API can be used to set a different First Interview
7939  * status. If no value is supplied, this API uses the default INTERVIEW1 status
7940  * for the business group in which this assignment exists.
7941  * @param p_change_reason Reason for the change in the assignment. Valid values
7942  * are defined in the APL_ASSIGN_REASON lookup type.
7943  * @param p_effective_start_date If p_validate is false, then set to the
7944  * earliest effective start date for the created assignment. If p_validate is
7945  * true, then set to null.
7946  * @param p_effective_end_date If p_validate is false, then set to the
7947  * effective end date for the created assignment. If p_validate is true, then
7948  * set to null.
7949  * @rep:displayname Interview1 Applicant Assignment
7950  * @rep:category BUSINESS_ENTITY PER_APPLICANT_ASG
7951  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
7952  * @rep:scope public
7953  * @rep:lifecycle active
7954  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
7955 */
7956 --
7957 -- {End Of Comments}
7958 --
7959 PROCEDURE interview1_apl_asg
7960   (p_validate                     IN     BOOLEAN    DEFAULT FALSE
7961   ,p_effective_date               IN     DATE
7962   ,p_datetrack_update_mode        IN     VARCHAR2
7963   ,p_assignment_id                IN     per_all_assignments_f.assignment_id%TYPE
7964   ,p_object_version_number        IN OUT NOCOPY per_all_assignments_f.object_version_number%TYPE
7965   ,p_assignment_status_type_id    IN     per_assignment_status_types.assignment_status_type_id%TYPE DEFAULT hr_api.g_number
7966   ,p_change_reason                IN     per_all_assignments_f.change_reason%TYPE                   DEFAULT hr_api.g_varchar2
7967   ,p_effective_start_date            OUT NOCOPY per_all_assignments_f.effective_start_date%TYPE
7968   ,p_effective_end_date              OUT NOCOPY per_all_assignments_f.effective_end_date%TYPE
7969   );
7970 --
7971 -- ----------------------------------------------------------------------------
7972 -- |----------------------------< interview2_apl_asg >------------------------|
7973 -- ----------------------------------------------------------------------------
7974 --
7975 -- {Start Of Comments}
7976 /*#
7977  * This API changes the status of an applicant assignment to a status of the
7978  * 'Second Interview' type.
7979  *
7980  * Obsolete letter requests may be deleted, and new letter requests may be
7981  * created if the assignment becomes eligible for those.
7982  *
7983  * <p><b>Licensing</b><br>
7984  * This API is licensed for use with Human Resources.
7985  *
7986  * <p><b>Prerequisites</b><br>
7987  * The assignment must be an applicant assignment. The assignment must exist on
7988  * the effective date of the change of status. Also the assignment status must
7989  * exist with a system status of INTERVIEW2.
7990  *
7991  * <p><b>Post Success</b><br>
7992  * The API updates the assignment.
7993  *
7994  * <p><b>Post Failure</b><br>
7995  * The API does not update the assignment and raises an error.
7996  * @param p_validate If true, then validation alone will be performed and the
7997  * database will remain unchanged. If false and all validation checks pass,
7998  * then the database will be modified.
7999  * @param p_effective_date Determines when the DateTrack operation comes into
8000  * force.
8001  * @param p_datetrack_update_mode Indicates which DateTrack mode to use when
8002  * updating the record. You must set to either UPDATE, CORRECTION,
8003  * UPDATE_OVERRIDE or UPDATE_CHANGE_INSERT. Modes available for use with a
8004  * particular record depend on the dates of previous record changes and the
8005  * effective date of this change.
8006  * @param p_assignment_id Identifies the assignment record to be modified.
8007  * @param p_object_version_number Pass in the current version number of the
8008  * assignment to be updated. When the API completes if p_validate is false,
8009  * will be set to the new version number of the updated assignment. If
8010  * p_validate is true will be set to the same value which was passed in.
8011  * @param p_assignment_status_type_id The new assignment status must have a
8012  * system assignment status of INTERVIEW2. If the assignment status is already
8013  * a type of INTERVIEW2, this API can be used to set a different Second
8014  * Interview status. If no value is supplied, this API uses the default
8015  * INTERVIEW2 status for the business group in which this assignment exists.
8016  * @param p_change_reason Reason for the change in the assignment. Valid values
8017  * are defined in the APL_ASSIGN_REASON lookup type.
8018  * @param p_effective_start_date If p_validate is false, then set to the
8019  * earliest effective start date for the created assignment. If p_validate is
8020  * true, then set to null.
8021  * @param p_effective_end_date If p_validate is false, then set to the
8022  * effective end date for the created assignment. If p_validate is true, then
8023  * set to null.
8024  * @rep:displayname Interview2 Applicant Assignment
8025  * @rep:category BUSINESS_ENTITY PER_APPLICANT_ASG
8026  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
8027  * @rep:scope public
8028  * @rep:lifecycle active
8029  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
8030 */
8031 --
8032 -- {End Of Comments}
8033 --
8034 PROCEDURE interview2_apl_asg
8035   (p_validate                     IN     BOOLEAN    DEFAULT FALSE
8036   ,p_effective_date               IN     DATE
8037   ,p_datetrack_update_mode        IN     VARCHAR2
8038   ,p_assignment_id                IN     per_all_assignments_f.assignment_id%TYPE
8039   ,p_object_version_number        IN OUT NOCOPY per_all_assignments_f.object_version_number%TYPE
8040   ,p_assignment_status_type_id    IN     per_assignment_status_types.assignment_status_type_id%TYPE DEFAULT hr_api.g_number
8041   ,p_change_reason                IN     per_all_assignments_f.change_reason%TYPE                   DEFAULT hr_api.g_varchar2
8042   ,p_effective_start_date            OUT NOCOPY per_all_assignments_f.effective_start_date%TYPE
8043   ,p_effective_end_date              OUT NOCOPY per_all_assignments_f.effective_end_date%TYPE
8044   );
8045 --
8046 --
8047 
8048 -- ----------------------------------------------------------------------------
8049 -- |----------------------------< reverse_term_apln>-------------------------|
8050 -- ----------------------------------------------------------------------------
8051 --
8052 -- {Start Of Comments}
8053 /*
8054 -- this procedure is specifically designed for the IRec team and can be used
8055 -- to reverse terminate an application
8056 
8057 
8058 -- @param p_effective_date date when the api has to perform validations.
8059 -- @param p_business_group_id  business group id of the person
8060 -- @param p_assignment_id assignment_id for which reverse termination should be processed
8061 -- @param p_person_id person id of the person for whom the reverse termination should be processed
8062 -- @param p_status_change_reason  the reason for reverse termination.
8063 */
8064 PROCEDURE reverse_term_apln
8065    ( p_effective_date IN date ,
8066      p_business_group_id IN number ,
8067      p_assignment_id IN number  ,
8068      p_person_id IN number ,
8069       p_status_change_reason   in  varchar2 default null,
8070       p_return_status out nocopy varchar2);
8071 
8072 --
8073 --
8074 -- ----------------------------------------------------------------------------
8075 -- |----------------------------< delete_assignment >-------------------------|
8076 -- ----------------------------------------------------------------------------
8077 --
8078 -- {Start Of Comments}
8079 /*#
8080  * This API deletes an Assignment of type Employee, Applicant and CWK in the
8081  * required Datetrack mode.
8082  *
8083  * If the deleted Assignment is a Primary Assignment, then if there is a single
8084  * eligible candidate Primary Assignment, API converts that candidate Assignment
8085  * to Primary and deletes the original Primary Assignment. If there are multiple
8086  * eligible candidate Assignments, then an error is raised and user need to do
8087  * the delete operation using Assignment Form.
8088  *
8089  * If there are any warning conditions, then the necessary boolean OUT parameter
8090  * designated to different warning conditions are set to true so that user can
8091  * review them and commit the Delete Assignment changes.
8092  *
8093  * <p><b>Licensing</b><br>
8094  * This API is licensed for use with Human Resources.
8095  *
8096  * <p><b>Prerequisites</b><br>
8097  * The Assignment details provided must be valid and available in the system.
8098  * Benefits type Assignments cannot be deleted using this Delete Assignment API.
8099  *
8100  * <p><b>Post Success</b><br>
8101  * Assignment record will be deleted in the specified Datetrack mode.
8102  *
8103  * <p><b>Post Failure</b><br>
8104  * The API does not update the Delete Assignment changes and raises an error.
8105  *
8106  * @param p_validate If true, then validation alone will be performed and the
8107  * database will remain unchanged. If false and all validation checks pass,
8108  * then the database will be modified.
8109  * @param p_effective_date Determines when the DateTrack operation comes into
8110  * force.
8111  * @param p_datetrack_mode Indicates which DateTrack mode to use when
8112  * deleting the record. You must set to either ZAP, DELETE_NEXT_CHANGE or
8113  * FUTURE_CHANGE. Modes available for use with a particular record depend on
8114  * the dates of previous record changes and the effective date of this change.
8115  * @param p_assignment_id Identifies the assignment record to be deleted.
8116  * @param p_object_version_number Pass in the current version number of the
8117  * assignment to be deleted. When the API completes if p_validate is false,
8118  * will be set to the new version number of the deleted assignment. If
8119  * p_validate is true will be set to the same value which was passed in.
8120  * @param p_effective_start_date If p_validate is false, then set to the
8121  * effective start date on the updated assignment row which now exists as of
8122  * the effective date. If p_validate is true, then set to null.
8123  * @param p_effective_end_date If p_validate is false, then set to the
8124  * effective end date on the updated assignment row which now exists as of the
8125  * effective date. If p_validate is true, then set to null.
8126  * @param p_loc_change_tax_issues If there is a change in the location due to
8127  * the specified Datetrack Delete operation, and if there is a corresponding
8128  * Federal Tax record that gets affected, then this parameter is set to true.
8129  * @param p_delete_asg_budgets If set to true, then corresponding Assignment
8130  * Budget values may have been deleted.
8131  * @param p_org_now_no_manager_warning If set to true, then the current
8132  * Datetrack delete operation resulted in no organization manager.
8133  * @param p_element_salary_warning If set to true, then Element Entries
8134  * including at least one Salary Entry have changed.
8135  * @param p_element_entries_warning If set to true, then this action has
8136  * affected Element Entries.
8137  * @param p_spp_warning If set to true, then this action has deleted any
8138  * future dated grade steps for this assignment.
8139  * @param p_cost_warning If set to true, then there are costing records
8140  * associated with this assignment which have not been adjusted in a similar
8141  * manner due to the presence of costing information in the future.
8142  * @param p_life_events_exists If set to true, then there are Life Events
8143  * created for this Assignment with status "Started".
8144  * @param p_cobra_coverage_elements If set to true, then COBRA Coverage
8145  * Enrollments are invalidated.
8146  * @param p_assgt_term_elements If set to true, then an assignment record with
8147  * TERM_ASSIGN status has been deleted. Elements have not been replaced.
8148  * @rep:displayname Delete Assignment
8149  * @rep:category BUSINESS_ENTITY PER_EMPLOYEE_ASG
8150  * @rep:category BUSINESS_ENTITY PER_APPLICANT_ASG
8151  * @rep:category BUSINESS_ENTITY PER_CWK_ASG
8152  * @rep:lifecycle active
8153  * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
8154  * @rep:scope public
8155  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
8156 */
8157 --
8158 -- {End Of Comments}
8159 --
8160 PROCEDURE delete_assignment
8161   (p_validate                     IN     boolean default false
8162   ,p_effective_date               IN     DATE
8163   ,p_datetrack_mode               IN     VARCHAR2
8164   ,p_assignment_id                IN     per_all_assignments_f.assignment_id%TYPE
8165   ,p_object_version_number        IN OUT NOCOPY per_all_assignments_f.object_version_number%TYPE
8166   ,p_effective_start_date            OUT NOCOPY per_all_assignments_f.effective_start_date%TYPE
8167   ,p_effective_end_date              OUT NOCOPY per_all_assignments_f.effective_end_date%TYPE
8168   ,p_loc_change_tax_issues           OUT NOCOPY boolean
8169   ,p_delete_asg_budgets              OUT NOCOPY boolean
8170   ,p_org_now_no_manager_warning      OUT NOCOPY boolean
8171   ,p_element_salary_warning          OUT NOCOPY boolean
8172   ,p_element_entries_warning         OUT NOCOPY boolean
8173   ,p_spp_warning                     OUT NOCOPY boolean
8174   ,P_cost_warning                    OUT NOCOPY Boolean
8175   ,p_life_events_exists   	     OUT NOCOPY Boolean
8176   ,p_cobra_coverage_elements         OUT NOCOPY Boolean
8177   ,p_assgt_term_elements             OUT NOCOPY Boolean);
8178 --
8179 end hr_assignment_api;