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_LER_CHG_DPNT_CVG_FK2') Then
37: fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
38: fnd_message.set_token('PROCEDURE', l_proc);
49: fnd_message.set_token('CONSTRAINT_NAME', p_constraint_name);
50: fnd_message.raise_error;
51: End If;
52: --
53: hr_utility.set_location(' Leaving:'||l_proc, 10);
54: End constraint_error;
55: --
56: -- ----------------------------------------------------------------------------
57: -- |-----------------------------< api_updating >-----------------------------|
124: l_proc varchar2(72) := g_package||'api_updating';
125: l_fct_ret boolean;
126: --
127: Begin
128: hr_utility.set_location('Entering:'||l_proc, 5);
129: --
130: If (p_effective_date is null or
131: p_ler_chg_dpnt_cvg_id is null or
132: p_object_version_number is null) Then
137: l_fct_ret := false;
138: Else
139: If (p_ler_chg_dpnt_cvg_id = g_old_rec.ler_chg_dpnt_cvg_id and
140: p_object_version_number = g_old_rec.object_version_number) Then
141: hr_utility.set_location(l_proc, 10);
142: --
143: -- The g_old_rec is current therefore we must
144: -- set the returning function to true
145: --
162: If (p_object_version_number <> g_old_rec.object_version_number) Then
163: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
164: fnd_message.raise_error;
165: End If;
166: hr_utility.set_location(l_proc, 15);
167: l_fct_ret := true;
168: End If;
169: End If;
170: hr_utility.set_location(' Leaving:'||l_proc, 20);
166: hr_utility.set_location(l_proc, 15);
167: l_fct_ret := true;
168: End If;
169: End If;
170: hr_utility.set_location(' Leaving:'||l_proc, 20);
171: Return (l_fct_ret);
172: --
173: End api_updating;
174: --
206: and p_effective_date
207: between t.effective_start_date and t.effective_end_date;
208: --
209: Begin
210: hr_utility.set_location('Entering:'||l_proc, 5);
211: Open C_Sel1;
212: Fetch C_Sel1 Into l_parent_key_value1,
213: l_parent_key_value2,
214: l_parent_key_value3,
257: p_delete => p_delete,
258: p_future_change => p_future_change,
259: p_delete_next_change => p_delete_next_change);
260: --
261: hr_utility.set_location(' Leaving:'||l_proc, 10);
262: End find_dt_del_modes;
263: --
264: -- ----------------------------------------------------------------------------
265: -- |--------------------------< find_dt_upd_modes >---------------------------|
274: --
275: l_proc varchar2(72) := g_package||'find_dt_upd_modes';
276: --
277: Begin
278: hr_utility.set_location('Entering:'||l_proc, 5);
279: --
280: -- Call the corresponding datetrack api
281: --
282: dt_api.find_dt_upd_modes
288: p_update => p_update,
289: p_update_override => p_update_override,
290: p_update_change_insert => p_update_change_insert);
291: --
292: hr_utility.set_location(' Leaving:'||l_proc, 10);
293: End find_dt_upd_modes;
294: --
295: -- ----------------------------------------------------------------------------
296: -- |------------------------< upd_effective_end_date >------------------------|
306: l_proc varchar2(72) := g_package||'upd_effective_end_date';
307: l_object_version_number number;
308: --
309: Begin
310: hr_utility.set_location('Entering:'||l_proc, 5);
311: --
312: -- Because we are updating a row we must get the next object
313: -- version number.
314: --
317: (p_base_table_name => 'ben_ler_chg_dpnt_cvg_f',
318: p_base_key_column => 'ler_chg_dpnt_cvg_id',
319: p_base_key_value => p_base_key_value);
320: --
321: hr_utility.set_location(l_proc, 10);
322: g_api_dml := true; -- Set the api dml status
323: --
324: -- Update the specified datetrack row setting the effective
325: -- end date to the specified new effective end date.
332: between t.effective_start_date and t.effective_end_date;
333: --
334: g_api_dml := false; -- Unset the api dml status
335: p_object_version_number := l_object_version_number;
336: hr_utility.set_location(' Leaving:'||l_proc, 15);
337: --
338: Exception
339: When Others Then
340: g_api_dml := false; -- Unset the api dml status
420: --
421: --
422: --
423: Begin
424: hr_utility.set_location('Entering:'||l_proc, 5);
425: --
426: -- Ensure that all the mandatory arguments are not null
427: --
428: hr_api.mandatory_arg_error(p_api_name => l_proc,
461: If (p_object_version_number <> g_old_rec.object_version_number) Then
462: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
463: fnd_message.raise_error;
464: End If;
465: hr_utility.set_location(l_proc, 15);
466: --
467: --
468: -- Validate the datetrack mode mode getting the validation start
469: -- and end dates for the specified datetrack operation.
516: --
517: p_validation_start_date := l_validation_start_date;
518: p_validation_end_date := l_validation_end_date;
519: --
520: hr_utility.set_location(' Leaving:'||l_proc, 30);
521: --
522: -- We need to trap the ORA LOCK exception
523: --
524: Exception
600: l_proc varchar2(72) := g_package||'convert_args';
601: --
602: Begin
603: --
604: hr_utility.set_location('Entering:'||l_proc, 5);
605: --
606: -- Convert arguments into local l_rec structure.
607: --
608: l_rec.ler_chg_dpnt_cvg_id := p_ler_chg_dpnt_cvg_id;
656: l_rec.object_version_number := p_object_version_number;
657: --
658: -- Return the plsql record structure.
659: --
660: hr_utility.set_location(' Leaving:'||l_proc, 10);
661: Return(l_rec);
662: --
663: End convert_args;
664: --