1: Package Body pay_isb_shd as
2: /* $Header: pyisbrhi.pkb 115.3 2002/12/16 17:48:15 dsaxby ship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' pay_isb_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |---------------------------< constraint_error >---------------------------|
12: -- ----------------------------------------------------------------------------
80: --
81: l_fct_ret := false;
82: Else
83: If (p_social_benefit_id =
84: pay_isb_shd.g_old_rec.social_benefit_id and
85: p_object_version_number =
86: pay_isb_shd.g_old_rec.object_version_number
87: ) Then
88: --
82: Else
83: If (p_social_benefit_id =
84: pay_isb_shd.g_old_rec.social_benefit_id and
85: p_object_version_number =
86: pay_isb_shd.g_old_rec.object_version_number
87: ) Then
88: --
89: -- The g_old_rec is current therefore we must
90: -- set the returning function to true
94: --
95: -- Select the current row
96: --
97: Open C_Sel1;
98: Fetch C_Sel1 Into pay_isb_shd.g_old_rec;
99: If C_Sel1%notfound Then
100: Close C_Sel1;
101: --
102: -- The primary key is invalid therefore we must error
105: fnd_message.raise_error;
106: End If;
107: Close C_Sel1;
108: If (p_object_version_number
109: <> pay_isb_shd.g_old_rec.object_version_number) Then
110: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
111: fnd_message.raise_error;
112: End If;
113: l_fct_ret := true;
332: --
333: -- We must select and lock the current row.
334: --
335: Open C_Sel1;
336: Fetch C_Sel1 Into pay_isb_shd.g_old_rec;
337: If C_Sel1%notfound then
338: Close C_Sel1;
339: --
340: -- The primary key is invalid therefore we must error
343: fnd_message.raise_error;
344: End If;
345: Close C_Sel1;
346: If (p_object_version_number
347: <> pay_isb_shd.g_old_rec.object_version_number) Then
348: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
349: fnd_message.raise_error;
350: End If;
351: --
360: ,p_base_key_column => 'social_benefit_id'
361: ,p_base_key_value => p_social_benefit_id
362: ,p_parent_table_name1 => 'per_all_assignments_f'
363: ,p_parent_key_column1 => 'assignment_id'
364: ,p_parent_key_value1 => pay_isb_shd.g_old_rec.assignment_id
365: ,p_enforce_foreign_locking => true
366: ,p_validation_start_date => l_validation_start_date
367: ,p_validation_end_date => l_validation_end_date
368: );
451: Return(l_rec);
452: --
453: End convert_args;
454: --
455: end pay_isb_shd;