DBA Data[Home] [Help]

APPS.BEN_SHR_SHD dependencies on HR_UTILITY

Line 18: hr_utility.set_location('Entering:'||l_proc, 5);

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);

Line 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 >---------------------------|

Line 34: hr_utility.set_location('Entering:'||l_proc, 5);

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_SCHEDD_HRS_RT_PK') Then
37: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
38: hr_utility.set_message_token('PROCEDURE', l_proc);

Line 37: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');

33: Begin
34: hr_utility.set_location('Entering:'||l_proc, 5);
35: --
36: If (p_constraint_name = 'BEN_SCHEDD_HRS_RT_PK') Then
37: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('STEP','5');
40: hr_utility.raise_error;
41: Else

Line 38: hr_utility.set_message_token('PROCEDURE', l_proc);

34: hr_utility.set_location('Entering:'||l_proc, 5);
35: --
36: If (p_constraint_name = 'BEN_SCHEDD_HRS_RT_PK') Then
37: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('STEP','5');
40: hr_utility.raise_error;
41: Else
42: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');

Line 39: hr_utility.set_message_token('STEP','5');

35: --
36: If (p_constraint_name = 'BEN_SCHEDD_HRS_RT_PK') Then
37: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('STEP','5');
40: hr_utility.raise_error;
41: Else
42: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
43: hr_utility.set_message_token('PROCEDURE', l_proc);

Line 40: hr_utility.raise_error;

36: If (p_constraint_name = 'BEN_SCHEDD_HRS_RT_PK') Then
37: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('STEP','5');
40: hr_utility.raise_error;
41: Else
42: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
43: hr_utility.set_message_token('PROCEDURE', l_proc);
44: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);

Line 42: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');

38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('STEP','5');
40: hr_utility.raise_error;
41: Else
42: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
43: hr_utility.set_message_token('PROCEDURE', l_proc);
44: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
45: hr_utility.raise_error;
46: End If;

Line 43: hr_utility.set_message_token('PROCEDURE', l_proc);

39: hr_utility.set_message_token('STEP','5');
40: hr_utility.raise_error;
41: Else
42: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
43: hr_utility.set_message_token('PROCEDURE', l_proc);
44: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
45: hr_utility.raise_error;
46: End If;
47: --

Line 44: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);

40: hr_utility.raise_error;
41: Else
42: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
43: hr_utility.set_message_token('PROCEDURE', l_proc);
44: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
45: hr_utility.raise_error;
46: End If;
47: --
48: hr_utility.set_location(' Leaving:'||l_proc, 10);

Line 45: hr_utility.raise_error;

41: Else
42: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
43: hr_utility.set_message_token('PROCEDURE', l_proc);
44: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
45: hr_utility.raise_error;
46: End If;
47: --
48: hr_utility.set_location(' Leaving:'||l_proc, 10);
49: End constraint_error;

Line 48: hr_utility.set_location(' Leaving:'||l_proc, 10);

44: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
45: hr_utility.raise_error;
46: End If;
47: --
48: hr_utility.set_location(' Leaving:'||l_proc, 10);
49: End constraint_error;
50: --
51: -- ----------------------------------------------------------------------------
52: -- |-----------------------------< api_updating >-----------------------------|

Line 121: hr_utility.set_location('Entering:'||l_proc, 5);

117: l_proc varchar2(72) := g_package||'api_updating';
118: l_fct_ret boolean;
119: --
120: Begin
121: hr_utility.set_location('Entering:'||l_proc, 5);
122: --
123: If (p_effective_date is null or
124: p_schedd_hrs_rt_id is null or
125: p_object_version_number is null) Then

Line 134: hr_utility.set_location(l_proc, 10);

130: l_fct_ret := false;
131: Else
132: If (p_schedd_hrs_rt_id = g_old_rec.schedd_hrs_rt_id and
133: p_object_version_number = g_old_rec.object_version_number) Then
134: hr_utility.set_location(l_proc, 10);
135: --
136: -- The g_old_rec is current therefore we must
137: -- set the returning function to true
138: --

Line 151: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');

147: Close C_Sel1;
148: --
149: -- The primary key is invalid therefore we must error
150: --
151: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
152: hr_utility.raise_error;
153: End If;
154: Close C_Sel1;
155: If (p_object_version_number <> g_old_rec.object_version_number) Then

