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:
73: new_references.govt_seo_class_cd,
74: v_message_name) = FALSE THEN
75: Fnd_Message.Set_Name ('IGS', v_message_name);
76: IGS_GE_MSG_STACK.ADD;
77: App_Exception.Raise_Exception;
78: END IF;
79: END IF;
80:
81:
97: IF upper(column_name) = 'CLOSED_IND' OR COLUMN_NAME IS NULL THEN
98: IF new_references.closed_ind <> upper(NEW_REFERENCES.closed_ind) OR new_references.closed_ind NOT IN ('Y', 'N') THEN
99: Fnd_Message.Set_Name('IGS','IGS_GE_INVALID_VALUE');
100: IGS_GE_MSG_STACK.ADD;
101: App_Exception.Raise_Exception ;
102: END IF;
103: END IF;
104: IF upper(column_name) = 'SEO_CLASS_CD' OR COLUMN_NAME IS NULL THEN
105: IF new_references.SEO_CLASS_CD <> upper(NEW_REFERENCES.SEO_CLASS_CD) THEN
104: IF upper(column_name) = 'SEO_CLASS_CD' OR COLUMN_NAME IS NULL THEN
105: IF new_references.SEO_CLASS_CD <> upper(NEW_REFERENCES.SEO_CLASS_CD) THEN
106: Fnd_Message.Set_Name('IGS','IGS_GE_INVALID_VALUE');
107: IGS_GE_MSG_STACK.ADD;
108: App_Exception.Raise_Exception ;
109: END IF;
110: END IF;
111: END Check_Constraints ;
112:
121: new_references.govt_seo_class_cd
122: ) THEN
123: Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
124: IGS_GE_MSG_STACK.ADD;
125: App_Exception.Raise_Exception;
126: END IF;
127: END IF;
128:
129: END Check_Parent_Existance;
182: IF (cur_rowid%FOUND) THEN
183: Close cur_rowid;
184: Fnd_Message.Set_Name ('IGS', 'IGS_RE_SEOCC_GSCC_FK');
185: IGS_GE_MSG_STACK.ADD;
186: App_Exception.Raise_Exception;
187: Return;
188: END IF;
189: Close cur_rowid;
190:
226: new_references.seo_class_cd
227: ) THEN
228: Fnd_Message.Set_Name ('IGS', 'IGS_GE_RECORD_ALREADY_EXISTS');
229: IGS_GE_MSG_STACK.ADD;
230: App_Exception.Raise_Exception;
231: END IF;
232: Check_Constraints;
233: Check_Parent_Existance;
234: ELSIF (p_action = 'UPDATE') THEN
245: ) THEN
246:
247: Fnd_Message.Set_Name ('IGS', 'IGS_GE_RECORD_ALREADY_EXISTS');
248: IGS_GE_MSG_STACK.ADD;
249: App_Exception.Raise_Exception;
250: END IF;
251: Check_Constraints;
252: ELSIF (p_action = 'VALIDATE_UPDATE') THEN
253: Check_Constraints;
285: end if;
286: else
287: FND_MESSAGE.SET_NAME( 'FND', 'SYSTEM-INVALID ARGS');
288: IGS_GE_MSG_STACK.ADD;
289: app_exception.raise_exception;
290: end if;
291:
292: Before_DML (
293: p_action => 'INSERT',
356: fetch c1 into tlinfo;
357: if (c1%notfound) then
358: close c1;
359: fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
360: app_exception.raise_exception;
361: return;
362: end if;
363: close c1;
364:
368: ) then
369: null;
370: else
371: fnd_message.set_name('FND', 'FORM_RECORD_CHANGED');
372: app_exception.raise_exception;
373: end if;
374: return;
375: end LOCK_ROW;
376:
401: end if;
402: else
403: FND_MESSAGE.SET_NAME('FND', 'SYSTEM-INVALID ARGS');
404: IGS_GE_MSG_STACK.ADD;
405: app_exception.raise_exception;
406: end if;
407:
408: Before_DML (
409: p_action => 'UPDATE',