1: Package Body per_eco_shd as
2: /* $Header: peecorhi.pkb 115.7 2002/12/05 10:37:50 pkakar noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' per_eco_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |------------------------< return_api_dml_status >-------------------------|
12: -- ----------------------------------------------------------------------------
123: --
124: l_fct_ret := false;
125: Else
126: If (p_election_constituency_id
127: = per_eco_shd.g_old_rec.election_constituency_id and
128: p_object_version_number
129: = per_eco_shd.g_old_rec.object_version_number
130: ) Then
131: --
125: Else
126: If (p_election_constituency_id
127: = per_eco_shd.g_old_rec.election_constituency_id and
128: p_object_version_number
129: = per_eco_shd.g_old_rec.object_version_number
130: ) Then
131: --
132: -- The g_old_rec is current therefore we must
133: -- set the returning function to true
137: --
138: -- Select the current row into g_old_rec
139: --
140: Open C_Sel1;
141: Fetch C_Sel1 Into per_eco_shd.g_old_rec;
142: If C_Sel1%notfound Then
143: Close C_Sel1;
144: --
145: -- The primary key is invalid therefore we must error
148: fnd_message.raise_error;
149: End If;
150: Close C_Sel1;
151: If (p_object_version_number
152: <> per_eco_shd.g_old_rec.object_version_number) Then
153: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
154: fnd_message.raise_error;
155: End If;
156: l_fct_ret := true;
223: ,p_argument_value => p_election_constituency_id
224: );
225: --
226: Open C_Sel1;
227: Fetch C_Sel1 Into per_eco_shd.g_old_rec;
228: If C_Sel1%notfound then
229: Close C_Sel1;
230: --
231: -- The primary key is invalid therefore we must error
234: fnd_message.raise_error;
235: End If;
236: Close C_Sel1;
237: If (p_object_version_number
238: <> per_eco_shd.g_old_rec.object_version_number) Then
239: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
240: fnd_message.raise_error;
241: End If;
242: --
346: Return(l_rec);
347: --
348: End convert_args;
349: --
350: end per_eco_shd;