55: <> ben_lbr_shd.g_old_rec.ler_bnft_rstrn_id) then
56: --
57: -- raise error as PK has changed
58: --
59: ben_lbr_shd.constraint_error('BEN_LER_BNFT_RSTRN_F_PK');
60: --
61: elsif not l_api_updating then
62: --
63: -- check if PK is null
65: if p_ler_bnft_rstrn_id is not null then
66: --
67: -- raise error as PK is not null
68: --
69: ben_lbr_shd.constraint_error('BEN_LER_BNFT_RSTRN_F_PK');
70: --
71: end if;
72: --
73: end if;
1322: --
1323: cursor csr_leg_code is
1324: select a.legislation_code
1325: from per_business_groups a,
1326: ben_ler_bnft_rstrn_f b
1327: where b.ler_bnft_rstrn_id = p_ler_bnft_rstrn_id
1328: and a.business_group_id = b.business_group_id;
1329: --
1330: -- Declare local variables