1: Package Body ben_cwg_shd as
2: /* $Header: becwgrhi.pkb 120.0 2005/05/28 01:29:54 appldev noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' ben_cwg_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |---------------------------< constraint_error >---------------------------|
12: -- ----------------------------------------------------------------------------
102: --
103: l_fct_ret := false;
104: Else
105: If (p_cwb_wksht_grp_id
106: = ben_cwg_shd.g_old_rec.cwb_wksht_grp_id and
107: p_object_version_number
108: = ben_cwg_shd.g_old_rec.object_version_number
109: ) Then
110: --
104: Else
105: If (p_cwb_wksht_grp_id
106: = ben_cwg_shd.g_old_rec.cwb_wksht_grp_id and
107: p_object_version_number
108: = ben_cwg_shd.g_old_rec.object_version_number
109: ) Then
110: --
111: -- The g_old_rec is current therefore we must
112: -- set the returning function to true
116: --
117: -- Select the current row into g_old_rec
118: --
119: Open C_Sel1;
120: Fetch C_Sel1 Into ben_cwg_shd.g_old_rec;
121: If C_Sel1%notfound Then
122: Close C_Sel1;
123: --
124: -- The primary key is invalid therefore we must error
127: fnd_message.raise_error;
128: End If;
129: Close C_Sel1;
130: If (p_object_version_number
131: <> ben_cwg_shd.g_old_rec.object_version_number) Then
132: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
133: fnd_message.raise_error;
134: End If;
135: l_fct_ret := true;
212: ,p_argument_value => p_object_version_number
213: );
214: --
215: Open C_Sel1;
216: Fetch C_Sel1 Into ben_cwg_shd.g_old_rec;
217: If C_Sel1%notfound then
218: Close C_Sel1;
219: --
220: -- The primary key is invalid therefore we must error
223: fnd_message.raise_error;
224: End If;
225: Close C_Sel1;
226: If (p_object_version_number
227: <> ben_cwg_shd.g_old_rec.object_version_number) Then
228: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
229: fnd_message.raise_error;
230: End If;
231: --
344: Return(l_rec);
345: --
346: End convert_args;
347: --
348: end ben_cwg_shd;