1: Package Body ota_coi_shd as
2: /* $Header: otcoirhi.pkb 120.3 2005/08/12 02:46 pchandra noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' ota_coi_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |---------------------------< constraint_error >---------------------------|
12: -- ----------------------------------------------------------------------------
75: --
76: l_fct_ret := false;
77: Else
78: If (p_chat_id
79: = ota_coi_shd.g_old_rec.chat_id and
80: p_object_id
81: = ota_coi_shd.g_old_rec.object_id and
82: p_object_type
83: = ota_coi_shd.g_old_rec.object_type and
77: Else
78: If (p_chat_id
79: = ota_coi_shd.g_old_rec.chat_id and
80: p_object_id
81: = ota_coi_shd.g_old_rec.object_id and
82: p_object_type
83: = ota_coi_shd.g_old_rec.object_type and
84: p_object_version_number
85: = ota_coi_shd.g_old_rec.object_version_number
79: = ota_coi_shd.g_old_rec.chat_id and
80: p_object_id
81: = ota_coi_shd.g_old_rec.object_id and
82: p_object_type
83: = ota_coi_shd.g_old_rec.object_type and
84: p_object_version_number
85: = ota_coi_shd.g_old_rec.object_version_number
86: ) Then
87: --
81: = ota_coi_shd.g_old_rec.object_id and
82: p_object_type
83: = ota_coi_shd.g_old_rec.object_type and
84: p_object_version_number
85: = ota_coi_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_coi_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_coi_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;
172: ,p_argument_value => p_object_version_number
173: );
174: --
175: Open C_Sel1;
176: Fetch C_Sel1 Into ota_coi_shd.g_old_rec;
177: If C_Sel1%notfound then
178: Close C_Sel1;
179: --
180: -- The primary key is invalid therefore we must error
183: fnd_message.raise_error;
184: End If;
185: Close C_Sel1;
186: If (p_object_version_number
187: <> ota_coi_shd.g_old_rec.object_version_number) Then
188: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
189: fnd_message.raise_error;
190: End If;
191: --
237: Return(l_rec);
238: --
239: End convert_args;
240: --
241: end ota_coi_shd;