44: Begin
45: --
46: hr_utility.set_location('Entering:'||l_proc, 5);
47: --
48: l_api_updating := ben_cer_shd.api_updating
49: (p_effective_date => p_effective_date,
50: p_prtn_eligy_rl_id => p_prtn_eligy_rl_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_prtn_eligy_rl_id,hr_api.g_number)
55: <> ben_cer_shd.g_old_rec.prtn_eligy_rl_id) then
56: --
57: -- raise error as PK has changed
58: --
59: ben_cer_shd.constraint_error('BEN_ELIGY_RL_F_PK');
55: <> ben_cer_shd.g_old_rec.prtn_eligy_rl_id) then
56: --
57: -- raise error as PK has changed
58: --
59: ben_cer_shd.constraint_error('BEN_ELIGY_RL_F_PK');
60: --
61: elsif not l_api_updating then
62: --
63: -- check if PK is null
65: if p_prtn_eligy_rl_id is not null then
66: --
67: -- raise error as PK is not null
68: --
69: ben_cer_shd.constraint_error('BEN_ELIGY_RL_F_PK');
70: --
71: end if;
72: --
73: end if;
113: Begin
114: --
115: hr_utility.set_location('Entering:'||l_proc, 5);
116: --
117: l_api_updating := ben_cer_shd.api_updating
118: (p_prtn_eligy_rl_id => p_prtn_eligy_rl_id,
119: p_effective_date => p_effective_date,
120: p_object_version_number => p_object_version_number);
121: --
120: p_object_version_number => p_object_version_number);
121: --
122: if (l_api_updating
123: and p_mndtry_flag
124: <> nvl(ben_cer_shd.g_old_rec.mndtry_flag,hr_api.g_varchar2)
125: or not l_api_updating) then
126: --
127: -- check if value of lookup falls within lookup type.
128: --
184: Begin
185: --
186: hr_utility.set_location('Entering:'||l_proc, 5);
187: --
188: l_api_updating := ben_cer_shd.api_updating
189: (p_prtn_eligy_rl_id => p_prtn_eligy_rl_id,
190: p_effective_date => p_effective_date,
191: p_object_version_number => p_object_version_number);
192: --
191: p_object_version_number => p_object_version_number);
192: --
193: if (l_api_updating
194: and p_drvbl_fctr_apls_flag
195: <> nvl(ben_cer_shd.g_old_rec.drvbl_fctr_apls_flag,hr_api.g_varchar2)
196: or not l_api_updating) then
197: --
198: -- check if value of lookup falls within lookup type.
199: --
272: Begin
273: --
274: hr_utility.set_location('Entering:'||l_proc, 5);
275: --
276: l_api_updating := ben_cer_shd.api_updating
277: (p_prtn_eligy_rl_id => p_prtn_eligy_rl_id,
278: p_effective_date => p_effective_date,
279: p_object_version_number => p_object_version_number);
280: --
279: p_object_version_number => p_object_version_number);
280: --
281: if (l_api_updating
282: and nvl(p_formula_id,hr_api.g_number)
283: <> ben_cer_shd.g_old_rec.formula_id
284: or not l_api_updating)
285: and p_formula_id is not null then
286: --
287: -- check if value of formula rule is valid.
682: -- ----------------------------------------------------------------------------
683: -- |---------------------------< insert_validate >----------------------------|
684: -- ----------------------------------------------------------------------------
685: Procedure insert_validate
686: (p_rec in ben_cer_shd.g_rec_type,
687: p_effective_date in date,
688: p_datetrack_mode in varchar2,
689: p_validation_start_date in date,
690: p_validation_end_date in date) is
741: -- ----------------------------------------------------------------------------
742: -- |---------------------------< update_validate >----------------------------|
743: -- ----------------------------------------------------------------------------
744: Procedure update_validate
745: (p_rec in ben_cer_shd.g_rec_type,
746: p_effective_date in date,
747: p_datetrack_mode in varchar2,
748: p_validation_start_date in date,
749: p_validation_end_date in date) is
808: -- ----------------------------------------------------------------------------
809: -- |---------------------------< delete_validate >----------------------------|
810: -- ----------------------------------------------------------------------------
811: Procedure delete_validate
812: (p_rec in ben_cer_shd.g_rec_type,
813: p_effective_date in date,
814: p_datetrack_mode in varchar2,
815: p_validation_start_date in date,
816: p_validation_end_date in date) is