1: Package Body ota_fms_shd as
2: /* $Header: otfmsrhi.pkb 120.0 2005/06/24 07:54 appldev noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' ota_fms_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |---------------------------< constraint_error >---------------------------|
12: -- ----------------------------------------------------------------------------
79: --
80: l_fct_ret := false;
81: Else
82: If (p_forum_message_id
83: = ota_fms_shd.g_old_rec.forum_message_id and
84: p_object_version_number
85: = ota_fms_shd.g_old_rec.object_version_number
86: ) Then
87: --
81: Else
82: If (p_forum_message_id
83: = ota_fms_shd.g_old_rec.forum_message_id and
84: p_object_version_number
85: = ota_fms_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 ota_fms_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: <> ota_fms_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;
161: ,p_argument_value => p_object_version_number
162: );
163: --
164: Open C_Sel1;
165: Fetch C_Sel1 Into ota_fms_shd.g_old_rec;
166: If C_Sel1%notfound then
167: Close C_Sel1;
168: --
169: -- The primary key is invalid therefore we must error
172: fnd_message.raise_error;
173: End If;
174: Close C_Sel1;
175: If (p_object_version_number
176: <> ota_fms_shd.g_old_rec.object_version_number) Then
177: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
178: fnd_message.raise_error;
179: End If;
180: --
236: Return(l_rec);
237: --
238: End convert_args;
239: --
240: end ota_fms_shd;