1: Package Body irc_vce_shd as
2: /* $Header: irvcerhi.pkb 120.1 2005/12/13 06:42:58 cnholmes noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' irc_vce_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |------------------------< return_api_dml_status >-------------------------|
12: -- ----------------------------------------------------------------------------
77: --
78: l_fct_ret := false;
79: Else
80: If (p_vacancy_id
81: = irc_vce_shd.g_old_rec.vacancy_id and
82: p_variable_comp_lookup
83: = irc_vce_shd.g_old_rec.variable_comp_lookup and
84: p_object_version_number
85: = irc_vce_shd.g_old_rec.object_version_number
79: Else
80: If (p_vacancy_id
81: = irc_vce_shd.g_old_rec.vacancy_id and
82: p_variable_comp_lookup
83: = irc_vce_shd.g_old_rec.variable_comp_lookup and
84: p_object_version_number
85: = irc_vce_shd.g_old_rec.object_version_number
86: ) Then
87: --
81: = irc_vce_shd.g_old_rec.vacancy_id and
82: p_variable_comp_lookup
83: = irc_vce_shd.g_old_rec.variable_comp_lookup and
84: p_object_version_number
85: = irc_vce_shd.g_old_rec.object_version_number
86: ) Then
87: --
88: -- The g_old_rec is current therefore we must
89: -- set the returning function to true
93: --
94: -- Select the current row into g_old_rec
95: --
96: Open C_Sel1;
97: Fetch C_Sel1 Into irc_vce_shd.g_old_rec;
98: If C_Sel1%notfound Then
99: Close C_Sel1;
100: --
101: -- The primary key is invalid therefore we must error
104: fnd_message.raise_error;
105: End If;
106: Close C_Sel1;
107: If (p_object_version_number
108: <> irc_vce_shd.g_old_rec.object_version_number) Then
109: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
110: fnd_message.raise_error;
111: End If;
112: l_fct_ret := true;
160: ,p_argument_value => p_object_version_number
161: );
162: --
163: Open C_Sel1;
164: Fetch C_Sel1 Into irc_vce_shd.g_old_rec;
165: If C_Sel1%notfound then
166: Close C_Sel1;
167: --
168: -- The primary key is invalid therefore we must error
171: fnd_message.raise_error;
172: End If;
173: Close C_Sel1;
174: If (p_object_version_number
175: <> irc_vce_shd.g_old_rec.object_version_number) Then
176: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
177: fnd_message.raise_error;
178: End If;
179: --
217: Return(l_rec);
218: --
219: End convert_args;
220: --
221: end irc_vce_shd;