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_PLIP_FK1') 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 >-----------------------------|
169: l_proc varchar2(72) := g_package||'api_updating';
170: l_fct_ret boolean;
171: --
172: Begin
173: hr_utility.set_location('Entering:'||l_proc, 5);
174: --
175: If (p_effective_date is null or
176: p_plip_id is null or
177: p_object_version_number is null) Then
182: l_fct_ret := false;
183: Else
184: If (p_plip_id = g_old_rec.plip_id and
185: p_object_version_number = g_old_rec.object_version_number) Then
186: hr_utility.set_location(l_proc, 10);
187: --
188: -- The g_old_rec is current therefore we must
189: -- set the returning function to true
190: --
207: If (p_object_version_number <> g_old_rec.object_version_number) Then
208: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
209: fnd_message.raise_error;
210: End If;
211: hr_utility.set_location(l_proc, 15);
212: l_fct_ret := true;
213: End If;
214: End If;
215: hr_utility.set_location(' Leaving:'||l_proc, 20);
211: hr_utility.set_location(l_proc, 15);
212: l_fct_ret := true;
213: End If;
214: End If;
215: hr_utility.set_location(' Leaving:'||l_proc, 20);
216: Return (l_fct_ret);
217: --
218: End api_updating;
219: --
245: and p_effective_date
246: between t.effective_start_date and t.effective_end_date;
247: --
248: Begin
249: hr_utility.set_location('Entering:'||l_proc, 5);
250: Open C_Sel1;
251: Fetch C_Sel1 Into l_parent_key_value1,
252: l_parent_key_value2,
253: l_parent_key_value3,
284: p_delete => p_delete,
285: p_future_change => p_future_change,
286: p_delete_next_change => p_delete_next_change);
287: --
288: hr_utility.set_location(' Leaving:'||l_proc, 10);
289: End find_dt_del_modes;
290: --
291: -- ----------------------------------------------------------------------------
292: -- |--------------------------< find_dt_upd_modes >---------------------------|
301: --
302: l_proc varchar2(72) := g_package||'find_dt_upd_modes';
303: --
304: Begin
305: hr_utility.set_location('Entering:'||l_proc, 5);
306: --
307: -- Call the corresponding datetrack api
308: --
309: dt_api.find_dt_upd_modes
315: p_update => p_update,
316: p_update_override => p_update_override,
317: p_update_change_insert => p_update_change_insert);
318: --
319: hr_utility.set_location(' Leaving:'||l_proc, 10);
320: End find_dt_upd_modes;
321: --
322: -- ----------------------------------------------------------------------------
323: -- |------------------------< upd_effective_end_date >------------------------|
333: l_proc varchar2(72) := g_package||'upd_effective_end_date';
334: l_object_version_number number;
335: --
336: Begin
337: hr_utility.set_location('Entering:'||l_proc, 5);
338: --
339: -- Because we are updating a row we must get the next object
340: -- version number.
341: --
344: (p_base_table_name => 'ben_plip_f',
345: p_base_key_column => 'plip_id',
346: p_base_key_value => p_base_key_value);
347: --
348: hr_utility.set_location(l_proc, 10);
349: g_api_dml := true; -- Set the api dml status
350: --
351: -- Update the specified datetrack row setting the effective
352: -- end date to the specified new effective end date.
359: between t.effective_start_date and t.effective_end_date;
360: --
361: g_api_dml := false; -- Unset the api dml status
362: p_object_version_number := l_object_version_number;
363: hr_utility.set_location(' Leaving:'||l_proc, 15);
364: --
365: Exception
366: When Others Then
367: g_api_dml := false; -- Unset the api dml status
492: --
493: --
494: --
495: Begin
496: hr_utility.set_location('Entering:'||l_proc, 5);
497: --
498: -- Ensure that all the mandatory arguments are not null
499: --
500: hr_api.mandatory_arg_error(p_api_name => l_proc,
533: If (p_object_version_number <> g_old_rec.object_version_number) Then
534: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
535: fnd_message.raise_error;
536: End If;
537: hr_utility.set_location(l_proc, 15);
538: --
539: --
540: -- Validate the datetrack mode mode getting the validation start
541: -- and end dates for the specified datetrack operation.
579: --
580: p_validation_start_date := l_validation_start_date;
581: p_validation_end_date := l_validation_end_date;
582: --
583: hr_utility.set_location(' Leaving:'||l_proc, 30);
584: --
585: -- We need to trap the ORA LOCK exception
586: --
587: Exception
708: l_proc varchar2(72) := g_package||'convert_args';
709: --
710: Begin
711: --
712: hr_utility.set_location('Entering:'||l_proc, 5);
713: --
714: -- Convert arguments into local l_rec structure.
715: --
716: l_rec.plip_id := p_plip_id;
809: l_rec.object_version_number := p_object_version_number;
810: --
811: -- Return the plsql record structure.
812: --
813: hr_utility.set_location(' Leaving:'||l_proc, 10);
814: Return(l_rec);
815: --
816: End convert_args;
817: --