1: Package Body per_pat_shd as
2: /* $Header: pepatrhi.pkb 120.6 2012/01/10 10:39:57 srannama ship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' per_pat_shd.'; -- Global package name
9: g_debug boolean := hr_utility.debug_enabled;
10: --
11: -- ----------------------------------------------------------------------------
12: -- |---------------------------< constraint_error >---------------------------|
121: --
122: l_fct_ret := false;
123: Else
124: If (p_allocated_task_id
125: = per_pat_shd.g_old_rec.allocated_task_id and
126: p_object_version_number
127: = per_pat_shd.g_old_rec.object_version_number
128: ) Then
129: --
123: Else
124: If (p_allocated_task_id
125: = per_pat_shd.g_old_rec.allocated_task_id and
126: p_object_version_number
127: = per_pat_shd.g_old_rec.object_version_number
128: ) Then
129: --
130: -- The g_old_rec is current therefore we must
131: -- set the returning function to true
135: --
136: -- Select the current row into g_old_rec
137: --
138: Open C_Sel1;
139: Fetch C_Sel1 Into per_pat_shd.g_old_rec;
140: If C_Sel1%notfound Then
141: Close C_Sel1;
142: --
143: -- The primary key is invalid therefore we must error
146: fnd_message.raise_error;
147: End If;
148: Close C_Sel1;
149: If (p_object_version_number
150: <> per_pat_shd.g_old_rec.object_version_number) Then
151: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
152: fnd_message.raise_error;
153: End If;
154: l_fct_ret := true;
249: ,p_argument_value => p_object_version_number
250: );
251: --
252: Open C_Sel1;
253: Fetch C_Sel1 Into per_pat_shd.g_old_rec;
254: If C_Sel1%notfound then
255: Close C_Sel1;
256: --
257: -- The primary key is invalid therefore we must error
260: fnd_message.raise_error;
261: End If;
262: Close C_Sel1;
263: If (p_object_version_number
264: <> per_pat_shd.g_old_rec.object_version_number) Then
265: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
266: fnd_message.raise_error;
267: End If;
268: --
416: Return(l_rec);
417: --
418: End convert_args;
419: --
420: end per_pat_shd;