1: Package Body hxc_hav_shd as
2: /* $Header: hxchavrhi.pkb 120.2 2005/09/23 10:41:41 sechandr noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' hxc_hav_shd.'; -- Global package name
9: g_debug boolean:=hr_utility.debug_enabled;
10: --
11: -- ----------------------------------------------------------------------------
12: -- |---------------------------< constraint_error >---------------------------|
114: --
115: l_fct_ret := false;
116: Else
117: If (p_alias_value_id
118: = hxc_hav_shd.g_old_rec.alias_value_id and
119: p_object_version_number
120: = hxc_hav_shd.g_old_rec.object_version_number
121: ) Then
122: --
116: Else
117: If (p_alias_value_id
118: = hxc_hav_shd.g_old_rec.alias_value_id and
119: p_object_version_number
120: = hxc_hav_shd.g_old_rec.object_version_number
121: ) Then
122: --
123: -- The g_old_rec is current therefore we must
124: -- set the returning function to true
128: --
129: -- Select the current row into g_old_rec
130: --
131: Open C_Sel1;
132: Fetch C_Sel1 Into hxc_hav_shd.g_old_rec;
133: If C_Sel1%notfound Then
134: Close C_Sel1;
135: --
136: -- The primary key is invalid therefore we must error
139: fnd_message.raise_error;
140: End If;
141: Close C_Sel1;
142: If (p_object_version_number
143: <> hxc_hav_shd.g_old_rec.object_version_number) Then
144: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
145: fnd_message.raise_error;
146: End If;
147: l_fct_ret := true;
223: ,p_argument_value => p_alias_value_id
224: );
225: --
226: Open C_Sel1;
227: Fetch C_Sel1 Into hxc_hav_shd.g_old_rec;
228: If C_Sel1%notfound then
229: Close C_Sel1;
230: --
231: -- The primary key is invalid therefore we must error
234: fnd_message.raise_error;
235: End If;
236: Close C_Sel1;
237: If (p_object_version_number
238: <> hxc_hav_shd.g_old_rec.object_version_number) Then
239: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
240: fnd_message.raise_error;
241: End If;
242: --
352: Return(l_rec);
353: --
354: End convert_args;
355: --
356: end hxc_hav_shd;