65: --
66: Cursor C_Sel1 Is
67: select t.created_by,
68: t.creation_date
69: from ben_ler_chg_plip_enrt_f t
70: where t.ler_chg_plip_enrt_id = p_rec.ler_chg_plip_enrt_id
71: and t.effective_start_date =
72: ben_lpr_shd.g_old_rec.effective_start_date
73: and t.effective_end_date = (p_validation_start_date - 1);
72: ben_lpr_shd.g_old_rec.effective_start_date
73: and t.effective_end_date = (p_validation_start_date - 1);
74: --
75: l_proc varchar2(72) := g_package||'dt_insert_dml';
76: l_created_by ben_ler_chg_plip_enrt_f.created_by%TYPE;
77: l_creation_date ben_ler_chg_plip_enrt_f.creation_date%TYPE;
78: l_last_update_date ben_ler_chg_plip_enrt_f.last_update_date%TYPE;
79: l_last_updated_by ben_ler_chg_plip_enrt_f.last_updated_by%TYPE;
80: l_last_update_login ben_ler_chg_plip_enrt_f.last_update_login%TYPE;
73: and t.effective_end_date = (p_validation_start_date - 1);
74: --
75: l_proc varchar2(72) := g_package||'dt_insert_dml';
76: l_created_by ben_ler_chg_plip_enrt_f.created_by%TYPE;
77: l_creation_date ben_ler_chg_plip_enrt_f.creation_date%TYPE;
78: l_last_update_date ben_ler_chg_plip_enrt_f.last_update_date%TYPE;
79: l_last_updated_by ben_ler_chg_plip_enrt_f.last_updated_by%TYPE;
80: l_last_update_login ben_ler_chg_plip_enrt_f.last_update_login%TYPE;
81: --
74: --
75: l_proc varchar2(72) := g_package||'dt_insert_dml';
76: l_created_by ben_ler_chg_plip_enrt_f.created_by%TYPE;
77: l_creation_date ben_ler_chg_plip_enrt_f.creation_date%TYPE;
78: l_last_update_date ben_ler_chg_plip_enrt_f.last_update_date%TYPE;
79: l_last_updated_by ben_ler_chg_plip_enrt_f.last_updated_by%TYPE;
80: l_last_update_login ben_ler_chg_plip_enrt_f.last_update_login%TYPE;
81: --
82: Begin
75: l_proc varchar2(72) := g_package||'dt_insert_dml';
76: l_created_by ben_ler_chg_plip_enrt_f.created_by%TYPE;
77: l_creation_date ben_ler_chg_plip_enrt_f.creation_date%TYPE;
78: l_last_update_date ben_ler_chg_plip_enrt_f.last_update_date%TYPE;
79: l_last_updated_by ben_ler_chg_plip_enrt_f.last_updated_by%TYPE;
80: l_last_update_login ben_ler_chg_plip_enrt_f.last_update_login%TYPE;
81: --
82: Begin
83: hr_utility.set_location('Entering:'||l_proc, 5);
76: l_created_by ben_ler_chg_plip_enrt_f.created_by%TYPE;
77: l_creation_date ben_ler_chg_plip_enrt_f.creation_date%TYPE;
78: l_last_update_date ben_ler_chg_plip_enrt_f.last_update_date%TYPE;
79: l_last_updated_by ben_ler_chg_plip_enrt_f.last_updated_by%TYPE;
80: l_last_update_login ben_ler_chg_plip_enrt_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 :=
88: dt_api.get_object_version_number
89: (p_base_table_name => 'ben_ler_chg_plip_enrt_f',
90: p_base_key_column => 'ler_chg_plip_enrt_id',
91: p_base_key_value => p_rec.ler_chg_plip_enrt_id);
92: --
93: -- Set the effective start and end dates to the corresponding
127: End If;
128: --
129: ben_lpr_shd.g_api_dml := true; -- Set the api dml status
130: --
131: -- Insert the row into: ben_ler_chg_plip_enrt_f
132: --
133: insert into ben_ler_chg_plip_enrt_f
134: ( ler_chg_plip_enrt_id,
135: effective_start_date,
129: ben_lpr_shd.g_api_dml := true; -- Set the api dml status
130: --
131: -- Insert the row into: ben_ler_chg_plip_enrt_f
132: --
133: insert into ben_ler_chg_plip_enrt_f
134: ( ler_chg_plip_enrt_id,
135: effective_start_date,
136: effective_end_date,
137: business_group_id,
332: --
333: l_proc varchar2(72) := g_package||'pre_insert';
334: --
335: --
336: Cursor C_Sel1 is select ben_ler_chg_plip_enrt_f_s.nextval from sys.dual;
337: --
338: Begin
339: hr_utility.set_location('Entering:'||l_proc, 5);
340: --
455: --
456: when hr_api.cannot_find_prog_unit then
457: --
458: hr_api.cannot_find_prog_unit_error
459: (p_module_name => 'ben_ler_chg_plip_enrt_f'
460: ,p_hook_type => 'AI');
461: --
462: end;
463: --
523: --
524: dt_api.validate_dt_mode
525: (p_effective_date => p_effective_date,
526: p_datetrack_mode => p_datetrack_mode,
527: p_base_table_name => 'ben_ler_chg_plip_enrt_f',
528: p_base_key_column => 'ler_chg_plip_enrt_id',
529: p_base_key_value => p_rec.ler_chg_plip_enrt_id,
530: p_parent_table_name1 => 'ben_plip_f',
531: p_parent_key_column1 => 'plip_id',