1: Package Body psp_poa_shd as
2: /* $Header: PSPOARHB.pls 120.5 2006/09/05 11:10:12 dpaudel noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' psp_poa_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |------------------------< return_api_dml_status >-------------------------|
12: -- ----------------------------------------------------------------------------
107: --
108: l_fct_ret := false;
109: Else
110: If (p_organization_account_id
111: = psp_poa_shd.g_old_rec.organization_account_id and
112: p_object_version_number
113: = psp_poa_shd.g_old_rec.object_version_number
114: ) Then
115: --
109: Else
110: If (p_organization_account_id
111: = psp_poa_shd.g_old_rec.organization_account_id and
112: p_object_version_number
113: = psp_poa_shd.g_old_rec.object_version_number
114: ) Then
115: --
116: -- The g_old_rec is current therefore we must
117: -- set the returning function to true
121: --
122: -- Select the current row into g_old_rec
123: --
124: Open C_Sel1;
125: Fetch C_Sel1 Into psp_poa_shd.g_old_rec;
126: If C_Sel1%notfound Then
127: Close C_Sel1;
128: --
129: -- The primary key is invalid therefore we must error
132: fnd_message.raise_error;
133: End If;
134: Close C_Sel1;
135: If (p_object_version_number
136: <> psp_poa_shd.g_old_rec.object_version_number) Then
137: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
138: fnd_message.raise_error;
139: End If;
140: l_fct_ret := true;
211: ,p_argument_value => p_object_version_number
212: );
213: --
214: Open C_Sel1;
215: Fetch C_Sel1 Into psp_poa_shd.g_old_rec;
216: If C_Sel1%notfound then
217: Close C_Sel1;
218: --
219: -- The primary key is invalid therefore we must error
222: fnd_message.raise_error;
223: End If;
224: Close C_Sel1;
225: If (p_object_version_number
226: <> psp_poa_shd.g_old_rec.object_version_number) Then
227: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
228: fnd_message.raise_error;
229: End If;
230: --
330: Return(l_rec);
331: --
332: End convert_args;
333: --
334: end psp_poa_shd;