107: cer_attribute28,
108: cer_attribute29,
109: cer_attribute30,
110: object_version_number
111: from ben_prtn_eligy_rl_f
112: where prtn_eligy_rl_id = p_prtn_eligy_rl_id
113: and p_effective_date
114: between effective_start_date and effective_end_date;
115: --
180: l_parent_key_value1 number;
181: --
182: Cursor C_Sel1 Is
183: select t.prtn_elig_id
184: from ben_prtn_eligy_rl_f t
185: where t.prtn_eligy_rl_id = p_base_key_value
186: and p_effective_date
187: between t.effective_start_date and t.effective_end_date;
188: --
202: -- Call the corresponding datetrack api
203: --
204: dt_api.find_dt_del_modes
205: (p_effective_date => p_effective_date,
206: p_base_table_name => 'ben_prtn_eligy_rl_f',
207: p_base_key_column => 'prtn_eligy_rl_id',
208: p_base_key_value => p_base_key_value,
209: p_parent_table_name1 => 'ben_prtn_elig_f',
210: p_parent_key_column1 => 'prtn_elig_id',
236: -- Call the corresponding datetrack api
237: --
238: dt_api.find_dt_upd_modes
239: (p_effective_date => p_effective_date,
240: p_base_table_name => 'ben_prtn_eligy_rl_f',
241: p_base_key_column => 'prtn_eligy_rl_id',
242: p_base_key_value => p_base_key_value,
243: p_correction => p_correction,
244: p_update => p_update,
269: -- version number.
270: --
271: l_object_version_number :=
272: dt_api.get_object_version_number
273: (p_base_table_name => 'ben_prtn_eligy_rl_f',
274: p_base_key_column => 'prtn_eligy_rl_id',
275: p_base_key_value => p_base_key_value);
276: --
277: hr_utility.set_location(l_proc, 10);
279: --
280: -- Update the specified datetrack row setting the effective
281: -- end date to the specified new effective end date.
282: --
283: update ben_prtn_eligy_rl_f t
284: set t.effective_end_date = p_new_effective_end_date,
285: t.object_version_number = l_object_version_number
286: where t.prtn_eligy_rl_id = p_base_key_value
287: and p_effective_date
359: cer_attribute28,
360: cer_attribute29,
361: cer_attribute30,
362: object_version_number
363: from ben_prtn_eligy_rl_f
364: where prtn_eligy_rl_id = p_prtn_eligy_rl_id
365: and p_effective_date
366: between effective_start_date and effective_end_date
367: for update nowait;
418: --
419: dt_api.validate_dt_mode
420: (p_effective_date => p_effective_date,
421: p_datetrack_mode => p_datetrack_mode,
422: p_base_table_name => 'ben_prtn_eligy_rl_f',
423: p_base_key_column => 'prtn_eligy_rl_id',
424: p_base_key_value => p_prtn_eligy_rl_id,
425: p_parent_table_name1 => 'ben_prtn_elig_f',
426: p_parent_key_column1 => 'prtn_elig_id',
455: -- The object is locked therefore we need to supply a meaningful
456: -- error message.
457: --
458: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
459: hr_utility.set_message_token('TABLE_NAME', 'ben_prtn_eligy_rl_f');
460: hr_utility.raise_error;
461: When l_object_invalid then
462: --
463: -- The object doesn't exist or is invalid
462: --
463: -- The object doesn't exist or is invalid
464: --
465: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
466: hr_utility.set_message_token('TABLE_NAME', 'ben_prtn_eligy_rl_f');
467: hr_utility.raise_error;
468: End lck;
469: --
470: -- ----------------------------------------------------------------------------