32: --
33: Begin
34: hr_utility.set_location('Entering:'||l_proc, 5);
35: --
36: If (p_constraint_name = 'BEN_POPL_ORG_ROLE_F_FK1') Then
37: fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
38: fnd_message.set_token('PROCEDURE', l_proc);
39: fnd_message.set_token('STEP','5');
40: fnd_message.raise_error;
37: fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
38: fnd_message.set_token('PROCEDURE', l_proc);
39: fnd_message.set_token('STEP','5');
40: fnd_message.raise_error;
41: ElsIf (p_constraint_name = 'BEN_POPL_ORG_ROLE_F_PK') Then
42: fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
43: fnd_message.set_token('PROCEDURE', l_proc);
44: fnd_message.set_token('STEP','10');
45: fnd_message.raise_error;
105: cpr_attribute28,
106: cpr_attribute29,
107: cpr_attribute30,
108: object_version_number
109: from ben_popl_org_role_f
110: where popl_org_role_id = p_popl_org_role_id
111: and p_effective_date
112: between effective_start_date and effective_end_date;
113: --
185: -- Call the corresponding datetrack api
186: --
187: dt_api.find_dt_del_modes
188: (p_effective_date => p_effective_date,
189: p_base_table_name => 'ben_popl_org_role_f',
190: p_base_key_column => 'popl_org_role_id',
191: p_base_key_value => p_base_key_value,
192: p_zap => p_zap,
193: p_delete => p_delete,
216: -- Call the corresponding datetrack api
217: --
218: dt_api.find_dt_upd_modes
219: (p_effective_date => p_effective_date,
220: p_base_table_name => 'ben_popl_org_role_f',
221: p_base_key_column => 'popl_org_role_id',
222: p_base_key_value => p_base_key_value,
223: p_correction => p_correction,
224: p_update => p_update,
249: -- version number.
250: --
251: l_object_version_number :=
252: dt_api.get_object_version_number
253: (p_base_table_name => 'ben_popl_org_role_f',
254: p_base_key_column => 'popl_org_role_id',
255: p_base_key_value => p_base_key_value);
256: --
257: hr_utility.set_location(l_proc, 10);
259: --
260: -- Update the specified datetrack row setting the effective
261: -- end date to the specified new effective end date.
262: --
263: update ben_popl_org_role_f t
264: set t.effective_end_date = p_new_effective_end_date,
265: t.object_version_number = l_object_version_number
266: where t.popl_org_role_id = p_base_key_value
267: and p_effective_date
337: cpr_attribute28,
338: cpr_attribute29,
339: cpr_attribute30,
340: object_version_number
341: from ben_popl_org_role_f
342: where popl_org_role_id = p_popl_org_role_id
343: and p_effective_date
344: between effective_start_date and effective_end_date
345: for update nowait;
396: --
397: dt_api.validate_dt_mode
398: (p_effective_date => p_effective_date,
399: p_datetrack_mode => p_datetrack_mode,
400: p_base_table_name => 'ben_popl_org_role_f',
401: p_base_key_column => 'popl_org_role_id',
402: p_base_key_value => p_popl_org_role_id,
403: p_enforce_foreign_locking => true,
404: p_validation_start_date => l_validation_start_date,
430: -- The object is locked therefore we need to supply a meaningful
431: -- error message.
432: --
433: fnd_message.set_name('PAY', 'HR_7165_OBJECT_LOCKED');
434: fnd_message.set_token('TABLE_NAME', 'ben_popl_org_role_f');
435: fnd_message.raise_error;
436: When l_object_invalid then
437: --
438: -- The object doesn't exist or is invalid
437: --
438: -- The object doesn't exist or is invalid
439: --
440: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
441: fnd_message.set_token('TABLE_NAME', 'ben_popl_org_role_f');
442: fnd_message.raise_error;
443: End lck;
444: --
445: -- ----------------------------------------------------------------------------