79: l_last_updated_by ben_popl_org_f.last_updated_by%TYPE;
80: l_last_update_login ben_popl_org_f.last_update_login%TYPE;
81: --
82: Begin
83: hr_utility.set_location('Entering:'||l_proc, 5);
84: --
85: -- Get the object version number for the insert
86: --
87: p_rec.object_version_number :=
99: -- If the datetrack_mode is not INSERT then we must populate the WHO
100: -- columns with the 'old' creation values and 'new' updated values.
101: --
102: If (p_datetrack_mode <> 'INSERT') then
103: hr_utility.set_location(l_proc, 10);
104: --
105: -- Select the 'old' created values
106: --
107: Open C_Sel1;
111: -- The previous 'old' created row has not been found. We need
112: -- to error as an internal datetrack problem exists.
113: --
114: Close C_Sel1;
115: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
116: hr_utility.set_message_token('PROCEDURE', l_proc);
117: hr_utility.set_message_token('STEP','10');
118: hr_utility.raise_error;
119: End If;
112: -- to error as an internal datetrack problem exists.
113: --
114: Close C_Sel1;
115: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
116: hr_utility.set_message_token('PROCEDURE', l_proc);
117: hr_utility.set_message_token('STEP','10');
118: hr_utility.raise_error;
119: End If;
120: Close C_Sel1;
113: --
114: Close C_Sel1;
115: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
116: hr_utility.set_message_token('PROCEDURE', l_proc);
117: hr_utility.set_message_token('STEP','10');
118: hr_utility.raise_error;
119: End If;
120: Close C_Sel1;
121: --
114: Close C_Sel1;
115: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
116: hr_utility.set_message_token('PROCEDURE', l_proc);
117: hr_utility.set_message_token('STEP','10');
118: hr_utility.raise_error;
119: End If;
120: Close C_Sel1;
121: --
122: -- Set the AOL updated WHO values
229: l_last_update_login
230: );
231: --
232: ben_cpo_shd.g_api_dml := false; -- Unset the api dml status
233: hr_utility.set_location(' Leaving:'||l_proc, 15);
234: --
235: Exception
236: When hr_api.check_integrity_violated Then
237: -- A check constraint has been violated
260: --
261: l_proc varchar2(72) := g_package||'insert_dml';
262: --
263: Begin
264: hr_utility.set_location('Entering:'||l_proc, 5);
265: --
266: dt_insert_dml(p_rec => p_rec,
267: p_effective_date => p_effective_date,
268: p_datetrack_mode => p_datetrack_mode,
268: p_datetrack_mode => p_datetrack_mode,
269: p_validation_start_date => p_validation_start_date,
270: p_validation_end_date => p_validation_end_date);
271: --
272: hr_utility.set_location(' Leaving:'||l_proc, 10);
273: End insert_dml;
274: --
275: -- ----------------------------------------------------------------------------
276: -- |------------------------------< pre_insert >------------------------------|
322: --
323: Cursor C_Sel1 is select ben_popl_org_f_s.nextval from sys.dual;
324: --
325: Begin
326: hr_utility.set_location('Entering:'||l_proc, 5);
327: --
328: --
329: -- Select the next sequence number
330: --
331: Open C_Sel1;
332: Fetch C_Sel1 Into p_rec.popl_org_id;
333: Close C_Sel1;
334: --
335: hr_utility.set_location(' Leaving:'||l_proc, 10);
336: End pre_insert;
337: --
338: -- ----------------------------------------------------------------------------
339: -- |-----------------------------< post_insert >------------------------------|
376: --
377: l_proc varchar2(72) := g_package||'post_insert';
378: --
379: Begin
380: hr_utility.set_location('Entering:'||l_proc, 5);
381: --
382: -- Start of API User Hook for post_insert.
383: --
384: begin
443: end;
444: --
445: -- End of API User Hook for post_insert.
446: --
447: hr_utility.set_location(' Leaving:'||l_proc, 10);
448: End post_insert;
449: --
450: -- ----------------------------------------------------------------------------
451: -- |-------------------------------< ins_lck >--------------------------------|
495: l_validation_start_date date;
496: l_validation_end_date date;
497: --
498: Begin
499: hr_utility.set_location('Entering:'||l_proc, 5);
500: --
501: -- Validate the datetrack mode mode getting the validation start
502: -- and end dates for the specified datetrack operation.
503: --
521: --
522: p_validation_start_date := l_validation_start_date;
523: p_validation_end_date := l_validation_end_date;
524: --
525: hr_utility.set_location(' Leaving:'||l_proc, 10);
526: --
527: End ins_lck;
528: --
529: -- ----------------------------------------------------------------------------
540: l_validation_start_date date;
541: l_validation_end_date date;
542: --
543: Begin
544: hr_utility.set_location('Entering:'||l_proc, 5);
545: --
546: -- Call the lock operation
547: --
548: ins_lck
642: l_rec ben_cpo_shd.g_rec_type;
643: l_proc varchar2(72) := g_package||'ins';
644: --
645: Begin
646: hr_utility.set_location('Entering:'||l_proc, 5);
647: --
648: -- Call conversion function to turn arguments into the
649: -- p_rec structure.
650: --
708: p_effective_end_date := l_rec.effective_end_date;
709: p_object_version_number := l_rec.object_version_number;
710: --
711: --
712: hr_utility.set_location(' Leaving:'||l_proc, 10);
713: End ins;
714: --
715: end ben_cpo_ins;