1: Package Body per_evt_shd as
2: /* $Header: peevtrhi.pkb 120.2 2008/04/30 11:32:10 uuddavol ship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' per_evt_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |------------------------< return_api_dml_status >-------------------------|
12: -- ----------------------------------------------------------------------------
131: --
132: l_fct_ret := false;
133: Else
134: If (p_event_id
135: = per_evt_shd.g_old_rec.event_id and
136: p_object_version_number
137: = per_evt_shd.g_old_rec.object_version_number
138: ) Then
139: --
133: Else
134: If (p_event_id
135: = per_evt_shd.g_old_rec.event_id and
136: p_object_version_number
137: = per_evt_shd.g_old_rec.object_version_number
138: ) Then
139: --
140: -- The g_old_rec is current therefore we must
141: -- set the returning function to true
145: --
146: -- Select the current row into g_old_rec
147: --
148: Open C_Sel1;
149: Fetch C_Sel1 Into per_evt_shd.g_old_rec;
150: If C_Sel1%notfound Then
151: Close C_Sel1;
152: --
153: -- The primary key is invalid therefore we must error
156: fnd_message.raise_error;
157: End If;
158: Close C_Sel1;
159: If (p_object_version_number
160: <> per_evt_shd.g_old_rec.object_version_number) Then
161: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
162: fnd_message.raise_error;
163: End If;
164: l_fct_ret := true;
244: ,p_argument_value => p_object_version_number
245: );
246: --
247: Open C_Sel1;
248: Fetch C_Sel1 Into per_evt_shd.g_old_rec;
249: If C_Sel1%notfound then
250: Close C_Sel1;
251: --
252: -- The primary key is invalid therefore we must error
255: fnd_message.raise_error;
256: End If;
257: Close C_Sel1;
258: If (p_object_version_number
259: <> per_evt_shd.g_old_rec.object_version_number) Then
260: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
261: fnd_message.raise_error;
262: End If;
263: --
381: Return(l_rec);
382: --
383: End convert_args;
384: --
385: end per_evt_shd;