Line 152: hr_utility.raise_error;

148: --
149: -- The primary key is invalid therefore we must error
150: --
151: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
152: hr_utility.raise_error;
153: End If;
154: Close C_Sel1;
155: If (p_object_version_number <> g_old_rec.object_version_number) Then
156: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');

Line 156: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');

152: hr_utility.raise_error;
153: End If;
154: Close C_Sel1;
155: If (p_object_version_number <> g_old_rec.object_version_number) Then
156: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
157: hr_utility.raise_error;
158: End If;
159: hr_utility.set_location(l_proc, 15);
160: l_fct_ret := true;

Line 157: hr_utility.raise_error;

153: End If;
154: Close C_Sel1;
155: If (p_object_version_number <> g_old_rec.object_version_number) Then
156: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
157: hr_utility.raise_error;
158: End If;
159: hr_utility.set_location(l_proc, 15);
160: l_fct_ret := true;
161: End If;

Line 159: hr_utility.set_location(l_proc, 15);

155: If (p_object_version_number <> g_old_rec.object_version_number) Then
156: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
157: hr_utility.raise_error;
158: End If;
159: hr_utility.set_location(l_proc, 15);
160: l_fct_ret := true;
161: End If;
162: End If;
163: hr_utility.set_location(' Leaving:'||l_proc, 20);

Line 163: hr_utility.set_location(' Leaving:'||l_proc, 20);

159: hr_utility.set_location(l_proc, 15);
160: l_fct_ret := true;
161: End If;
162: End If;
163: hr_utility.set_location(' Leaving:'||l_proc, 20);
164: Return (l_fct_ret);
165: --
166: End api_updating;
167: --

Line 191: hr_utility.set_location('Entering:'||l_proc, 5);

187: and p_effective_date
188: between t.effective_start_date and t.effective_end_date;
189: --
190: Begin
191: hr_utility.set_location('Entering:'||l_proc, 5);
192: Open C_Sel1;
193: Fetch C_Sel1 Into l_parent_key_value1;
194: If C_Sel1%notfound then
195: Close C_Sel1;

Line 196: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');

192: Open C_Sel1;
193: Fetch C_Sel1 Into l_parent_key_value1;
194: If C_Sel1%notfound then
195: Close C_Sel1;
196: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
197: hr_utility.set_message_token('PROCEDURE', l_proc);
198: hr_utility.set_message_token('STEP','10');
199: hr_utility.raise_error;
200: End If;

Line 197: hr_utility.set_message_token('PROCEDURE', l_proc);

193: Fetch C_Sel1 Into l_parent_key_value1;
194: If C_Sel1%notfound then
195: Close C_Sel1;
196: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
197: hr_utility.set_message_token('PROCEDURE', l_proc);
198: hr_utility.set_message_token('STEP','10');
199: hr_utility.raise_error;
200: End If;
201: Close C_Sel1;

Line 198: hr_utility.set_message_token('STEP','10');

194: If C_Sel1%notfound then
195: Close C_Sel1;
196: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
197: hr_utility.set_message_token('PROCEDURE', l_proc);
198: hr_utility.set_message_token('STEP','10');
199: hr_utility.raise_error;
200: End If;
201: Close C_Sel1;
202: --

Line 199: hr_utility.raise_error;

195: Close C_Sel1;
196: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
197: hr_utility.set_message_token('PROCEDURE', l_proc);
198: hr_utility.set_message_token('STEP','10');
199: hr_utility.raise_error;
200: End If;
201: Close C_Sel1;
202: --
203: -- Call the corresponding datetrack api

Line 218: hr_utility.set_location(' Leaving:'||l_proc, 10);

214: p_delete => p_delete,
215: p_future_change => p_future_change,
216: p_delete_next_change => p_delete_next_change);
217: --
218: hr_utility.set_location(' Leaving:'||l_proc, 10);
219: End find_dt_del_modes;
220: --
221: -- ----------------------------------------------------------------------------
222: -- |--------------------------< find_dt_upd_modes >---------------------------|

Line 235: hr_utility.set_location('Entering:'||l_proc, 5);

