44: Begin
45: --
46: hr_utility.set_location('Entering:'||l_proc, 5);
47: --
48: l_api_updating := ben_egn_shd.api_updating
49: (p_effective_date => p_effective_date,
50: p_ELIG_GNDR_PRTE_id => p_ELIG_GNDR_PRTE_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_ELIG_GNDR_PRTE_id,hr_api.g_number)
55: <> ben_egn_shd.g_old_rec.ELIG_GNDR_PRTE_id) then
56: --
57: -- raise error as PK has changed
58: --
59: ben_egn_shd.constraint_error('BEN_ELIG_GNDR_PRTE_PK');
55: <> ben_egn_shd.g_old_rec.ELIG_GNDR_PRTE_id) then
56: --
57: -- raise error as PK has changed
58: --
59: ben_egn_shd.constraint_error('BEN_ELIG_GNDR_PRTE_PK');
60: --
61: elsif not l_api_updating then
62: --
63: -- check if PK is null
65: if p_ELIG_GNDR_PRTE_id is not null then
66: --
67: -- raise error as PK is not null
68: --
69: ben_egn_shd.constraint_error('BEN_ELIG_GNDR_PRTE_PK');
70: --
71: end if;
72: --
73: end if;
121: Begin
122: --
123: hr_utility.set_location('Entering:'||l_proc, 5);
124: --
125: l_api_updating := ben_egn_shd.api_updating
126: (p_ELIG_GNDR_PRTE_id => p_ELIG_GNDR_PRTE_id,
127: p_effective_date => p_effective_date,
128: p_object_version_number => p_object_version_number);
129: --
188: Begin
189: --
190: hr_utility.set_location('Entering:'||l_proc, 5);
191: --
192: l_api_updating := ben_egn_shd.api_updating
193: (p_ELIG_GNDR_PRTE_id => p_ELIG_GNDR_PRTE_id,
194: p_effective_date => p_effective_date,
195: p_object_version_number => p_object_version_number);
196: --
195: p_object_version_number => p_object_version_number);
196: --
197: if (l_api_updating
198: and p_sex
199: <> nvl(ben_egn_shd.g_old_rec.sex ,hr_api.g_varchar2)
200: or not l_api_updating) then
201: --
202: -- check if value of lookup falls within lookup type.
203: --
315: Begin
316: --
317: hr_utility.set_location('Entering:'||l_proc, 5);
318: --
319: l_api_updating := ben_egn_shd.api_updating
320: (p_ELIG_GNDR_PRTE_id => p_ELIG_GNDR_PRTE_id,
321: p_effective_date => p_effective_date,
322: p_object_version_number => p_object_version_number);
323: --
322: p_object_version_number => p_object_version_number);
323: --
324: if (l_api_updating
325: and p_excld_flag
326: <> nvl(ben_egn_shd.g_old_rec.excld_flag,hr_api.g_varchar2)
327: or not l_api_updating) then
328: --
329: -- check if value of lookup falls within lookup type.
330: --
551: -- ----------------------------------------------------------------------------
552: -- |---------------------------< insert_validate >----------------------------|
553: -- ----------------------------------------------------------------------------
554: Procedure insert_validate
555: (p_rec in ben_egn_shd.g_rec_type,
556: p_effective_date in date,
557: p_datetrack_mode in varchar2,
558: p_validation_start_date in date,
559: p_validation_end_date in date) is
604: -- ----------------------------------------------------------------------------
605: -- |---------------------------< update_validate >----------------------------|
606: -- ----------------------------------------------------------------------------
607: Procedure update_validate
608: (p_rec in ben_egn_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
666: -- ----------------------------------------------------------------------------
667: -- |---------------------------< delete_validate >----------------------------|
668: -- ----------------------------------------------------------------------------
669: Procedure delete_validate
670: (p_rec in ben_egn_shd.g_rec_type,
671: p_effective_date in date,
672: p_datetrack_mode in varchar2,
673: p_validation_start_date in date,
674: p_validation_end_date in date) is