55: <> ben_pcm_shd.g_old_rec.per_cm_id) then
56: --
57: -- raise error as PK has changed
58: --
59: ben_pcm_shd.constraint_error('BEN_PER_CM_F_PK');
60: --
61: elsif not l_api_updating then
62: --
63: -- check if PK is null
65: if p_per_cm_id is not null then
66: --
67: -- raise error as PK is not null
68: --
69: ben_pcm_shd.constraint_error('BEN_PER_CM_F_PK');
70: --
71: end if;
72: --
73: end if;
525: --
526: cursor csr_leg_code is
527: select a.legislation_code
528: from per_business_groups a,
529: ben_per_cm_f b
530: where b.per_cm_id = p_per_cm_id
531: and a.business_group_id = b.business_group_id;
532: --
533: -- Declare local variables