1: Package Body ame_itu_shd as
2: /* $Header: amiturhi.pkb 120.6 2006/10/05 16:11:40 pvelugul noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' ame_itu_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |---------------------------< constraint_error >---------------------------|
12: -- ----------------------------------------------------------------------------
75: --
76: l_fct_ret := false;
77: Else
78: If (p_item_class_id =
79: ame_itu_shd.g_old_rec.item_class_id and
80: p_application_id =
81: ame_itu_shd.g_old_rec.application_id and
82: p_object_version_number =
83: ame_itu_shd.g_old_rec.object_version_number
77: Else
78: If (p_item_class_id =
79: ame_itu_shd.g_old_rec.item_class_id and
80: p_application_id =
81: ame_itu_shd.g_old_rec.application_id and
82: p_object_version_number =
83: ame_itu_shd.g_old_rec.object_version_number
84: ) Then
85: --
79: ame_itu_shd.g_old_rec.item_class_id and
80: p_application_id =
81: ame_itu_shd.g_old_rec.application_id and
82: p_object_version_number =
83: ame_itu_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
93: --
94: Open C_Sel1;
95: Fetch C_Sel1 Into ame_itu_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: <> ame_itu_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;
137: -- Because we are updating a row we must get the next object
138: -- version number.
139: --
140: l_object_version_number :=
141: ame_itu_shd.get_object_version_number
142: (p_item_class_id => p_item_class_id
143: ,p_application_id => p_application_id
144: );
145: --
239: --
240: -- We must select and lock the current row.
241: --
242: Open C_Sel1;
243: Fetch C_Sel1 Into ame_itu_shd.g_old_rec;
244: If C_Sel1%notfound then
245: Close C_Sel1;
246: --
247: -- The primary key is invalid therefore we must error
250: fnd_message.raise_error;
251: End If;
252: Close C_Sel1;
253: If (p_object_version_number
254: <> ame_itu_shd.g_old_rec.object_version_number) Then
255: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
256: fnd_message.raise_error;
257: End If;
258: --
271: -- Set the validation start and end date OUT arguments
272: --
273: if (p_datetrack_mode = hr_api.g_update) then
274: p_validation_start_date := p_effective_date;
275: p_validation_end_date := ame_itu_shd.g_old_rec.end_date;
276: elsif (p_datetrack_mode = hr_api.g_delete) then
277: p_validation_start_date := p_effective_date;
278: p_validation_end_date := p_effective_date;
279: end if;
426: --
427: --
428: End child_rows_exist;
429: --
430: end ame_itu_shd;