125: --
126: -- If the datetrack_mode is not INSERT then we must populate the WHO
127: -- columns with the 'old' creation values and 'new' updated values.
128: --
129: If (p_datetrack_mode <> hr_api.g_insert) then
130: hr_utility.set_location(l_proc, 10);
131: --
132: -- Get the object version number for the insert
133: --
226: --
227: hr_utility.set_location(' Leaving:'||l_proc, 15);
228: --
229: Exception
230: When hr_api.check_integrity_violated Then
231: -- A check constraint has been violated
232: --
233: ame_act_shd.constraint_error
234: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
230: When hr_api.check_integrity_violated Then
231: -- A check constraint has been violated
232: --
233: ame_act_shd.constraint_error
234: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
235: When hr_api.unique_integrity_violated Then
236: -- Unique integrity has been violated
237: --
238: ame_act_shd.constraint_error
231: -- A check constraint has been violated
232: --
233: ame_act_shd.constraint_error
234: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
235: When hr_api.unique_integrity_violated Then
236: -- Unique integrity has been violated
237: --
238: ame_act_shd.constraint_error
239: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
235: When hr_api.unique_integrity_violated Then
236: -- Unique integrity has been violated
237: --
238: ame_act_shd.constraint_error
239: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
240: When Others Then
241: --
242: Raise;
243: End dt_insert_dml;
451: );
452: --
453: exception
454: --
455: when hr_api.cannot_find_prog_unit then
456: --
457: hr_api.cannot_find_prog_unit_error
458: (p_module_name => 'AME_ACTIONS'
459: ,p_hook_type => 'AI');
453: exception
454: --
455: when hr_api.cannot_find_prog_unit then
456: --
457: hr_api.cannot_find_prog_unit_error
458: (p_module_name => 'AME_ACTIONS'
459: ,p_hook_type => 'AI');
460: --
461: end;
486: --
487: -- Post Failure:
488: -- The Lck process can fail for:
489: -- 1) When attempting to lock the row the row could already be locked by
490: -- another user. This will raise the HR_Api.Object_Locked exception.
491: -- 2) When attempting to the lock the parent which doesn't exist.
492: -- For the entity to be locked the parent must exist!
493: --
494: -- Developer Implementation Notes:
550: ,p_rec in out nocopy ame_act_shd.g_rec_type
551: ) is
552: --
553: l_proc varchar2(72) := g_package||'ins';
554: l_datetrack_mode varchar2(30) := hr_api.g_insert;
555: l_validation_start_date date;
556: l_validation_end_date date;
557: --
558: Begin