47: IF (cur_old_ref_values%NOTFOUND) AND (p_action NOT IN ('INSERT','VALIDATE_INSERT')) THEN
48: Close cur_old_ref_values;
49: Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
50: IGS_GE_MSG_STACK.ADD;
51: App_Exception.Raise_Exception;
52: Return;
53: END IF;
54: Close cur_old_ref_values;
55:
103: Column_Name IS NULL THEN
104: IF NOT (new_references.closed_ind IN ('Y', 'N')) THEN
105: Fnd_Message.Set_Name('IGS','IGS_GE_INVALID_VALUE');
106: IGS_GE_MSG_STACK.ADD;
107: App_Exception.Raise_Exception;
108: END IF;
109: END IF;
110:
111:
129: ,new_references.location_cd
130: ) THEN
131: Fnd_Message.Set_Name ('IGS', 'IGS_GE_MULTI_ORG_DUP_REC');
132: IGS_GE_MSG_STACK.ADD;
133: app_exception.raise_exception;
134: END IF;
135: END Check_Uniqueness ;
136: PROCEDURE Check_Parent_Existance AS
137: /*************************************************************
154: new_references.location_cd,
155: 'N') THEN
156: Fnd_Message.Set_Name ('FND','FORM_RECORD_DELETED');
157: IGS_GE_MSG_STACK.ADD;
158: App_Exception.Raise_Exception;
159: END IF;
160:
161: END Check_Parent_Existance;
162:
302: IF (cur_rowid%FOUND) THEN
303: Close cur_rowid;
304: Fnd_Message.Set_Name ('IGS', 'IGS_AD_BLDG_LOC_FK');
305: IGS_GE_MSG_STACK.ADD;
306: App_Exception.Raise_Exception;
307: Return;
308: END IF;
309: Close cur_rowid;
310:
360: IF Get_Pk_For_Validation(
361: new_references.building_id) THEN
362: Fnd_Message.Set_name('IGS','IGS_GE_MULTI_ORG_DUP_REC');
363: IGS_GE_MSG_STACK.ADD;
364: App_Exception.Raise_Exception;
365: END IF;
366: Check_Uniqueness;
367: Check_Constraints;
368: Check_Parent_Existance;
381: IF Get_PK_For_Validation (
382: new_references.building_id) THEN
383: Fnd_Message.Set_name('IGS','IGS_GE_MULTI_ORG_DUP_REC');
384: IGS_GE_MSG_STACK.ADD;
385: App_Exception.Raise_Exception;
386: END IF;
387: Check_Uniqueness;
388: Check_Constraints;
389: ELSIF (p_action = 'VALIDATE_UPDATE') THEN
471: end if;
472: else
473: FND_MESSAGE.SET_NAME( 'FND', 'SYSTEM-INVALID ARGS');
474: IGS_GE_MSG_STACK.ADD;
475: app_exception.raise_exception;
476: end if;
477:
478: x_BUILDING_ID := -1;
479: Before_DML(
559: if (c1%notfound) then
560: fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
561: IGS_GE_MSG_STACK.ADD;
562: close c1;
563: app_exception.raise_exception;
564: return;
565: end if;
566: close c1;
567: if ( ( tlinfo.LOCATION_CD = X_LOCATION_CD)
572: null;
573: else
574: fnd_message.set_name('FND', 'FORM_RECORD_CHANGED');
575: IGS_GE_MSG_STACK.ADD;
576: app_exception.raise_exception;
577: end if;
578: return;
579: end LOCK_ROW;
580: Procedure UPDATE_ROW (
616: end if;
617: else
618: FND_MESSAGE.SET_NAME( 'FND', 'SYSTEM-INVALID ARGS');
619: IGS_GE_MSG_STACK.ADD;
620: app_exception.raise_exception;
621: end if;
622: Before_DML(
623: p_action=>'UPDATE',
624: x_rowid=>X_ROWID,