79: l_last_updated_by pay_us_emp_county_tax_rules_f.last_updated_by%TYPE;
80: l_last_update_login pay_us_emp_county_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
310: p_rec.cnt_information30
311: );
312: --
313: pay_cnt_shd.g_api_dml := false; -- Unset the api dml status
314: hr_utility.set_location(' Leaving:'||l_proc, 15);
315: --
316: Exception
317: When hr_api.check_integrity_violated Then
318: -- A check constraint has been violated
341: --
342: l_proc varchar2(72) := g_package||'insert_dml';
343: --
344: Begin
345: hr_utility.set_location('Entering:'||l_proc, 5);
346: --
347: dt_insert_dml(p_rec => p_rec,
348: p_effective_date => p_effective_date,
349: p_datetrack_mode => p_datetrack_mode,
349: p_datetrack_mode => p_datetrack_mode,
350: p_validation_start_date => p_validation_start_date,
351: p_validation_end_date => p_validation_end_date);
352: --
353: hr_utility.set_location(' Leaving:'||l_proc, 10);
354: End insert_dml;
355: --
356: -- ----------------------------------------------------------------------------
357: -- |------------------------------< pre_insert >------------------------------|
403: --
404: Cursor C_Sel1 is select pay_us_emp_county_tax_rules_s.nextval from sys.dual;
405: --
406: Begin
407: hr_utility.set_location('Entering:'||l_proc, 5);
408: --
409: --
410: -- Select the next sequence number
411: --
413: Fetch C_Sel1 Into p_rec.emp_county_tax_rule_id;
414: Close C_Sel1;
415: --
416: --
417: hr_utility.set_location(' Leaving:'||l_proc, 10);
418: End pre_insert;
419: --
420: -- ----------------------------------------------------------------------------
421: -- |-----------------------------< post_insert >------------------------------|
458: --
459: l_proc varchar2(72) := g_package||'post_insert';
460: --
461: Begin
462: hr_utility.set_location('Entering:'||l_proc, 5);
463: --
464: --
465: -- Start of API User Hook for post_insert.
466: --
508: --
509: -- End of API User Hook for post_insert.
510: --
511: --
512: hr_utility.set_location(' Leaving:'||l_proc, 10);
513: End post_insert;
514: --
515: -- ----------------------------------------------------------------------------
516: -- |-------------------------------< ins_lck >--------------------------------|
560: l_validation_start_date date;
561: l_validation_end_date date;
562: --
563: Begin
564: hr_utility.set_location('Entering:'||l_proc, 5);
565: --
566: -- Validate the datetrack mode mode getting the validation start
567: -- and end dates for the specified datetrack operation.
568: --
583: --
584: p_validation_start_date := l_validation_start_date;
585: p_validation_end_date := l_validation_end_date;
586: --
587: hr_utility.set_location(' Leaving:'||l_proc, 10);
588: --
589: End ins_lck;
590: --
591: -- ----------------------------------------------------------------------------
602: l_validation_start_date date;
603: l_validation_end_date date;
604: --
605: Begin
606: hr_utility.set_location('Entering:'||l_proc, 5);
607: --
608: -- Call the lock operation
609: --
610: ins_lck
744: l_rec pay_cnt_shd.g_rec_type;
745: l_proc varchar2(72) := g_package||'ins';
746: --
747: Begin
748: hr_utility.set_location('Entering:'||l_proc, 5);
749: --
750: -- Call conversion function to turn arguments into the
751: -- p_rec structure.
752: --
850: p_effective_end_date := l_rec.effective_end_date;
851: p_object_version_number := l_rec.object_version_number;
852: --
853: --
854: hr_utility.set_location(' Leaving:'||l_proc, 10);
855: End ins;
856: --
857: end pay_cnt_ins;