35: IF (cur_old_ref_values%NOTFOUND) AND (p_action NOT IN ('INSERT', 'VALIDATE_INSERT')) THEN
36: Close cur_old_ref_values;
37: Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
38: IGS_GE_MSG_STACK.ADD;
39: App_Exception.Raise_Exception;
40: Return;
41: END IF;
42: Close cur_old_ref_values;
43:
75: IF upper(column_name) = 'CLOSED_IND' OR COLUMN_NAME IS NULL THEN
76: IF new_references.closed_ind <> upper(NEW_REFERENCES.closed_ind) OR new_references.closed_ind NOT IN ('Y', 'N') THEN
77: Fnd_Message.Set_Name('IGS','IGS_GE_INVALID_VALUE');
78: IGS_GE_MSG_STACK.ADD;
79: App_Exception.Raise_Exception ;
80: END IF;
81: END IF;
82: IF upper(column_name) = 'RES_FCD_CLASS_IND' OR COLUMN_NAME IS NULL THEN
83: IF new_references.RES_FCD_CLASS_IND <> upper(NEW_REFERENCES.RES_FCD_CLASS_IND) OR
83: IF new_references.RES_FCD_CLASS_IND <> upper(NEW_REFERENCES.RES_FCD_CLASS_IND) OR
84: new_references.RES_FCD_CLASS_IND NOT IN ('Y', 'N') THEN
85: Fnd_Message.Set_Name('IGS','IGS_GE_INVALID_VALUE');
86: IGS_GE_MSG_STACK.ADD;
87: App_Exception.Raise_Exception ;
88: END IF;
89: END IF;
90: END Check_Constraints ;
91:
163: ) THEN
164:
165: Fnd_Message.Set_Name ('IGS', 'IGS_GE_RECORD_ALREADY_EXISTS');
166: IGS_GE_MSG_STACK.ADD;
167: App_Exception.Raise_Exception;
168: END IF;
169: Check_Constraints;
170: ELSIF (p_action = 'UPDATE') THEN
171: -- Call all the procedures related to Before Update.
178: new_references.govt_seo_class_cd
179: ) THEN
180: Fnd_Message.Set_Name ('IGS', 'IGS_GE_RECORD_ALREADY_EXISTS');
181: IGS_GE_MSG_STACK.ADD;
182: App_Exception.Raise_Exception;
183: END IF;
184: Check_Constraints;
185: ELSIF (p_action = 'VALIDATE_UPDATE') THEN
186: Check_Constraints;
219: end if;
220: else
221: FND_MESSAGE.SET_NAME( 'FND', 'SYSTEM-INVALID ARGS');
222: IGS_GE_MSG_STACK.ADD;
223: app_exception.raise_exception;
224: end if;
225:
226: Before_DML (
227: p_action => 'INSERT',
290: fetch c1 into tlinfo;
291: if (c1%notfound) then
292: close c1;
293: fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
294: app_exception.raise_exception;
295: return;
296: end if;
297: close c1;
298:
302: ) then
303: null;
304: else
305: fnd_message.set_name('FND', 'FORM_RECORD_CHANGED');
306: app_exception.raise_exception;
307: end if;
308: return;
309: end LOCK_ROW;
310:
335: end if;
336: else
337: FND_MESSAGE.SET_NAME('FND', 'SYSTEM-INVALID ARGS');
338: IGS_GE_MSG_STACK.ADD;
339: app_exception.raise_exception;
340: end if;
341:
342: Before_DML (
343: p_action => 'UPDATE',