14: --
15: l_proc varchar2(72) := g_package||'return_api_dml_status';
16: --
17: Begin
18: hr_utility.set_location('Entering:'||l_proc, 5);
19: --
20: Return (nvl(g_api_dml, false));
21: --
22: hr_utility.set_location(' Leaving:'||l_proc, 10);
18: hr_utility.set_location('Entering:'||l_proc, 5);
19: --
20: Return (nvl(g_api_dml, false));
21: --
22: hr_utility.set_location(' Leaving:'||l_proc, 10);
23: End return_api_dml_status;
24: --
25: -- ----------------------------------------------------------------------------
26: -- |---------------------------< constraint_error >---------------------------|
30: --
31: l_proc varchar2(72) := g_package||'constraint_error';
32: --
33: Begin
34: hr_utility.set_location('Entering:'||l_proc, 5);
35: --
36: If (p_constraint_name = 'BEN_PER_CM_PRVDD_F_FK1') Then
37: fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
38: fnd_message.set_token('PROCEDURE', l_proc);
54: fnd_message.set_token('CONSTRAINT_NAME', p_constraint_name);
55: fnd_message.raise_error;
56: End If;
57: --
58: hr_utility.set_location(' Leaving:'||l_proc, 10);
59: End constraint_error;
60: --
61: -- ----------------------------------------------------------------------------
62: -- |-----------------------------< api_updating >-----------------------------|
133: l_proc varchar2(72) := g_package||'api_updating';
134: l_fct_ret boolean;
135: --
136: Begin
137: hr_utility.set_location('Entering:'||l_proc, 5);
138: --
139: If (p_effective_date is null or
140: p_per_cm_prvdd_id is null or
141: p_object_version_number is null) Then
146: l_fct_ret := false;
147: Else
148: If (p_per_cm_prvdd_id = g_old_rec.per_cm_prvdd_id and
149: p_object_version_number = g_old_rec.object_version_number) Then
150: hr_utility.set_location(l_proc, 10);
151: --
152: -- The g_old_rec is current therefore we must
153: -- set the returning function to true
154: --
171: If (p_object_version_number <> g_old_rec.object_version_number) Then
172: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
173: fnd_message.raise_error;
174: End If;
175: hr_utility.set_location(l_proc, 15);
176: l_fct_ret := true;
177: End If;
178: End If;
179: hr_utility.set_location(' Leaving:'||l_proc, 20);
175: hr_utility.set_location(l_proc, 15);
176: l_fct_ret := true;
177: End If;
178: End If;
179: hr_utility.set_location(' Leaving:'||l_proc, 20);
180: Return (l_fct_ret);
181: --
182: End api_updating;
183: --
203: and p_effective_date
204: between t.effective_start_date and t.effective_end_date;
205: --
206: Begin
207: hr_utility.set_location('Entering:'||l_proc, 5);
208: Open C_Sel1;
209: Fetch C_Sel1 Into l_parent_key_value1;
210: If C_Sel1%notfound then
211: Close C_Sel1;
230: p_delete => p_delete,
231: p_future_change => p_future_change,
232: p_delete_next_change => p_delete_next_change);
233: --
234: hr_utility.set_location(' Leaving:'||l_proc, 10);
235: End find_dt_del_modes;
236: --
237: -- ----------------------------------------------------------------------------
238: -- |--------------------------< find_dt_upd_modes >---------------------------|
247: --
248: l_proc varchar2(72) := g_package||'find_dt_upd_modes';
249: --
250: Begin
251: hr_utility.set_location('Entering:'||l_proc, 5);
252: --
253: -- Call the corresponding datetrack api
254: --
255: dt_api.find_dt_upd_modes
261: p_update => p_update,
262: p_update_override => p_update_override,
263: p_update_change_insert => p_update_change_insert);
264: --
265: hr_utility.set_location(' Leaving:'||l_proc, 10);
266: End find_dt_upd_modes;
267: --
268: -- ----------------------------------------------------------------------------
269: -- |------------------------< upd_effective_end_date >------------------------|
279: l_proc varchar2(72) := g_package||'upd_effective_end_date';
280: l_object_version_number number;
281: --
282: Begin
283: hr_utility.set_location('Entering:'||l_proc, 5);
284: --
285: -- Because we are updating a row we must get the next object
286: -- version number.
287: --
290: (p_base_table_name => 'ben_per_cm_prvdd_f',
291: p_base_key_column => 'per_cm_prvdd_id',
292: p_base_key_value => p_base_key_value);
293: --
294: hr_utility.set_location(l_proc, 10);
295: g_api_dml := true; -- Set the api dml status
296: --
297: -- Update the specified datetrack row setting the effective
298: -- end date to the specified new effective end date.
305: between t.effective_start_date and t.effective_end_date;
306: --
307: g_api_dml := false; -- Unset the api dml status
308: p_object_version_number := l_object_version_number;
309: hr_utility.set_location(' Leaving:'||l_proc, 15);
310: --
311: Exception
312: When Others Then
313: g_api_dml := false; -- Unset the api dml status
397: --
398: --
399: --
400: Begin
401: hr_utility.set_location('Entering:'||l_proc, 5);
402: --
403: -- Ensure that all the mandatory arguments are not null
404: --
405: hr_api.mandatory_arg_error(p_api_name => l_proc,
438: If (p_object_version_number <> g_old_rec.object_version_number) Then
439: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
440: fnd_message.raise_error;
441: End If;
442: hr_utility.set_location(l_proc, 15);
443: --
444: --
445: -- Validate the datetrack mode mode getting the validation start
446: -- and end dates for the specified datetrack operation.
473: --
474: p_validation_start_date := l_validation_start_date;
475: p_validation_end_date := l_validation_end_date;
476: --
477: hr_utility.set_location(' Leaving:'||l_proc, 30);
478: --
479: -- We need to trap the ORA LOCK exception
480: --
481: Exception
561: l_proc varchar2(72) := g_package||'convert_args';
562: --
563: Begin
564: --
565: hr_utility.set_location('Entering:'||l_proc, 5);
566: --
567: -- Convert arguments into local l_rec structure.
568: --
569: l_rec.per_cm_prvdd_id := p_per_cm_prvdd_id;
621: l_rec.object_version_number := p_object_version_number;
622: --
623: -- Return the plsql record structure.
624: --
625: hr_utility.set_location(' Leaving:'||l_proc, 10);
626: Return(l_rec);
627: --
628: End convert_args;
629: --