1: Package Body ota_frm_shd as
2: /* $Header: otfrmrhi.pkb 120.3 2006/04/27 00:19 aabalakr noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' ota_frm_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |---------------------------< constraint_error >---------------------------|
12: -- ----------------------------------------------------------------------------
77: --
78: l_fct_ret := false;
79: Else
80: If (p_forum_id
81: = ota_frm_shd.g_old_rec.forum_id and
82: p_object_version_number
83: = ota_frm_shd.g_old_rec.object_version_number
84: ) Then
85: --
79: Else
80: If (p_forum_id
81: = ota_frm_shd.g_old_rec.forum_id and
82: p_object_version_number
83: = ota_frm_shd.g_old_rec.object_version_number
84: ) Then
85: --
86: -- The g_old_rec is current therefore we must
87: -- set the returning function to true
91: --
92: -- Select the current row into g_old_rec
93: --
94: Open C_Sel1;
95: Fetch C_Sel1 Into ota_frm_shd.g_old_rec;
96: If C_Sel1%notfound Then
97: Close C_Sel1;
98: --
99: -- The primary key is invalid therefore we must error
102: fnd_message.raise_error;
103: End If;
104: Close C_Sel1;
105: If (p_object_version_number
106: <> ota_frm_shd.g_old_rec.object_version_number) Then
107: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
108: fnd_message.raise_error;
109: End If;
110: l_fct_ret := true;
157: ,p_argument_value => p_object_version_number
158: );
159: --
160: Open C_Sel1;
161: Fetch C_Sel1 Into ota_frm_shd.g_old_rec;
162: If C_Sel1%notfound then
163: Close C_Sel1;
164: --
165: -- The primary key is invalid therefore we must error
168: fnd_message.raise_error;
169: End If;
170: Close C_Sel1;
171: If (p_object_version_number
172: <> ota_frm_shd.g_old_rec.object_version_number) Then
173: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
174: fnd_message.raise_error;
175: End If;
176: --
228: Return(l_rec);
229: --
230: End convert_args;
231: --
232: end ota_frm_shd;