44: Begin
45: --
46: hr_utility.set_location('Entering:'||l_proc, 5);
47: --
48: l_api_updating := ben_apf_shd.api_updating
49: (p_effective_date => p_effective_date,
50: p_acty_rt_pymt_sched_id => p_acty_rt_pymt_sched_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_acty_rt_pymt_sched_id,hr_api.g_number)
55: <> ben_apf_shd.g_old_rec.acty_rt_pymt_sched_id) then
56: --
57: -- raise error as PK has changed
58: --
59: ben_apf_shd.constraint_error('BEN_ACTY_RT_PYMT_SCHED_F_PK');
55: <> ben_apf_shd.g_old_rec.acty_rt_pymt_sched_id) then
56: --
57: -- raise error as PK has changed
58: --
59: ben_apf_shd.constraint_error('BEN_ACTY_RT_PYMT_SCHED_F_PK');
60: --
61: elsif not l_api_updating then
62: --
63: -- check if PK is null
65: if p_acty_rt_pymt_sched_id is not null then
66: --
67: -- raise error as PK is not null
68: --
69: ben_apf_shd.constraint_error('BEN_ACTY_RT_PYMT_SCHED_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_apf_shd.api_updating
118: (p_acty_rt_pymt_sched_id => p_acty_rt_pymt_sched_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_pymt_sched_cd
124: <> nvl(ben_apf_shd.g_old_rec.pymt_sched_cd,hr_api.g_varchar2)
125: or not l_api_updating) then
126: --
127: -- check if value of lookup falls within lookup type.
128: --
199: Begin
200: --
201: hr_utility.set_location('Entering:'||l_proc, 5);
202: --
203: l_api_updating := ben_apf_shd.api_updating
204: (p_acty_rt_pymt_sched_id => p_acty_rt_pymt_sched_id,
205: p_effective_date => p_effective_date,
206: p_object_version_number => p_object_version_number);
207: --
206: p_object_version_number => p_object_version_number);
207: --
208: if (l_api_updating
209: and nvl(p_pymt_sched_rl,hr_api.g_number)
210: <> ben_apf_shd.g_old_rec.pymt_sched_rl
211: or not l_api_updating)
212: and p_pymt_sched_rl is not null then
213: --
214: -- check if value of formula rule is valid.
514: -- ----------------------------------------------------------------------------
515: -- |---------------------------< insert_validate >----------------------------|
516: -- ----------------------------------------------------------------------------
517: Procedure insert_validate
518: (p_rec in ben_apf_shd.g_rec_type,
519: p_effective_date in date,
520: p_datetrack_mode in varchar2,
521: p_validation_start_date in date,
522: p_validation_end_date in date) is
555: -- ----------------------------------------------------------------------------
556: -- |---------------------------< update_validate >----------------------------|
557: -- ----------------------------------------------------------------------------
558: Procedure update_validate
559: (p_rec in ben_apf_shd.g_rec_type,
560: p_effective_date in date,
561: p_datetrack_mode in varchar2,
562: p_validation_start_date in date,
563: p_validation_end_date in date) is
604: -- ----------------------------------------------------------------------------
605: -- |---------------------------< delete_validate >----------------------------|
606: -- ----------------------------------------------------------------------------
607: Procedure delete_validate
608: (p_rec in ben_apf_shd.g_rec_type,
609: p_effective_date in date,
610: p_datetrack_mode in varchar2,
611: p_validation_start_date in date,
612: p_validation_end_date in date) is