44: Begin
45: --
46: hr_utility.set_location('Entering:'||l_proc, 5);
47: --
48: l_api_updating := ben_eao_shd.api_updating
49: (p_effective_date => p_effective_date,
50: p_enrld_anthr_oipl_rt_id => p_enrld_anthr_oipl_rt_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_enrld_anthr_oipl_rt_id,hr_api.g_number)
55: <> ben_eao_shd.g_old_rec.enrld_anthr_oipl_rt_id) then
56: --
57: -- raise error as PK has changed
58: --
59: ben_eao_shd.constraint_error('BEN_ENRLD_ANTHR_OIPL_RT_PK');
55: <> ben_eao_shd.g_old_rec.enrld_anthr_oipl_rt_id) then
56: --
57: -- raise error as PK has changed
58: --
59: ben_eao_shd.constraint_error('BEN_ENRLD_ANTHR_OIPL_RT_PK');
60: --
61: elsif not l_api_updating then
62: --
63: -- check if PK is null
65: if p_enrld_anthr_oipl_rt_id is not null then
66: --
67: -- raise error as PK is not null
68: --
69: ben_eao_shd.constraint_error('BEN_ENRLD_ANTHR_OIPL_RT_PK');
70: --
71: end if;
72: --
73: end if;
138: Begin
139: --
140: hr_utility.set_location('Entering:'||l_proc,5);
141: --
142: l_api_updating := ben_eao_shd.api_updating
143: (p_enrld_anthr_oipl_rt_id => p_enrld_anthr_oipl_rt_id,
144: p_effective_date => p_effective_date,
145: p_object_version_number => p_object_version_number);
146: --
145: p_object_version_number => p_object_version_number);
146: --
147: if (l_api_updating
148: and nvl(p_oipl_id,hr_api.g_number)
149: <> nvl(ben_eao_shd.g_old_rec.oipl_id,hr_api.g_number)
150: or not l_api_updating) then
151: --
152: -- check if oipl_id value exists in the oipl table
153: open c1;
159: --
160: -- raise error as FK does not relate to PK in plan type in program
161: -- table.
162: --
163: ben_eao_shd.constraint_error('BEN_ENRLD_ANTHR_OIPL_RT_DT1');
164: --
165: end if;
166: --
167: close c1;
225: Begin
226: --
227: hr_utility.set_location('Entering:'||l_proc, 5);
228: --
229: l_api_updating := ben_eao_shd.api_updating
230: (p_enrld_anthr_oipl_rt_id => p_enrld_anthr_oipl_rt_id,
231: p_effective_date => p_effective_date,
232: p_object_version_number => p_object_version_number);
233: --
232: p_object_version_number => p_object_version_number);
233: --
234: if (l_api_updating
235: and p_enrl_det_dt_cd
236: <> nvl(ben_eao_shd.g_old_rec.enrl_det_dt_cd,hr_api.g_varchar2)
237: or not l_api_updating)
238: and p_enrl_det_dt_cd is not null then
239: --
240: -- check if value of lookup falls within lookup type.
296: Begin
297: --
298: hr_utility.set_location('Entering:'||l_proc, 5);
299: --
300: l_api_updating := ben_eao_shd.api_updating
301: (p_enrld_anthr_oipl_rt_id => p_enrld_anthr_oipl_rt_id,
302: p_effective_date => p_effective_date,
303: p_object_version_number => p_object_version_number);
304: --
303: p_object_version_number => p_object_version_number);
304: --
305: if (l_api_updating
306: and p_excld_flag
307: <> nvl(ben_eao_shd.g_old_rec.excld_flag,hr_api.g_varchar2)
308: or not l_api_updating) then
309: --
310: -- check if value of lookup falls within lookup type.
311: --
617: -- ----------------------------------------------------------------------------
618: -- |---------------------------< insert_validate >----------------------------|
619: -- ----------------------------------------------------------------------------
620: Procedure insert_validate
621: (p_rec in ben_eao_shd.g_rec_type,
622: p_effective_date in date,
623: p_datetrack_mode in varchar2,
624: p_validation_start_date in date,
625: p_validation_end_date in date) is
676: -- ----------------------------------------------------------------------------
677: -- |---------------------------< update_validate >----------------------------|
678: -- ----------------------------------------------------------------------------
679: Procedure update_validate
680: (p_rec in ben_eao_shd.g_rec_type,
681: p_effective_date in date,
682: p_datetrack_mode in varchar2,
683: p_validation_start_date in date,
684: p_validation_end_date in date) is
744: -- ----------------------------------------------------------------------------
745: -- |---------------------------< delete_validate >----------------------------|
746: -- ----------------------------------------------------------------------------
747: Procedure delete_validate
748: (p_rec in ben_eao_shd.g_rec_type,
749: p_effective_date in date,
750: p_datetrack_mode in varchar2,
751: p_validation_start_date in date,
752: p_validation_end_date in date) is