DBA Data[Home] [Help]

APPS.BEN_PAT_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_POPL_ACTN_TYP_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_POPL_ACTN_TYP_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_POPL_ACTN_TYP_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_POPL_ACTN_TYP_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_POPL_ACTN_TYP_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 117: hr_utility.set_location('Entering:'||l_proc, 5);

113: l_proc varchar2(72) := g_package||'api_updating';
114: l_fct_ret boolean;
115: --
116: Begin
117: hr_utility.set_location('Entering:'||l_proc, 5);
118: --
119: If (p_effective_date is null or
120: p_popl_actn_typ_id is null or
121: p_object_version_number is null) Then

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

126: l_fct_ret := false;
127: Else
128: If (p_popl_actn_typ_id = g_old_rec.popl_actn_typ_id and
129: p_object_version_number = g_old_rec.object_version_number) Then
130: hr_utility.set_location(l_proc, 10);
131: --
132: -- The g_old_rec is current therefore we must
133: -- set the returning function to true
134: --

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

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

Line 148: hr_utility.raise_error;

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

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

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

Line 153: hr_utility.raise_error;

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

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

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

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

155: hr_utility.set_location(l_proc, 15);
156: l_fct_ret := true;
157: End If;
158: End If;
159: hr_utility.set_location(' Leaving:'||l_proc, 20);
160: Return (l_fct_ret);
161: --
162: End api_updating;
163: --

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

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

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

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

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

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

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

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

Line 198: hr_utility.raise_error;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Line 411: hr_utility.raise_error;

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

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

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

Line 416: hr_utility.raise_error;

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

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

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

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

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

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

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

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

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

Line 448: hr_utility.raise_error;

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

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

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

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

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

Line 467: hr_utility.set_message_token('TABLE_NAME', 'ben_popl_actn_typ_f');

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

Line 468: hr_utility.raise_error;

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

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

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

Line 474: hr_utility.set_message_token('TABLE_NAME', 'ben_popl_actn_typ_f');

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

Line 475: hr_utility.raise_error;

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

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

530: l_proc varchar2(72) := g_package||'convert_args';
531: --
532: Begin
533: --
534: hr_utility.set_location('Entering:'||l_proc, 5);
535: --
536: -- Convert arguments into local l_rec structure.
537: --
538: l_rec.popl_actn_typ_id := p_popl_actn_typ_id;

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

580: l_rec.once_or_always := p_once_or_always;
581: --
582: -- Return the plsql record structure.
583: --
584: hr_utility.set_location(' Leaving:'||l_proc, 10);
585: Return(l_rec);
586: --
587: End convert_args;
588: --