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_ACTL_PREM_VRBL_RT_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 >-----------------------------|
114: l_proc varchar2(72) := g_package||'api_updating';
115: l_fct_ret boolean;
116: --
117: Begin
118: hr_utility.set_location('Entering:'||l_proc, 5);
119: --
120: If (p_effective_date is null or
121: p_actl_prem_vrbl_rt_id is null or
122: p_object_version_number is null) Then
127: l_fct_ret := false;
128: Else
129: If (p_actl_prem_vrbl_rt_id = g_old_rec.actl_prem_vrbl_rt_id and
130: p_object_version_number = g_old_rec.object_version_number) Then
131: hr_utility.set_location(l_proc, 10);
132: --
133: -- The g_old_rec is current therefore we must
134: -- set the returning function to true
135: --
152: If (p_object_version_number <> g_old_rec.object_version_number) Then
153: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
154: fnd_message.raise_error;
155: End If;
156: hr_utility.set_location(l_proc, 15);
157: l_fct_ret := true;
158: End If;
159: End If;
160: hr_utility.set_location(' Leaving:'||l_proc, 20);
156: hr_utility.set_location(l_proc, 15);
157: l_fct_ret := true;
158: End If;
159: End If;
160: hr_utility.set_location(' Leaving:'||l_proc, 20);
161: Return (l_fct_ret);
162: --
163: End api_updating;
164: --
186: and p_effective_date
187: between t.effective_start_date and t.effective_end_date;
188: --
189: Begin
190: hr_utility.set_location('Entering:'||l_proc, 5);
191: Open C_Sel1;
192: Fetch C_Sel1 Into l_parent_key_value1,
193: l_parent_key_value2;
194: If C_Sel1%notfound then
217: p_delete => p_delete,
218: p_future_change => p_future_change,
219: p_delete_next_change => p_delete_next_change);
220: --
221: hr_utility.set_location(' Leaving:'||l_proc, 10);
222: End find_dt_del_modes;
223: --
224: -- ----------------------------------------------------------------------------
225: -- |--------------------------< find_dt_upd_modes >---------------------------|
234: --
235: l_proc varchar2(72) := g_package||'find_dt_upd_modes';
236: --
237: Begin
238: hr_utility.set_location('Entering:'||l_proc, 5);
239: --
240: -- Call the corresponding datetrack api
241: --
242: dt_api.find_dt_upd_modes
248: p_update => p_update,
249: p_update_override => p_update_override,
250: p_update_change_insert => p_update_change_insert);
251: --
252: hr_utility.set_location(' Leaving:'||l_proc, 10);
253: End find_dt_upd_modes;
254: --
255: -- ----------------------------------------------------------------------------
256: -- |------------------------< upd_effective_end_date >------------------------|
266: l_proc varchar2(72) := g_package||'upd_effective_end_date';
267: l_object_version_number number;
268: --
269: Begin
270: hr_utility.set_location('Entering:'||l_proc, 5);
271: --
272: -- Because we are updating a row we must get the next object
273: -- version number.
274: --
277: (p_base_table_name => 'ben_actl_prem_vrbl_rt_f',
278: p_base_key_column => 'actl_prem_vrbl_rt_id',
279: p_base_key_value => p_base_key_value);
280: --
281: hr_utility.set_location(l_proc, 10);
282: g_api_dml := true; -- Set the api dml status
283: --
284: -- Update the specified datetrack row setting the effective
285: -- end date to the specified new effective end date.
292: between t.effective_start_date and t.effective_end_date;
293: --
294: g_api_dml := false; -- Unset the api dml status
295: p_object_version_number := l_object_version_number;
296: hr_utility.set_location(' Leaving:'||l_proc, 15);
297: --
298: Exception
299: When Others Then
300: g_api_dml := false; -- Unset the api dml status
370: --
371: --
372: --
373: Begin
374: hr_utility.set_location('Entering:'||l_proc, 5);
375: --
376: -- Ensure that all the mandatory arguments are not null
377: --
378: hr_api.mandatory_arg_error(p_api_name => l_proc,
411: If (p_object_version_number <> g_old_rec.object_version_number) Then
412: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
413: fnd_message.raise_error;
414: End If;
415: hr_utility.set_location(l_proc, 15);
416: --
417: --
418: -- Validate the datetrack mode mode getting the validation start
419: -- and end dates for the specified datetrack operation.
449: --
450: p_validation_start_date := l_validation_start_date;
451: p_validation_end_date := l_validation_end_date;
452: --
453: hr_utility.set_location(' Leaving:'||l_proc, 30);
454: --
455: -- We need to trap the ORA LOCK exception
456: --
457: Exception
523: l_proc varchar2(72) := g_package||'convert_args';
524: --
525: Begin
526: --
527: hr_utility.set_location('Entering:'||l_proc, 5);
528: --
529: -- Convert arguments into local l_rec structure.
530: --
531: l_rec.actl_prem_vrbl_rt_id := p_actl_prem_vrbl_rt_id;
569: l_rec.object_version_number := p_object_version_number;
570: --
571: -- Return the plsql record structure.
572: --
573: hr_utility.set_location(' Leaving:'||l_proc, 10);
574: Return(l_rec);
575: --
576: End convert_args;
577: --