55: <> ben_cpt_shd.g_old_rec.cmbn_ptip_opt_id) then
56: --
57: -- raise error as PK has changed
58: --
59: ben_cpt_shd.constraint_error('BEN_CMBN_PTIP_OPT_F_PK');
60: --
61: elsif not l_api_updating then
62: --
63: -- check if PK is null
65: if p_cmbn_ptip_opt_id is not null then
66: --
67: -- raise error as PK is not null
68: --
69: ben_cpt_shd.constraint_error('BEN_CMBN_PTIP_OPT_F_PK');
70: --
71: end if;
72: --
73: end if;
408: --
409: cursor csr_leg_code is
410: select a.legislation_code
411: from per_business_groups a,
412: ben_cmbn_ptip_opt_f b
413: where b.cmbn_ptip_opt_id = p_cmbn_ptip_opt_id
414: and a.business_group_id = b.business_group_id;
415: --
416: -- Declare local variables