44: Begin
45: --
46: hr_utility.set_location('Entering:'||l_proc, 5);
47: --
48: l_api_updating := ben_brc_shd.api_updating
49: (p_effective_date => p_effective_date,
50: p_bnft_rstrn_ctfn_id => p_bnft_rstrn_ctfn_id,
51: p_object_version_number => p_object_version_number);
52: --
51: p_object_version_number => p_object_version_number);
52: --
53: if (l_api_updating
54: and nvl(p_bnft_rstrn_ctfn_id,hr_api.g_number)
55: <> ben_brc_shd.g_old_rec.bnft_rstrn_ctfn_id) then
56: --
57: -- raise error as PK has changed
58: --
59: ben_brc_shd.constraint_error('BEN_BNFT_RSTRN_CTFN_F_PK');
55: <> ben_brc_shd.g_old_rec.bnft_rstrn_ctfn_id) then
56: --
57: -- raise error as PK has changed
58: --
59: ben_brc_shd.constraint_error('BEN_BNFT_RSTRN_CTFN_F_PK');
60: --
61: elsif not l_api_updating then
62: --
63: -- check if PK is null
65: if p_bnft_rstrn_ctfn_id is not null then
66: --
67: -- raise error as PK is not null
68: --
69: ben_brc_shd.constraint_error('BEN_BNFT_RSTRN_CTFN_F_PK');
70: --
71: end if;
72: --
73: end if;
114: Begin
115: --
116: hr_utility.set_location('Entering:'||l_proc, 5);
117: --
118: l_api_updating := ben_brc_shd.api_updating
119: (p_bnft_rstrn_ctfn_id => p_bnft_rstrn_ctfn_id,
120: p_effective_date => p_effective_date,
121: p_object_version_number => p_object_version_number);
122: --
121: p_object_version_number => p_object_version_number);
122: --
123: if (l_api_updating
124: and nvl(p_ctfn_rqd_when_rl,hr_api.g_number)
125: <> ben_brc_shd.g_old_rec.ctfn_rqd_when_rl
126: or not l_api_updating)
127: and p_ctfn_rqd_when_rl is not null then
128: --
129: -- check if value of formula rule is valid.
186: Begin
187: --
188: hr_utility.set_location('Entering:'||l_proc, 5);
189: --
190: l_api_updating := ben_brc_shd.api_updating
191: (p_bnft_rstrn_ctfn_id => p_bnft_rstrn_ctfn_id,
192: p_effective_date => p_effective_date,
193: p_object_version_number => p_object_version_number);
194: --
193: p_object_version_number => p_object_version_number);
194: --
195: if (l_api_updating
196: and p_enrt_ctfn_typ_cd
197: <> nvl(ben_brc_shd.g_old_rec.enrt_ctfn_typ_cd,hr_api.g_varchar2)
198: or not l_api_updating)
199: and p_enrt_ctfn_typ_cd is not null then
200: --
201: -- check if value of lookup falls within lookup type.
322: Begin
323: --
324: hr_utility.set_location('Entering:'||l_proc, 5);
325: --
326: l_api_updating := ben_brc_shd.api_updating
327: (p_bnft_rstrn_ctfn_id => p_bnft_rstrn_ctfn_id,
328: p_effective_date => p_effective_date,
329: p_object_version_number => p_object_version_number);
330: --
329: p_object_version_number => p_object_version_number);
330: --
331: if (l_api_updating
332: and p_rqd_flag
333: <> nvl(ben_brc_shd.g_old_rec.rqd_flag,hr_api.g_varchar2)
334: or not l_api_updating) and p_rqd_flag is not null then
335: --
336: -- check if value of lookup falls within lookup type.
337: --
560: -- ----------------------------------------------------------------------------
561: -- |---------------------------< insert_validate >----------------------------|
562: -- ----------------------------------------------------------------------------
563: Procedure insert_validate
564: (p_rec in ben_brc_shd.g_rec_type,
565: p_effective_date in date,
566: p_datetrack_mode in varchar2,
567: p_validation_start_date in date,
568: p_validation_end_date in date) is
616: -- ----------------------------------------------------------------------------
617: -- |---------------------------< update_validate >----------------------------|
618: -- ----------------------------------------------------------------------------
619: Procedure update_validate
620: (p_rec in ben_brc_shd.g_rec_type,
621: p_effective_date in date,
622: p_datetrack_mode in varchar2,
623: p_validation_start_date in date,
624: p_validation_end_date in date) is
680: -- ----------------------------------------------------------------------------
681: -- |---------------------------< delete_validate >----------------------------|
682: -- ----------------------------------------------------------------------------
683: Procedure delete_validate
684: (p_rec in ben_brc_shd.g_rec_type,
685: p_effective_date in date,
686: p_datetrack_mode in varchar2,
687: p_validation_start_date in date,
688: p_validation_end_date in date) is