231: --
232: l_proc varchar2(72) := g_package||'find_dt_upd_modes';
233: --
234: Begin
235: hr_utility.set_location('Entering:'||l_proc, 5);
236: --
237: -- Call the corresponding datetrack api
238: --
239: dt_api.find_dt_upd_modes

Line 249: hr_utility.set_location(' Leaving:'||l_proc, 10);

245: p_update => p_update,
246: p_update_override => p_update_override,
247: p_update_change_insert => p_update_change_insert);
248: --
249: hr_utility.set_location(' Leaving:'||l_proc, 10);
250: End find_dt_upd_modes;
251: --
252: -- ----------------------------------------------------------------------------
253: -- |------------------------< upd_effective_end_date >------------------------|

Line 267: hr_utility.set_location('Entering:'||l_proc, 5);

263: l_proc varchar2(72) := g_package||'upd_effective_end_date';
264: l_object_version_number number;
265: --
266: Begin
267: hr_utility.set_location('Entering:'||l_proc, 5);
268: --
269: -- Because we are updating a row we must get the next object
270: -- version number.
271: --

Line 278: hr_utility.set_location(l_proc, 10);

274: (p_base_table_name => 'ben_schedd_hrs_rt_f',
275: p_base_key_column => 'schedd_hrs_rt_id',
276: p_base_key_value => p_base_key_value);
277: --
278: hr_utility.set_location(l_proc, 10);
279: g_api_dml := true; -- Set the api dml status
280: --
281: -- Update the specified datetrack row setting the effective
282: -- end date to the specified new effective end date.

Line 293: hr_utility.set_location(' Leaving:'||l_proc, 15);

289: between t.effective_start_date and t.effective_end_date;
290: --
291: g_api_dml := false; -- Unset the api dml status
292: p_object_version_number := l_object_version_number;
293: hr_utility.set_location(' Leaving:'||l_proc, 15);
294: --
295: Exception
296: When Others Then
297: g_api_dml := false; -- Unset the api dml status

Line 379: hr_utility.set_location('Entering:'||l_proc, 5);

375: --
376: --
377: --
378: Begin
379: hr_utility.set_location('Entering:'||l_proc, 5);
380: --
381: -- Ensure that all the mandatory arguments are not null
382: --
383: hr_api.mandatory_arg_error(p_api_name => l_proc,

Line 412: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');

408: Close C_Sel1;
409: --
410: -- The primary key is invalid therefore we must error
411: --
412: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
413: hr_utility.raise_error;
414: End If;
415: Close C_Sel1;
416: If (p_object_version_number <> g_old_rec.object_version_number) Then

Line 413: hr_utility.raise_error;

409: --
410: -- The primary key is invalid therefore we must error
411: --
412: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
413: hr_utility.raise_error;
414: End If;
415: Close C_Sel1;
416: If (p_object_version_number <> g_old_rec.object_version_number) Then
417: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');

Line 417: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');

413: hr_utility.raise_error;
414: End If;
415: Close C_Sel1;
416: If (p_object_version_number <> g_old_rec.object_version_number) Then
417: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
418: hr_utility.raise_error;
419: End If;
420: hr_utility.set_location(l_proc, 15);
421: --

Line 418: hr_utility.raise_error;

414: End If;
415: Close C_Sel1;
416: If (p_object_version_number <> g_old_rec.object_version_number) Then
417: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
418: hr_utility.raise_error;
419: End If;
420: hr_utility.set_location(l_proc, 15);
421: --
422: --

Line 420: hr_utility.set_location(l_proc, 15);

416: If (p_object_version_number <> g_old_rec.object_version_number) Then
417: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
418: hr_utility.raise_error;
419: End If;
420: hr_utility.set_location(l_proc, 15);
421: --
422: --
423: -- Validate the datetrack mode mode getting the validation start
424: -- and end dates for the specified datetrack operation.

Line 444: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');

440: -- We are doing a datetrack 'INSERT' which is illegal within this
441: -- procedure therefore we must error (note: to lck on insert the
442: -- private procedure ins_lck should be called).
443: --
444: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
445: hr_utility.set_message_token('PROCEDURE', l_proc);
446: hr_utility.set_message_token('STEP','20');
447: hr_utility.raise_error;
448: End If;

Line 445: hr_utility.set_message_token('PROCEDURE', l_proc);

441: -- procedure therefore we must error (note: to lck on insert the
442: -- private procedure ins_lck should be called).
443: --
444: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
445: hr_utility.set_message_token('PROCEDURE', l_proc);
446: hr_utility.set_message_token('STEP','20');
447: hr_utility.raise_error;
448: End If;
449: --

Line 446: hr_utility.set_message_token('STEP','20');

442: -- private procedure ins_lck should be called).
443: --
444: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
445: hr_utility.set_message_token('PROCEDURE', l_proc);
446: hr_utility.set_message_token('STEP','20');
447: hr_utility.raise_error;
448: End If;
449: --
450: -- Set the validation start and end date OUT arguments

