1: Package Body pay_prf_shd as
2: /* $Header: pyprfrhi.pkb 120.0 2005/05/29 07:49:05 appldev noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' pay_prf_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |---------------------------< constraint_error >---------------------------|
12: -- ----------------------------------------------------------------------------
156: --
157: l_fct_ret := false;
158: Else
159: If (p_range_table_id
160: = pay_prf_shd.g_old_rec.range_table_id and
161: p_object_version_number
162: = pay_prf_shd.g_old_rec.object_version_number
163: ) Then
164: --
158: Else
159: If (p_range_table_id
160: = pay_prf_shd.g_old_rec.range_table_id and
161: p_object_version_number
162: = pay_prf_shd.g_old_rec.object_version_number
163: ) Then
164: --
165: -- The g_old_rec is current therefore we must
166: -- set the returning function to true
170: --
171: -- Select the current row into g_old_rec
172: --
173: Open C_Sel1;
174: Fetch C_Sel1 Into pay_prf_shd.g_old_rec;
175: If C_Sel1%notfound Then
176: Close C_Sel1;
177: --
178: -- The primary key is invalid therefore we must error
181: fnd_message.raise_error;
182: End If;
183: Close C_Sel1;
184: If (p_object_version_number
185: <> pay_prf_shd.g_old_rec.object_version_number) Then
186: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
187: fnd_message.raise_error;
188: End If;
189: l_fct_ret := true;
300: ,p_argument_value => p_object_version_number
301: );
302: --
303: Open C_Sel1;
304: Fetch C_Sel1 Into pay_prf_shd.g_old_rec;
305: If C_Sel1%notfound then
306: Close C_Sel1;
307: --
308: -- The primary key is invalid therefore we must error
311: fnd_message.raise_error;
312: End If;
313: Close C_Sel1;
314: If (p_object_version_number
315: <> pay_prf_shd.g_old_rec.object_version_number) Then
316: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
317: fnd_message.raise_error;
318: End If;
319: --
499: Return(l_rec);
500: --
501: End convert_args;
502: --
503: end pay_prf_shd;