3283: /* Start of API Body */
3284: OPEN cur_group_rec(p_counter_groups_rec.counter_group_id);
3285: FETCH cur_group_rec INTO l_old_counter_groups_rec;
3286: IF (l_old_counter_groups_rec.object_version_number <> nvl(p_counter_groups_rec.OBJECT_VERSION_NUMBER,0)) THEN
3287: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
3288: FND_MSG_PUB.ADD;
3289: RAISE FND_API.G_EXC_ERROR;
3290: END IF;
3291:
3655: /* Start of API Body */
3656: OPEN cur_item_assoc_rec(p_ctr_item_associations_rec.ctr_association_id);
3657: FETCH cur_item_assoc_rec INTO l_old_item_associations_rec;
3658: IF (l_old_item_associations_rec.object_version_number <> nvl(p_ctr_item_associations_rec.OBJECT_VERSION_NUMBER,0)) THEN
3659: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
3660: FND_MSG_PUB.ADD;
3661: RAISE FND_API.G_EXC_ERROR;
3662: END IF;
3663:
4180: /* Start of API body */
4181: OPEN cur_ctr_template_rec(p_counter_template_rec.counter_id);
4182: FETCH cur_ctr_template_rec INTO l_old_counter_template_rec;
4183: IF (l_old_counter_template_rec.object_version_number <> nvl(p_counter_template_rec.OBJECT_VERSION_NUMBER,0)) THEN
4184: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
4185: FND_MSG_PUB.ADD;
4186: RAISE FND_API.G_EXC_ERROR;
4187: END IF;
4188:
4938: /* Start of API Body */
4939: OPEN cur_ctr_prop_rec(p_ctr_property_template_rec.counter_property_id);
4940: FETCH cur_ctr_prop_rec INTO l_old_ctr_property_tmpl_rec;
4941: IF (l_old_ctr_property_tmpl_rec.object_version_number <> nvl(p_ctr_property_template_rec.OBJECT_VERSION_NUMBER,0)) THEN
4942: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
4943: FND_MSG_PUB.ADD;
4944: RAISE FND_API.G_EXC_ERROR;
4945: END IF;
4946:
5364: l_ctr_relationships_rec.object_version_number := NULL;
5365: END IF;
5366:
5367: IF (l_old_ctr_relationships_rec.object_version_number <> nvl(p_counter_relationships_rec.OBJECT_VERSION_NUMBER,0)) THEN
5368: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
5369: FND_MSG_PUB.ADD;
5370: RAISE FND_API.G_EXC_ERROR;
5371: END IF;
5372:
6544: /* Start of API Body */
6545: OPEN cur_estimation_rec(p_ctr_estimation_rec.estimation_id);
6546: FETCH cur_estimation_rec INTO l_old_ctr_estimation_rec;
6547: IF (l_old_ctr_estimation_rec.object_version_number <> nvl(p_ctr_estimation_rec.OBJECT_VERSION_NUMBER,0)) THEN
6548: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
6549: FND_MSG_PUB.ADD;
6550: RAISE FND_API.G_EXC_ERROR;
6551: END IF;
6552: