55: <> ben_eai_shd.g_old_rec.elig_enrld_anthr_plip_id) then
56: --
57: -- raise error as PK has changed
58: --
59: ben_eai_shd.constraint_error('BEN_ELIG_ENRLD_ANTHR_PLIP_F_PK');
60: --
61: elsif not l_api_updating then
62: --
63: -- check if PK is null
65: if p_elig_enrld_anthr_plip_id is not null then
66: --
67: -- raise error as PK is not null
68: --
69: ben_eai_shd.constraint_error('BEN_ELIG_ENRLD_ANTHR_PLIP_F_PK');
70: --
71: end if;
72: --
73: end if;
255: l_proc varchar2(72) := g_package||'chk_duplicate_ordr_num';
256: l_dummy char(1);
257: cursor c1 is
258: select null
259: from ben_elig_enrld_anthr_plip_f
260: where elig_enrld_anthr_plip_id <> nvl(p_elig_enrld_anthr_plip_id,-1)
261: and eligy_prfl_id = p_eligy_prfl_id
262: and ordr_num = p_ordr_num
263: and business_group_id = p_business_group_id;
629: --
630: cursor csr_leg_code is
631: select a.legislation_code
632: from per_business_groups a,
633: ben_elig_enrld_anthr_plip_f b
634: where b.elig_enrld_anthr_plip_id = p_elig_enrld_anthr_plip_id
635: and a.business_group_id = b.business_group_id;
636: --
637: -- Declare local variables