79: l_last_updated_by pay_us_emp_fed_tax_rules_f.last_updated_by%TYPE;
80: l_last_update_login pay_us_emp_fed_tax_rules_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
318: p_rec.fed_information29,
319: p_rec.fed_information30 );
320: --
321: pay_fed_shd.g_api_dml := false; -- Unset the api dml status
322: hr_utility.set_location(' Leaving:'||l_proc, 15);
323: --
324: Exception
325: When hr_api.check_integrity_violated Then
326: -- A check constraint has been violated
349: --
350: l_proc varchar2(72) := g_package||'insert_dml';
351: --
352: Begin
353: hr_utility.set_location('Entering:'||l_proc, 5);
354: --
355: dt_insert_dml(p_rec => p_rec,
356: p_effective_date => p_effective_date,
357: p_datetrack_mode => p_datetrack_mode,
357: p_datetrack_mode => p_datetrack_mode,
358: p_validation_start_date => p_validation_start_date,
359: p_validation_end_date => p_validation_end_date);
360: --
361: hr_utility.set_location(' Leaving:'||l_proc, 10);
362: End insert_dml;
363: --
364: -- ----------------------------------------------------------------------------
365: -- |------------------------------< pre_insert >------------------------------|
411: --
412: Cursor C_Sel1 is select pay_us_emp_fed_tax_rules_s.nextval from sys.dual;
413: --
414: Begin
415: hr_utility.set_location('Entering:'||l_proc, 5);
416: --
417: --
418: -- Select the next sequence number
419: --
421: Fetch C_Sel1 Into p_rec.emp_fed_tax_rule_id;
422: Close C_Sel1;
423: --
424: --
425: hr_utility.set_location(' Leaving:'||l_proc, 10);
426: End pre_insert;
427: --
428: -- ----------------------------------------------------------------------------
429: -- |-----------------------------< post_insert >------------------------------|
466: --
467: l_proc varchar2(72) := g_package||'post_insert';
468: --
469: Begin
470: hr_utility.set_location('Entering:'||l_proc, 5);
471: --
472: --
473: -- Start of API User Hook for post_insert.
474: --
521: --
522: -- End of API User Hook for post_insert.
523: --
524: --
525: hr_utility.set_location(' Leaving:'||l_proc, 10);
526: End post_insert;
527: --
528: -- ----------------------------------------------------------------------------
529: -- |-------------------------------< ins_lck >--------------------------------|
573: l_validation_start_date date;
574: l_validation_end_date date;
575: --
576: Begin
577: hr_utility.set_location('Entering:'||l_proc, 5);
578: --
579: -- Validate the datetrack mode mode getting the validation start
580: -- and end dates for the specified datetrack operation.
581: --
596: --
597: p_validation_start_date := l_validation_start_date;
598: p_validation_end_date := l_validation_end_date;
599: --
600: hr_utility.set_location(' Leaving:'||l_proc, 10);
601: --
602: End ins_lck;
603: --
604: -- ----------------------------------------------------------------------------
615: l_validation_start_date date;
616: l_validation_end_date date;
617: --
618: Begin
619: hr_utility.set_location('Entering:'||l_proc, 5);
620: --
621: -- Call the lock operation
622: --
623: ins_lck
762: l_rec pay_fed_shd.g_rec_type;
763: l_proc varchar2(72) := g_package||'ins';
764: --
765: Begin
766: hr_utility.set_location('Entering:'||l_proc, 5);
767: --
768: -- Call conversion function to turn arguments into the
769: -- p_rec structure.
770: --
873: p_effective_end_date := l_rec.effective_end_date;
874: p_object_version_number := l_rec.object_version_number;
875: --
876: --
877: hr_utility.set_location(' Leaving:'||l_proc, 10);
878: End ins;
879: --
880: end pay_fed_ins;