[Home] [Help]
52: <> ghr_nla_shd.g_old_rec.noac_la_id) then
53: --
54: -- raise error as PK has changed
55: --
56: ghr_nla_shd.constraint_error('GHR_NOAC_LAS_PK');
57: --
58: elsif not l_api_updating then
59: --
60: -- check if PK is null
62: if p_noac_la_id is not null then
63: --
64: -- raise error as PK is not null
65: --
66: ghr_nla_shd.constraint_error('GHR_NOAC_LAS_PK');
67: --
68: end if;
69: --
70: end if;
135: --
136: -- raise error as FK does not relate to PK in ghr_nature_of_actions
137: -- table.
138: --
139: ghr_nla_shd.constraint_error('GHR_NOAC_LAS_FK1');
140: --
141: end if;
142: --
143: close c1;
464: l_dummy varchar2(1);
465: --
466: cursor c1 is
467: select null
468: from ghr_noac_las a
469: where a.nature_of_action_id = p_nature_of_action_id
470: and a.lac_lookup_code = p_lac_lookup_code;
471: --
472: Begin