[Home] [Help]
107: l_dummy varchar2(1);
108: --
109: cursor c1 is
110: select null
111: from ghr_remarks a
112: where a.remark_id = p_remark_id;
113: --
114: Begin
115: --
123: and nvl(p_remark_id,hr_api.g_number)
124: <> nvl(ghr_nre_shd.g_old_rec.remark_id,hr_api.g_number)
125: or not l_api_updating) then
126: --
127: -- check if remark_id value exists in ghr_remarks table
128: --
129: open c1;
130: --
131: fetch c1 into l_dummy;
132: if c1%notfound then
133: --
134: close c1;
135: --
136: -- raise error as FK does not relate to PK in ghr_remarks
137: -- table.
138: --
139: ghr_nre_shd.constraint_error('GHR_NOAC_REMARKS_FK2');
140: --