Line 447: hr_utility.raise_error;

443: --
444: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
445: hr_utility.set_message_token('PROCEDURE', l_proc);
446: hr_utility.set_message_token('STEP','20');
447: hr_utility.raise_error;
448: End If;
449: --
450: -- Set the validation start and end date OUT arguments
451: --

Line 455: hr_utility.set_location(' Leaving:'||l_proc, 30);

451: --
452: p_validation_start_date := l_validation_start_date;
453: p_validation_end_date := l_validation_end_date;
454: --
455: hr_utility.set_location(' Leaving:'||l_proc, 30);
456: --
457: -- We need to trap the ORA LOCK exception
458: --
459: Exception

Line 465: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');

461: --
462: -- The object is locked therefore we need to supply a meaningful
463: -- error message.
464: --
465: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
466: hr_utility.set_message_token('TABLE_NAME', 'ben_schedd_hrs_rt_f');
467: hr_utility.raise_error;
468: When l_object_invalid then
469: --

Line 466: hr_utility.set_message_token('TABLE_NAME', 'ben_schedd_hrs_rt_f');

462: -- The object is locked therefore we need to supply a meaningful
463: -- error message.
464: --
465: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
466: hr_utility.set_message_token('TABLE_NAME', 'ben_schedd_hrs_rt_f');
467: hr_utility.raise_error;
468: When l_object_invalid then
469: --
470: -- The object doesn't exist or is invalid

Line 467: hr_utility.raise_error;

463: -- error message.
464: --
465: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
466: hr_utility.set_message_token('TABLE_NAME', 'ben_schedd_hrs_rt_f');
467: hr_utility.raise_error;
468: When l_object_invalid then
469: --
470: -- The object doesn't exist or is invalid
471: --

Line 472: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');

468: When l_object_invalid then
469: --
470: -- The object doesn't exist or is invalid
471: --
472: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
473: hr_utility.set_message_token('TABLE_NAME', 'ben_schedd_hrs_rt_f');
474: hr_utility.raise_error;
475: End lck;
476: --

Line 473: hr_utility.set_message_token('TABLE_NAME', 'ben_schedd_hrs_rt_f');

469: --
470: -- The object doesn't exist or is invalid
471: --
472: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
473: hr_utility.set_message_token('TABLE_NAME', 'ben_schedd_hrs_rt_f');
474: hr_utility.raise_error;
475: End lck;
476: --
477: -- ----------------------------------------------------------------------------

Line 474: hr_utility.raise_error;

470: -- The object doesn't exist or is invalid
471: --
472: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
473: hr_utility.set_message_token('TABLE_NAME', 'ben_schedd_hrs_rt_f');
474: hr_utility.raise_error;
475: End lck;
476: --
477: -- ----------------------------------------------------------------------------
478: -- |-----------------------------< convert_args >-----------------------------|

Line 537: hr_utility.set_location('Entering:'||l_proc, 5);

533: l_proc varchar2(72) := g_package||'convert_args';
534: --
535: Begin
536: --
537: hr_utility.set_location('Entering:'||l_proc, 5);
538: --
539: -- Convert arguments into local l_rec structure.
540: --
541: l_rec.schedd_hrs_rt_id := p_schedd_hrs_rt_id;

Line 591: hr_utility.set_location(' Leaving:'||l_proc, 10);

587: l_rec.object_version_number := p_object_version_number;
588: --
589: -- Return the plsql record structure.
590: --
591: hr_utility.set_location(' Leaving:'||l_proc, 10);
592: Return(l_rec);
593: --
594: End convert_args;
595: --