52: <> pay_con_shd.g_old_rec.contr_history_id) then
53: --
54: -- raise error as PK has changed
55: --
56: pay_con_shd.constraint_error('PAY_US_CONTRIBUTION_HISTORY_PK');
57: --
58: elsif not l_api_updating then
59: --
60: -- check if PK is null
62: if p_contr_history_id is not null then
63: --
64: -- raise error as PK is not null
65: --
66: pay_con_shd.constraint_error('PAY_US_CONTRIBUTION_HISTORY_PK');
67: --
68: end if;
69: --
70: end if;
355: --
356: cursor csr_leg_code is
357: select a.legislation_code
358: from per_business_groups a,
359: pay_us_contribution_history b
360: where b.contr_history_id = p_contr_history_id
361: and a.business_group_id = b.business_group_id;
362: --
363: -- Declare local variables