273:
274: -- When in validation only mode raise the Validate_Enabled exception
275: --
276: if p_validate then
277: raise hr_api.validate_enabled;
278: end if;
279: --
280: -- Set id OUT parameters
281: --
284: p_assignment_id := l_assignment_id;
285: --
286: hr_utility.set_location(' Leaving:'||l_proc, 50);
287: exception
288: when hr_api.validate_enabled then
289: --
290: -- As the Validate_Enabled exception has been raised
291: -- we must rollback to the savepoint
292: --