52: <> ben_bdi_shd.g_old_rec.batch_dpnt_id) then
53: --
54: -- raise error as PK has changed
55: --
56: ben_bdi_shd.constraint_error('BEN_BATCH_DPNT_INFO_PK');
57: --
58: elsif not l_api_updating then
59: --
60: -- check if PK is null
62: if p_batch_dpnt_id is not null then
63: --
64: -- raise error as PK is not null
65: --
66: ben_bdi_shd.constraint_error('BEN_BATCH_DPNT_INFO_PK');
67: --
68: end if;
69: --
70: end if;
140: --
141: -- raise error as FK does not relate to PK in per_all_people_f
142: -- table.
143: --
144: ben_bdi_shd.constraint_error('BEN_BATCH_DPNT_INFO_DT5');
145: --
146: end if;
147: --
148: close c1;
221: --
222: -- raise error as FK does not relate to PK in ben_oipl_f
223: -- table.
224: --
225: ben_bdi_shd.constraint_error('BEN_BATCH_DPNT_INFO_DT4');
226: --
227: end if;
228: --
229: close c1;
302: --
303: -- raise error as FK does not relate to PK in ben_pl_f
304: -- table.
305: --
306: ben_bdi_shd.constraint_error('BEN_BATCH_DPNT_INFO_DT3');
307: --
308: end if;
309: --
310: close c1;
383: --
384: -- raise error as FK does not relate to PK in ben_pgm_f
385: -- table.
386: --
387: ben_bdi_shd.constraint_error('BEN_BATCH_DPNT_INFO_DT2');
388: --
389: end if;
390: --
391: close c1;
458: --
459: -- raise error as FK does not relate to PK in ben_benefit_actions
460: -- table.
461: --
462: ben_bdi_shd.constraint_error('BEN_BATCH_DPNT_INFO_FK1');
463: --
464: end if;
465: --
466: close c1;
697: --
698: cursor csr_leg_code is
699: select a.legislation_code
700: from per_business_groups a,
701: ben_batch_dpnt_info b
702: where b.batch_dpnt_id = p_batch_dpnt_id
703: and a.business_group_id = b.business_group_id;
704: --
705: -- Declare local variables