1: Package Body psp_prt_shd as
2: /* $Header: PSPRTRHB.pls 120.1 2005/07/05 23:50 dpaudel noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' psp_prt_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |------------------------< return_api_dml_status >-------------------------|
12: -- ----------------------------------------------------------------------------
99: --
100: l_fct_ret := false;
101: Else
102: If (p_template_id
103: = psp_prt_shd.g_old_rec.template_id and
104: p_object_version_number
105: = psp_prt_shd.g_old_rec.object_version_number
106: ) Then
107: --
101: Else
102: If (p_template_id
103: = psp_prt_shd.g_old_rec.template_id and
104: p_object_version_number
105: = psp_prt_shd.g_old_rec.object_version_number
106: ) Then
107: --
108: -- The g_old_rec is current therefore we must
109: -- set the returning function to true
113: --
114: -- Select the current row into g_old_rec
115: --
116: Open C_Sel1;
117: Fetch C_Sel1 Into psp_prt_shd.g_old_rec;
118: If C_Sel1%notfound Then
119: Close C_Sel1;
120: --
121: -- The primary key is invalid therefore we must error
124: fnd_message.raise_error;
125: End If;
126: Close C_Sel1;
127: If (p_object_version_number
128: <> psp_prt_shd.g_old_rec.object_version_number) Then
129: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
130: fnd_message.raise_error;
131: End If;
132: l_fct_ret := true;
190: ,p_argument_value => p_object_version_number
191: );
192: --
193: Open C_Sel1;
194: Fetch C_Sel1 Into psp_prt_shd.g_old_rec;
195: If C_Sel1%notfound then
196: Close C_Sel1;
197: --
198: -- The primary key is invalid therefore we must error
201: fnd_message.raise_error;
202: End If;
203: Close C_Sel1;
204: If (p_object_version_number
205: <> psp_prt_shd.g_old_rec.object_version_number) Then
206: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
207: fnd_message.raise_error;
208: End If;
209: --
283: Return(l_rec);
284: --
285: End convert_args;
286: --
287: end psp_prt_shd;