1: Package Body pay_ppd_shd as
2: /* $Header: pyppdrhi.pkb 120.2 2005/12/29 01:38 nprasath noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' pay_ppd_shd.'; -- Global package name
9:
10:
11: --
12: -- ----------------------------------------------------------------------------
81: --
82: l_fct_ret := false;
83: Else
84: If (p_paye_details_id =
85: pay_ppd_shd.g_old_rec.paye_details_id and
86: p_object_version_number =
87: pay_ppd_shd.g_old_rec.object_version_number
88: ) Then
89: --
83: Else
84: If (p_paye_details_id =
85: pay_ppd_shd.g_old_rec.paye_details_id and
86: p_object_version_number =
87: pay_ppd_shd.g_old_rec.object_version_number
88: ) Then
89: --
90: -- The g_old_rec is current therefore we must
91: -- set the returning function to true
95: --
96: -- Select the current row
97: --
98: Open C_Sel1;
99: Fetch C_Sel1 Into pay_ppd_shd.g_old_rec;
100: If C_Sel1%notfound Then
101: Close C_Sel1;
102: --
103: -- The primary key is invalid therefore we must error
106: fnd_message.raise_error;
107: End If;
108: Close C_Sel1;
109: If (p_object_version_number
110: <> pay_ppd_shd.g_old_rec.object_version_number) Then
111: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
112: fnd_message.raise_error;
113: End If;
114: l_fct_ret := true;
325: --
326: -- We must select and lock the current row.
327: --
328: Open C_Sel1;
329: Fetch C_Sel1 Into pay_ppd_shd.g_old_rec;
330: If C_Sel1%notfound then
331: Close C_Sel1;
332: --
333: -- The primary key is invalid therefore we must error
336: fnd_message.raise_error;
337: End If;
338: Close C_Sel1;
339: If (p_object_version_number
340: <> pay_ppd_shd.g_old_rec.object_version_number) Then
341: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
342: fnd_message.raise_error;
343: End If;
344: --
475: Return(l_rec);
476: --
477: End convert_args;
478: --
479: end pay_ppd_shd;