DBA Data[Home] [Help]

APPS.BEN_ART_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_AGE_RT_F_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_AGE_RT_F_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_AGE_RT_F_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_AGE_RT_F_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_AGE_RT_F_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 114: hr_utility.set_location('Entering:'||l_proc, 5);

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

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

123: l_fct_ret := false;
124: Else
125: If (p_age_rt_id = g_old_rec.age_rt_id and
126: p_object_version_number = g_old_rec.object_version_number) Then
127: hr_utility.set_location(l_proc, 10);
128: --
129: -- The g_old_rec is current therefore we must
130: -- set the returning function to true
131: --

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

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

Line 145: hr_utility.raise_error;

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

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

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

Line 150: hr_utility.raise_error;

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

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

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

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

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

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

180: and p_effective_date
181: between t.effective_start_date and t.effective_end_date;
182: --
183: Begin
184: hr_utility.set_location('Entering:'||l_proc, 5);
185: --
186: Open C_Sel1;
187: Fetch C_Sel1 Into l_parent_key_value1;
188: If C_Sel1%notfound then

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

186: Open C_Sel1;
187: Fetch C_Sel1 Into l_parent_key_value1;
188: If C_Sel1%notfound then
189: Close C_Sel1;
190: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
191: hr_utility.set_message_token('PROCEDURE', l_proc);
192: hr_utility.set_message_token('STEP','10');
193: hr_utility.raise_error;
194: End If;

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

187: Fetch C_Sel1 Into l_parent_key_value1;
188: If C_Sel1%notfound then
189: Close C_Sel1;
190: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
191: hr_utility.set_message_token('PROCEDURE', l_proc);
192: hr_utility.set_message_token('STEP','10');
193: hr_utility.raise_error;
194: End If;
195: Close C_Sel1;

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

188: If C_Sel1%notfound then
189: Close C_Sel1;
190: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
191: hr_utility.set_message_token('PROCEDURE', l_proc);
192: hr_utility.set_message_token('STEP','10');
193: hr_utility.raise_error;
194: End If;
195: Close C_Sel1;
196: --

Line 193: hr_utility.raise_error;

189: Close C_Sel1;
190: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
191: hr_utility.set_message_token('PROCEDURE', l_proc);
192: hr_utility.set_message_token('STEP','10');
193: hr_utility.raise_error;
194: End If;
195: Close C_Sel1;
196: --
197: -- Call the corresponding datetrack api

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

208: p_delete => p_delete,
209: p_future_change => p_future_change,
210: p_delete_next_change => p_delete_next_change);
211: --
212: hr_utility.set_location(' Leaving:'||l_proc, 10);
213: End find_dt_del_modes;
214: --
215: -- ----------------------------------------------------------------------------
216: -- |--------------------------< find_dt_upd_modes >---------------------------|

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

225: --
226: l_proc varchar2(72) := g_package||'find_dt_upd_modes';
227: --
228: Begin
229: hr_utility.set_location('Entering:'||l_proc, 5);
230: --
231: -- Call the corresponding datetrack api
232: --
233: dt_api.find_dt_upd_modes

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

239: p_update => p_update,
240: p_update_override => p_update_override,
241: p_update_change_insert => p_update_change_insert);
242: --
243: hr_utility.set_location(' Leaving:'||l_proc, 10);
244: End find_dt_upd_modes;
245: --
246: -- ----------------------------------------------------------------------------
247: -- |------------------------< upd_effective_end_date >------------------------|

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

257: l_proc varchar2(72) := g_package||'upd_effective_end_date';
258: l_object_version_number number;
259: --
260: Begin
261: hr_utility.set_location('Entering:'||l_proc, 5);
262: --
263: -- Because we are updating a row we must get the next object
264: -- version number.
265: --

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

268: (p_base_table_name => 'ben_age_rt_f',
269: p_base_key_column => 'age_rt_id',
270: p_base_key_value => p_base_key_value);
271: --
272: hr_utility.set_location(l_proc, 10);
273: g_api_dml := true; -- Set the api dml status
274: --
275: -- Update the specified datetrack row setting the effective
276: -- end date to the specified new effective end date.

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

283: between t.effective_start_date and t.effective_end_date;
284: --
285: g_api_dml := false; -- Unset the api dml status
286: p_object_version_number := l_object_version_number;
287: hr_utility.set_location(' Leaving:'||l_proc, 15);
288: --
289: Exception
290: When Others Then
291: g_api_dml := false; -- Unset the api dml status

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

