42: l_api_updating boolean;
43: --
44: Begin
45: --
46: hr_utility.set_location('Entering:'||l_proc, 5);
47: --
48: l_api_updating := ben_asr_shd.api_updating
49: (p_effective_date => p_effective_date,
50: p_asnt_set_rt_id => p_asnt_set_rt_id,
71: end if;
72: --
73: end if;
74: --
75: hr_utility.set_location('Leaving:'||l_proc, 10);
76: --
77: End chk_asnt_set_rt_id;
78:
79:
134: and p_validation_end_date >= effective_start_date;
135: --
136: BEGIN
137: --
138: hr_utility.set_location('Entering:'||l_proc, 5);
139: --
140: l_api_updating := ben_asr_shd.api_updating
141: (p_asnt_set_rt_id => p_asnt_set_rt_id,
142: p_effective_date => p_effective_date,
161: end if;
162: close c_dup;
163: --
164: end if;
165: hr_utility.set_location('Leaving:'||l_proc,10);
166: --
167: END chk_dup_record;
168:
169: --
202: l_api_updating boolean;
203: --
204: Begin
205: --
206: hr_utility.set_location('Entering:'||l_proc, 5);
207: --
208: l_api_updating := ben_asr_shd.api_updating
209: (p_asnt_set_rt_id => p_asnt_set_rt_id,
210: p_effective_date => p_effective_date,
224: p_effective_date => p_effective_date) then
225: --
226: -- raise error as does not exist as lookup
227: --
228: hr_utility.set_message(801,'HR_LOOKUP_DOES_NOT_EXIST');
229: hr_utility.raise_error;
230: --
231: end if;
232: --
225: --
226: -- raise error as does not exist as lookup
227: --
228: hr_utility.set_message(801,'HR_LOOKUP_DOES_NOT_EXIST');
229: hr_utility.raise_error;
230: --
231: end if;
232: --
233: end if;
231: end if;
232: --
233: end if;
234: --
235: hr_utility.set_location('Leaving:'||l_proc,10);
236: --
237: end chk_excld_flag;
238: --
239: --
280: and business_group_id + 0 = p_business_group_id
281: and ordr_num = p_ordr_num;
282: --
283: Begin
284: hr_utility.set_location('Entering:'||l_proc, 5);
285: --
286: open c1;
287: fetch c1 into l_dummy;
288: --
296: null;
297: end if;
298: close c1;
299: --
300: hr_utility.set_location('Leaving:'||l_proc, 15);
301: End chk_duplicate_ordr_num;
302: --
303: -- ----------------------------------------------------------------------------
304: -- |--------------------------< dt_update_validate >--------------------------|
339: l_integrity_error Exception;
340: l_table_name all_tables.table_name%TYPE;
341: --
342: Begin
343: hr_utility.set_location('Entering:'||l_proc, 5);
344: --
345: -- Ensure that the p_datetrack_mode argument is not null
346: --
347: hr_api.mandatory_arg_error
378: End If;
379: --
380: End If;
381: --
382: hr_utility.set_location(' Leaving:'||l_proc, 10);
383: Exception
384: When l_integrity_error Then
385: --
386: -- A referential integrity check was violated therefore
391: --
392: -- An unhandled or unexpected error has occurred which
393: -- we must report
394: --
395: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
396: hr_utility.set_message_token('PROCEDURE', l_proc);
397: hr_utility.set_message_token('STEP','15');
398: hr_utility.raise_error;
399: End dt_update_validate;
392: -- An unhandled or unexpected error has occurred which
393: -- we must report
394: --
395: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
396: hr_utility.set_message_token('PROCEDURE', l_proc);
397: hr_utility.set_message_token('STEP','15');
398: hr_utility.raise_error;
399: End dt_update_validate;
400: --
393: -- we must report
394: --
395: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
396: hr_utility.set_message_token('PROCEDURE', l_proc);
397: hr_utility.set_message_token('STEP','15');
398: hr_utility.raise_error;
399: End dt_update_validate;
400: --
401: -- ----------------------------------------------------------------------------
394: --
395: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
396: hr_utility.set_message_token('PROCEDURE', l_proc);
397: hr_utility.set_message_token('STEP','15');
398: hr_utility.raise_error;
399: End dt_update_validate;
400: --
401: -- ----------------------------------------------------------------------------
402: -- |--------------------------< dt_delete_validate >--------------------------|
443: l_rows_exist Exception;
444: l_table_name all_tables.table_name%TYPE;
445: --
446: Begin
447: hr_utility.set_location('Entering:'||l_proc, 5);
448: --
449: -- Ensure that the p_datetrack_mode argument is not null
450: --
451: hr_api.mandatory_arg_error
480: --
481: --
482: End If;
483: --
484: hr_utility.set_location(' Leaving:'||l_proc, 10);
485: Exception
486: When l_rows_exist Then
487: --
488: -- A referential integrity check was violated therefore
494: --
495: -- An unhandled or unexpected error has occurred which
496: -- we must report
497: --
498: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
499: hr_utility.set_message_token('PROCEDURE', l_proc);
500: hr_utility.set_message_token('STEP','15');
501: hr_utility.raise_error;
502: End dt_delete_validate;
495: -- An unhandled or unexpected error has occurred which
496: -- we must report
497: --
498: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
499: hr_utility.set_message_token('PROCEDURE', l_proc);
500: hr_utility.set_message_token('STEP','15');
501: hr_utility.raise_error;
502: End dt_delete_validate;
503: --
496: -- we must report
497: --
498: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
499: hr_utility.set_message_token('PROCEDURE', l_proc);
500: hr_utility.set_message_token('STEP','15');
501: hr_utility.raise_error;
502: End dt_delete_validate;
503: --
504: -- ----------------------------------------------------------------------------
497: --
498: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
499: hr_utility.set_message_token('PROCEDURE', l_proc);
500: hr_utility.set_message_token('STEP','15');
501: hr_utility.raise_error;
502: End dt_delete_validate;
503: --
504: -- ----------------------------------------------------------------------------
505: -- |---------------------------< insert_validate >----------------------------|
513: --
514: l_proc varchar2(72) := g_package||'insert_validate';
515: --
516: Begin
517: hr_utility.set_location('Entering:'||l_proc, 5);
518: --
519: -- Call all supporting business operations
520: --
521: --
548: ,p_ordr_num => p_rec.ordr_num
549: ,p_effective_date => p_effective_date
550: ,p_business_group_id => p_rec.business_group_id);
551: --
552: hr_utility.set_location(' Leaving:'||l_proc, 10);
553: End insert_validate;
554: --
555: -- ----------------------------------------------------------------------------
556: -- |---------------------------< update_validate >----------------------------|
564: --
565: l_proc varchar2(72) := g_package||'update_validate';
566: --
567: Begin
568: hr_utility.set_location('Entering:'||l_proc, 5);
569: --
570: -- Call all supporting business operations
571: --
572: --
607: p_datetrack_mode => p_datetrack_mode,
608: p_validation_start_date => p_validation_start_date,
609: p_validation_end_date => p_validation_end_date);
610: --
611: hr_utility.set_location(' Leaving:'||l_proc, 10);
612: End update_validate;
613: --
614: -- ----------------------------------------------------------------------------
615: -- |---------------------------< delete_validate >----------------------------|
623: --
624: l_proc varchar2(72) := g_package||'delete_validate';
625: --
626: Begin
627: hr_utility.set_location('Entering:'||l_proc, 5);
628: --
629: -- Call all supporting business operations
630: --
631: dt_delete_validate
633: p_validation_start_date => p_validation_start_date,
634: p_validation_end_date => p_validation_end_date,
635: p_asnt_set_rt_id => p_rec.asnt_set_rt_id);
636: --
637: hr_utility.set_location(' Leaving:'||l_proc, 10);
638: End delete_validate;
639: --
640: --
641: -- ---------------------------------------------------------------------------
660: l_proc varchar2(72) := g_package||'return_legislation_code';
661: --
662: begin
663: --
664: hr_utility.set_location('Entering:'|| l_proc, 10);
665: --
666: -- Ensure that all the mandatory parameter are not null
667: --
668: hr_api.mandatory_arg_error(p_api_name => l_proc,
678: close csr_leg_code;
679: --
680: -- The primary key is invalid therefore we must error
681: --
682: hr_utility.set_message(801,'HR_7220_INVALID_PRIMARY_KEY');
683: hr_utility.raise_error;
684: --
685: end if;
686: --
679: --
680: -- The primary key is invalid therefore we must error
681: --
682: hr_utility.set_message(801,'HR_7220_INVALID_PRIMARY_KEY');
683: hr_utility.raise_error;
684: --
685: end if;
686: --
687: close csr_leg_code;
685: end if;
686: --
687: close csr_leg_code;
688: --
689: hr_utility.set_location(' Leaving:'|| l_proc, 20);
690: --
691: return l_legislation_code;
692: --
693: end return_legislation_code;