1: Package Body per_vac_shd as
2: /* $Header: pevacrhi.pkb 120.2 2010/12/24 11:51:11 avarri ship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' per_vac_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |------------------------< return_api_dml_status >-------------------------|
12: -- ----------------------------------------------------------------------------
164: --
165: l_fct_ret := false;
166: Else
167: if (p_vacancy_id
168: = per_vac_shd.g_old_rec.vacancy_id and
169: p_object_version_number
170: = per_vac_shd.g_old_rec.object_version_number
171: ) then
172: --
166: Else
167: if (p_vacancy_id
168: = per_vac_shd.g_old_rec.vacancy_id and
169: p_object_version_number
170: = per_vac_shd.g_old_rec.object_version_number
171: ) then
172: --
173: -- The g_old_rec is current therefore we must
174: -- set the returning function to true
178: --
179: -- Select the current row into g_old_rec
180: --
181: Open C_Sel1;
182: Fetch C_Sel1 Into per_vac_shd.g_old_rec;
183: if C_Sel1%notfound then
184: Close C_Sel1;
185: --
186: -- The primary key is invalid therefore we must error
189: fnd_message.raise_error;
190: end if;
191: Close C_Sel1;
192: if (p_object_version_number
193: <> per_vac_shd.g_old_rec.object_version_number) then
194: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
195: fnd_message.raise_error;
196: end if;
197: l_fct_ret := true;
285: ,p_argument_value => p_object_version_number
286: );
287: --
288: Open C_Sel1;
289: Fetch C_Sel1 Into per_vac_shd.g_old_rec;
290: if C_Sel1%notfound then
291: Close C_Sel1;
292: --
293: -- The primary key is invalid therefore we must error
296: fnd_message.raise_error;
297: end if;
298: Close C_Sel1;
299: if (p_object_version_number
300: <> per_vac_shd.g_old_rec.object_version_number) then
301: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
302: fnd_message.raise_error;
303: end if;
304: --
438: Return(l_rec);
439: --
440: End convert_args;
441: --
442: end per_vac_shd;