1: Package Body ame_man_shd as
2: /* $Header: ammanrhi.pkb 120.5 2005/11/22 03:18 santosin noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' ame_man_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |---------------------------< constraint_error >---------------------------|
12: -- ----------------------------------------------------------------------------
71: --
72: l_fct_ret := false;
73: Else
74: If (p_attribute_id =
75: ame_man_shd.g_old_rec.attribute_id and
76: p_object_version_number =
77: ame_man_shd.g_old_rec.object_version_number
78: ) Then
79: --
73: Else
74: If (p_attribute_id =
75: ame_man_shd.g_old_rec.attribute_id and
76: p_object_version_number =
77: ame_man_shd.g_old_rec.object_version_number
78: ) Then
79: --
80: -- The g_old_rec is current therefore we must
81: -- set the returning function to true
85: --
86: -- Select the current row
87: --
88: Open C_Sel1;
89: Fetch C_Sel1 Into ame_man_shd.g_old_rec;
90: If C_Sel1%notfound Then
91: Close C_Sel1;
92: --
93: -- The primary key is invalid therefore we must error
96: fnd_message.raise_error;
97: End If;
98: Close C_Sel1;
99: If (p_object_version_number
100: <> ame_man_shd.g_old_rec.object_version_number) Then
101: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
102: fnd_message.raise_error;
103: End If;
104: l_fct_ret := true;
131: -- Because we are updating a row we must get the next object
132: -- version number.
133: --
134: l_object_version_number :=
135: ame_man_shd.get_object_version_number
136: (p_attribute_id => p_attribute_id
137: ,p_action_type_id => p_action_type_id
138: );
139: --
230: --
231: -- We must select and lock the current row.
232: --
233: Open C_Sel1;
234: Fetch C_Sel1 Into ame_man_shd.g_old_rec;
235: If C_Sel1%notfound then
236: Close C_Sel1;
237: --
238: -- The primary key is invalid therefore we must error
241: fnd_message.raise_error;
242: End If;
243: Close C_Sel1;
244: If (p_object_version_number
245: <> ame_man_shd.g_old_rec.object_version_number) Then
246: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
247: fnd_message.raise_error;
248: End If;
249: --
264: -- Set the validation start and end date OUT arguments
265: --
266: if (p_datetrack_mode = hr_api.g_update) then
267: p_validation_start_date := p_effective_date;
268: p_validation_end_date := ame_man_shd.g_old_rec.end_date;
269: elsif (p_datetrack_mode = hr_api.g_delete) then
270: p_validation_start_date := p_effective_date;
271: p_validation_end_date := p_effective_date;
272: end if;
345: --
346: End get_object_version_number;
347: --
348: --
349: end ame_man_shd;