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