1: Package Body per_dis_shd as
2: /* $Header: pedisrhi.pkb 115.8 2002/12/04 18:57:24 pkakar noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' per_dis_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |---------------------------< constraint_error >---------------------------|
12: -- ----------------------------------------------------------------------------
153: --
154: l_fct_ret := false;
155: Else
156: If (p_disability_id =
157: per_dis_shd.g_old_rec.disability_id and
158: p_object_version_number =
159: per_dis_shd.g_old_rec.object_version_number) Then
160: --
161: -- The g_old_rec is current therefore we must
155: Else
156: If (p_disability_id =
157: per_dis_shd.g_old_rec.disability_id and
158: p_object_version_number =
159: per_dis_shd.g_old_rec.object_version_number) Then
160: --
161: -- The g_old_rec is current therefore we must
162: -- set the returning function to true
163: --
166: --
167: -- Select the current row
168: --
169: Open C_Sel1;
170: Fetch C_Sel1 Into per_dis_shd.g_old_rec;
171: If C_Sel1%notfound Then
172: Close C_Sel1;
173: --
174: -- The primary key is invalid therefore we must error
177: fnd_message.raise_error;
178: End If;
179: Close C_Sel1;
180: If (p_object_version_number
181: <> per_dis_shd.g_old_rec.object_version_number) Then
182: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
183: fnd_message.raise_error;
184: End If;
185: l_fct_ret := true;
467: --
468: -- We must select and lock the current row.
469: --
470: Open C_Sel1;
471: Fetch C_Sel1 Into per_dis_shd.g_old_rec;
472: If C_Sel1%notfound then
473: Close C_Sel1;
474: --
475: -- The primary key is invalid therefore we must error
478: fnd_message.raise_error;
479: End If;
480: Close C_Sel1;
481: If (p_object_version_number
482: <> per_dis_shd.g_old_rec.object_version_number) Then
483: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
484: fnd_message.raise_error;
485: End If;
486: --
495: ,p_base_key_column => 'disability_id'
496: ,p_base_key_value => p_disability_id
497: ,p_parent_table_name1 => 'per_all_people_f'
498: ,p_parent_key_column1 => 'person_id'
499: ,p_parent_key_value1 => per_dis_shd.g_old_rec.person_id
500: ,p_enforce_foreign_locking => true
501: ,p_validation_start_date => l_validation_start_date
502: ,p_validation_end_date => l_validation_end_date
503: );
712: Return(l_rec);
713: --
714: End convert_args;
715: --
716: end per_dis_shd;