1: Package Body pqh_sts_shd as
2: /* $Header: pqstsrhi.pkb 120.0 2005/05/29 02:43 appldev noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' pqh_sts_shd.'; -- Global package name
9: g_debug boolean := hr_utility.debug_enabled;
10: --
11: -- ----------------------------------------------------------------------------
12: -- |---------------------------< constraint_error >---------------------------|
97: --
98: l_fct_ret := false;
99: Else
100: If (p_statutory_situation_id
101: = pqh_sts_shd.g_old_rec.statutory_situation_id and
102: p_object_version_number
103: = pqh_sts_shd.g_old_rec.object_version_number
104: ) Then
105: --
99: Else
100: If (p_statutory_situation_id
101: = pqh_sts_shd.g_old_rec.statutory_situation_id and
102: p_object_version_number
103: = pqh_sts_shd.g_old_rec.object_version_number
104: ) Then
105: --
106: -- The g_old_rec is current therefore we must
107: -- set the returning function to true
111: --
112: -- Select the current row into g_old_rec
113: --
114: Open C_Sel1;
115: Fetch C_Sel1 Into pqh_sts_shd.g_old_rec;
116: If C_Sel1%notfound Then
117: Close C_Sel1;
118: --
119: -- The primary key is invalid therefore we must error
122: fnd_message.raise_error;
123: End If;
124: Close C_Sel1;
125: If (p_object_version_number
126: <> pqh_sts_shd.g_old_rec.object_version_number) Then
127: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
128: fnd_message.raise_error;
129: End If;
130: l_fct_ret := true;
212: ,p_argument_value => p_object_version_number
213: );
214: --
215: Open C_Sel1;
216: Fetch C_Sel1 Into pqh_sts_shd.g_old_rec;
217: If C_Sel1%notfound then
218: Close C_Sel1;
219: --
220: -- The primary key is invalid therefore we must error
223: fnd_message.raise_error;
224: End If;
225: Close C_Sel1;
226: If (p_object_version_number
227: <> pqh_sts_shd.g_old_rec.object_version_number) Then
228: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
229: fnd_message.raise_error;
230: End If;
231: --
333: Return(l_rec);
334: --
335: End convert_args;
336: --
337: end pqh_sts_shd;