362: --
363: --
364: --
365: Begin
366: hr_utility.set_location('Entering:'||l_proc, 5);
367: --
368: -- Ensure that all the mandatory arguments are not null
369: --
370: hr_api.mandatory_arg_error(p_api_name => l_proc,

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

395: Close C_Sel1;
396: --
397: -- The primary key is invalid therefore we must error
398: --
399: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
400: hr_utility.raise_error;
401: End If;
402: Close C_Sel1;
403: If (p_object_version_number <> g_old_rec.object_version_number) Then

Line 400: hr_utility.raise_error;

396: --
397: -- The primary key is invalid therefore we must error
398: --
399: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
400: hr_utility.raise_error;
401: End If;
402: Close C_Sel1;
403: If (p_object_version_number <> g_old_rec.object_version_number) Then
404: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');

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

400: hr_utility.raise_error;
401: End If;
402: Close C_Sel1;
403: If (p_object_version_number <> g_old_rec.object_version_number) Then
404: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
405: hr_utility.raise_error;
406: End If;
407: hr_utility.set_location(l_proc, 15);
408: --

Line 405: hr_utility.raise_error;

401: End If;
402: Close C_Sel1;
403: If (p_object_version_number <> g_old_rec.object_version_number) Then
404: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
405: hr_utility.raise_error;
406: End If;
407: hr_utility.set_location(l_proc, 15);
408: --
409: --

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

403: If (p_object_version_number <> g_old_rec.object_version_number) Then
404: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
405: hr_utility.raise_error;
406: End If;
407: hr_utility.set_location(l_proc, 15);
408: --
409: --
410: -- Validate the datetrack mode mode getting the validation start
411: -- and end dates for the specified datetrack operation.

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

427: -- We are doing a datetrack 'INSERT' which is illegal within this
428: -- procedure therefore we must error (note: to lck on insert the
429: -- private procedure ins_lck should be called).
430: --
431: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
432: hr_utility.set_message_token('PROCEDURE', l_proc);
433: hr_utility.set_message_token('STEP','20');
434: hr_utility.raise_error;
435: End If;

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

428: -- procedure therefore we must error (note: to lck on insert the
429: -- private procedure ins_lck should be called).
430: --
431: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
432: hr_utility.set_message_token('PROCEDURE', l_proc);
433: hr_utility.set_message_token('STEP','20');
434: hr_utility.raise_error;
435: End If;
436: --

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

429: -- private procedure ins_lck should be called).
430: --
431: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
432: hr_utility.set_message_token('PROCEDURE', l_proc);
433: hr_utility.set_message_token('STEP','20');
434: hr_utility.raise_error;
435: End If;
436: --
437: -- Set the validation start and end date OUT arguments

Line 434: hr_utility.raise_error;

430: --
431: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
432: hr_utility.set_message_token('PROCEDURE', l_proc);
433: hr_utility.set_message_token('STEP','20');
434: hr_utility.raise_error;
435: End If;
436: --
437: -- Set the validation start and end date OUT arguments
438: --

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

438: --
439: p_validation_start_date := l_validation_start_date;
440: p_validation_end_date := l_validation_end_date;
441: --
442: hr_utility.set_location(' Leaving:'||l_proc, 30);
443: --
444: -- We need to trap the ORA LOCK exception
445: --
446: Exception

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

448: --
449: -- The object is locked therefore we need to supply a meaningful
450: -- error message.
451: --
452: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
453: hr_utility.set_message_token('TABLE_NAME', 'ben_age_rt_f');
454: hr_utility.raise_error;
455: When l_object_invalid then
456: --

Line 453: hr_utility.set_message_token('TABLE_NAME', 'ben_age_rt_f');

449: -- The object is locked therefore we need to supply a meaningful
450: -- error message.
451: --
452: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
453: hr_utility.set_message_token('TABLE_NAME', 'ben_age_rt_f');
454: hr_utility.raise_error;
455: When l_object_invalid then
456: --
457: -- The object doesn't exist or is invalid

Line 454: hr_utility.raise_error;

450: -- error message.
451: --
452: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
453: hr_utility.set_message_token('TABLE_NAME', 'ben_age_rt_f');
454: hr_utility.raise_error;
455: When l_object_invalid then
456: --
457: -- The object doesn't exist or is invalid
458: --

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

455: When l_object_invalid then
456: --
457: -- The object doesn't exist or is invalid
458: --
459: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
460: hr_utility.set_message_token('TABLE_NAME', 'ben_age_rt_f');
461: hr_utility.raise_error;
462: End lck;
463: --

Line 460: hr_utility.set_message_token('TABLE_NAME', 'ben_age_rt_f');

456: --
457: -- The object doesn't exist or is invalid
458: --
459: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
460: hr_utility.set_message_token('TABLE_NAME', 'ben_age_rt_f');
461: hr_utility.raise_error;
462: End lck;
463: --
464: -- ----------------------------------------------------------------------------

Line 461: hr_utility.raise_error;

457: -- The object doesn't exist or is invalid
458: --
459: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
460: hr_utility.set_message_token('TABLE_NAME', 'ben_age_rt_f');
461: hr_utility.raise_error;
462: End lck;
463: --
464: -- ----------------------------------------------------------------------------
465: -- |-----------------------------< convert_args >-----------------------------|

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

513: l_proc varchar2(72) := g_package||'convert_args';
514: --
515: Begin
516: --
517: hr_utility.set_location('Entering:'||l_proc, 5);
518: --
519: -- Convert arguments into local l_rec structure.
520: --
521: l_rec.age_rt_id := p_age_rt_id;

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

560: l_rec.object_version_number := p_object_version_number;
561: --
562: -- Return the plsql record structure.
563: --
564: hr_utility.set_location(' Leaving:'||l_proc, 10);
565: Return(l_rec);
566: --
567: End convert_args;
568: --