45: hr_utility.set_location('Entering:'|| l_proc, 10);
46: --
47: -- Ensure that all the mandatory parameter are not null
48: --
49: hr_api.mandatory_arg_error
50: (p_api_name => l_proc
51: ,p_argument => 'sharing_instance_id'
52: ,p_argument_value => p_sharing_instance_id
53: );
72: close csr_sec_grp;
73: --
74: -- Set the security_group_id in CLIENT_INFO
75: --
76: hr_api.set_security_group_id
77: (p_security_group_id => l_security_group_id
78: );
79: --
80: -- Set the sessions legislation context in HR_SESSION_DATA
78: );
79: --
80: -- Set the sessions legislation context in HR_SESSION_DATA
81: --
82: hr_api.set_legislation_context(l_legislation_code);
83: end if;
84: --
85: hr_utility.set_location(' Leaving:'|| l_proc, 20);
86: --
116: hr_utility.set_location('Entering:'|| l_proc, 10);
117: --
118: -- Ensure that all the mandatory parameter are not null
119: --
120: hr_api.mandatory_arg_error
121: (p_api_name => l_proc
122: ,p_argument => 'sharing_instance_id'
123: ,p_argument_value => p_sharing_instance_id
124: );
122: ,p_argument => 'sharing_instance_id'
123: ,p_argument_value => p_sharing_instance_id
124: );
125: --
126: if ( nvl(per_psh_bus.g_sharing_instance_id, hr_api.g_number)
127: = p_sharing_instance_id) then
128: --
129: -- The legislation code has already been found with a previous
130: -- call to this function. Just return the value in the global
198: begin
199: hr_utility.set_location('Entering:'||l_proc,10);
200: --
201: if ((p_rec.sharing_instance_id is not null) and (
202: nvl(per_psh_shd.g_old_rec.attribute_category, hr_api.g_varchar2) <>
203: nvl(p_rec.attribute_category, hr_api.g_varchar2) or
204: nvl(per_psh_shd.g_old_rec.attribute1, hr_api.g_varchar2) <>
205: nvl(p_rec.attribute1, hr_api.g_varchar2) or
206: nvl(per_psh_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
199: hr_utility.set_location('Entering:'||l_proc,10);
200: --
201: if ((p_rec.sharing_instance_id is not null) and (
202: nvl(per_psh_shd.g_old_rec.attribute_category, hr_api.g_varchar2) <>
203: nvl(p_rec.attribute_category, hr_api.g_varchar2) or
204: nvl(per_psh_shd.g_old_rec.attribute1, hr_api.g_varchar2) <>
205: nvl(p_rec.attribute1, hr_api.g_varchar2) or
206: nvl(per_psh_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
207: nvl(p_rec.attribute2, hr_api.g_varchar2) or
200: --
201: if ((p_rec.sharing_instance_id is not null) and (
202: nvl(per_psh_shd.g_old_rec.attribute_category, hr_api.g_varchar2) <>
203: nvl(p_rec.attribute_category, hr_api.g_varchar2) or
204: nvl(per_psh_shd.g_old_rec.attribute1, hr_api.g_varchar2) <>
205: nvl(p_rec.attribute1, hr_api.g_varchar2) or
206: nvl(per_psh_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
207: nvl(p_rec.attribute2, hr_api.g_varchar2) or
208: nvl(per_psh_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
201: if ((p_rec.sharing_instance_id is not null) and (
202: nvl(per_psh_shd.g_old_rec.attribute_category, hr_api.g_varchar2) <>
203: nvl(p_rec.attribute_category, hr_api.g_varchar2) or
204: nvl(per_psh_shd.g_old_rec.attribute1, hr_api.g_varchar2) <>
205: nvl(p_rec.attribute1, hr_api.g_varchar2) or
206: nvl(per_psh_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
207: nvl(p_rec.attribute2, hr_api.g_varchar2) or
208: nvl(per_psh_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
209: nvl(p_rec.attribute3, hr_api.g_varchar2) or
202: nvl(per_psh_shd.g_old_rec.attribute_category, hr_api.g_varchar2) <>
203: nvl(p_rec.attribute_category, hr_api.g_varchar2) or
204: nvl(per_psh_shd.g_old_rec.attribute1, hr_api.g_varchar2) <>
205: nvl(p_rec.attribute1, hr_api.g_varchar2) or
206: nvl(per_psh_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
207: nvl(p_rec.attribute2, hr_api.g_varchar2) or
208: nvl(per_psh_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
209: nvl(p_rec.attribute3, hr_api.g_varchar2) or
210: nvl(per_psh_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
203: nvl(p_rec.attribute_category, hr_api.g_varchar2) or
204: nvl(per_psh_shd.g_old_rec.attribute1, hr_api.g_varchar2) <>
205: nvl(p_rec.attribute1, hr_api.g_varchar2) or
206: nvl(per_psh_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
207: nvl(p_rec.attribute2, hr_api.g_varchar2) or
208: nvl(per_psh_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
209: nvl(p_rec.attribute3, hr_api.g_varchar2) or
210: nvl(per_psh_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
211: nvl(p_rec.attribute4, hr_api.g_varchar2) or
204: nvl(per_psh_shd.g_old_rec.attribute1, hr_api.g_varchar2) <>
205: nvl(p_rec.attribute1, hr_api.g_varchar2) or
206: nvl(per_psh_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
207: nvl(p_rec.attribute2, hr_api.g_varchar2) or
208: nvl(per_psh_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
209: nvl(p_rec.attribute3, hr_api.g_varchar2) or
210: nvl(per_psh_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
211: nvl(p_rec.attribute4, hr_api.g_varchar2) or
212: nvl(per_psh_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
205: nvl(p_rec.attribute1, hr_api.g_varchar2) or
206: nvl(per_psh_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
207: nvl(p_rec.attribute2, hr_api.g_varchar2) or
208: nvl(per_psh_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
209: nvl(p_rec.attribute3, hr_api.g_varchar2) or
210: nvl(per_psh_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
211: nvl(p_rec.attribute4, hr_api.g_varchar2) or
212: nvl(per_psh_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
213: nvl(p_rec.attribute5, hr_api.g_varchar2) or
206: nvl(per_psh_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
207: nvl(p_rec.attribute2, hr_api.g_varchar2) or
208: nvl(per_psh_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
209: nvl(p_rec.attribute3, hr_api.g_varchar2) or
210: nvl(per_psh_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
211: nvl(p_rec.attribute4, hr_api.g_varchar2) or
212: nvl(per_psh_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
213: nvl(p_rec.attribute5, hr_api.g_varchar2) or
214: nvl(per_psh_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
207: nvl(p_rec.attribute2, hr_api.g_varchar2) or
208: nvl(per_psh_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
209: nvl(p_rec.attribute3, hr_api.g_varchar2) or
210: nvl(per_psh_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
211: nvl(p_rec.attribute4, hr_api.g_varchar2) or
212: nvl(per_psh_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
213: nvl(p_rec.attribute5, hr_api.g_varchar2) or
214: nvl(per_psh_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
215: nvl(p_rec.attribute6, hr_api.g_varchar2) or
208: nvl(per_psh_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
209: nvl(p_rec.attribute3, hr_api.g_varchar2) or
210: nvl(per_psh_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
211: nvl(p_rec.attribute4, hr_api.g_varchar2) or
212: nvl(per_psh_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
213: nvl(p_rec.attribute5, hr_api.g_varchar2) or
214: nvl(per_psh_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
215: nvl(p_rec.attribute6, hr_api.g_varchar2) or
216: nvl(per_psh_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
209: nvl(p_rec.attribute3, hr_api.g_varchar2) or
210: nvl(per_psh_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
211: nvl(p_rec.attribute4, hr_api.g_varchar2) or
212: nvl(per_psh_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
213: nvl(p_rec.attribute5, hr_api.g_varchar2) or
214: nvl(per_psh_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
215: nvl(p_rec.attribute6, hr_api.g_varchar2) or
216: nvl(per_psh_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
217: nvl(p_rec.attribute7, hr_api.g_varchar2) or
210: nvl(per_psh_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
211: nvl(p_rec.attribute4, hr_api.g_varchar2) or
212: nvl(per_psh_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
213: nvl(p_rec.attribute5, hr_api.g_varchar2) or
214: nvl(per_psh_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
215: nvl(p_rec.attribute6, hr_api.g_varchar2) or
216: nvl(per_psh_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
217: nvl(p_rec.attribute7, hr_api.g_varchar2) or
218: nvl(per_psh_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
211: nvl(p_rec.attribute4, hr_api.g_varchar2) or
212: nvl(per_psh_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
213: nvl(p_rec.attribute5, hr_api.g_varchar2) or
214: nvl(per_psh_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
215: nvl(p_rec.attribute6, hr_api.g_varchar2) or
216: nvl(per_psh_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
217: nvl(p_rec.attribute7, hr_api.g_varchar2) or
218: nvl(per_psh_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
219: nvl(p_rec.attribute8, hr_api.g_varchar2) or
212: nvl(per_psh_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
213: nvl(p_rec.attribute5, hr_api.g_varchar2) or
214: nvl(per_psh_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
215: nvl(p_rec.attribute6, hr_api.g_varchar2) or
216: nvl(per_psh_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
217: nvl(p_rec.attribute7, hr_api.g_varchar2) or
218: nvl(per_psh_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
219: nvl(p_rec.attribute8, hr_api.g_varchar2) or
220: nvl(per_psh_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
213: nvl(p_rec.attribute5, hr_api.g_varchar2) or
214: nvl(per_psh_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
215: nvl(p_rec.attribute6, hr_api.g_varchar2) or
216: nvl(per_psh_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
217: nvl(p_rec.attribute7, hr_api.g_varchar2) or
218: nvl(per_psh_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
219: nvl(p_rec.attribute8, hr_api.g_varchar2) or
220: nvl(per_psh_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
221: nvl(p_rec.attribute9, hr_api.g_varchar2) or
214: nvl(per_psh_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
215: nvl(p_rec.attribute6, hr_api.g_varchar2) or
216: nvl(per_psh_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
217: nvl(p_rec.attribute7, hr_api.g_varchar2) or
218: nvl(per_psh_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
219: nvl(p_rec.attribute8, hr_api.g_varchar2) or
220: nvl(per_psh_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
221: nvl(p_rec.attribute9, hr_api.g_varchar2) or
222: nvl(per_psh_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
215: nvl(p_rec.attribute6, hr_api.g_varchar2) or
216: nvl(per_psh_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
217: nvl(p_rec.attribute7, hr_api.g_varchar2) or
218: nvl(per_psh_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
219: nvl(p_rec.attribute8, hr_api.g_varchar2) or
220: nvl(per_psh_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
221: nvl(p_rec.attribute9, hr_api.g_varchar2) or
222: nvl(per_psh_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
223: nvl(p_rec.attribute10, hr_api.g_varchar2) or
216: nvl(per_psh_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
217: nvl(p_rec.attribute7, hr_api.g_varchar2) or
218: nvl(per_psh_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
219: nvl(p_rec.attribute8, hr_api.g_varchar2) or
220: nvl(per_psh_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
221: nvl(p_rec.attribute9, hr_api.g_varchar2) or
222: nvl(per_psh_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
223: nvl(p_rec.attribute10, hr_api.g_varchar2) or
224: nvl(per_psh_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
217: nvl(p_rec.attribute7, hr_api.g_varchar2) or
218: nvl(per_psh_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
219: nvl(p_rec.attribute8, hr_api.g_varchar2) or
220: nvl(per_psh_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
221: nvl(p_rec.attribute9, hr_api.g_varchar2) or
222: nvl(per_psh_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
223: nvl(p_rec.attribute10, hr_api.g_varchar2) or
224: nvl(per_psh_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
225: nvl(p_rec.attribute11, hr_api.g_varchar2) or
218: nvl(per_psh_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
219: nvl(p_rec.attribute8, hr_api.g_varchar2) or
220: nvl(per_psh_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
221: nvl(p_rec.attribute9, hr_api.g_varchar2) or
222: nvl(per_psh_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
223: nvl(p_rec.attribute10, hr_api.g_varchar2) or
224: nvl(per_psh_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
225: nvl(p_rec.attribute11, hr_api.g_varchar2) or
226: nvl(per_psh_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
219: nvl(p_rec.attribute8, hr_api.g_varchar2) or
220: nvl(per_psh_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
221: nvl(p_rec.attribute9, hr_api.g_varchar2) or
222: nvl(per_psh_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
223: nvl(p_rec.attribute10, hr_api.g_varchar2) or
224: nvl(per_psh_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
225: nvl(p_rec.attribute11, hr_api.g_varchar2) or
226: nvl(per_psh_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
227: nvl(p_rec.attribute12, hr_api.g_varchar2) or
220: nvl(per_psh_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
221: nvl(p_rec.attribute9, hr_api.g_varchar2) or
222: nvl(per_psh_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
223: nvl(p_rec.attribute10, hr_api.g_varchar2) or
224: nvl(per_psh_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
225: nvl(p_rec.attribute11, hr_api.g_varchar2) or
226: nvl(per_psh_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
227: nvl(p_rec.attribute12, hr_api.g_varchar2) or
228: nvl(per_psh_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
221: nvl(p_rec.attribute9, hr_api.g_varchar2) or
222: nvl(per_psh_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
223: nvl(p_rec.attribute10, hr_api.g_varchar2) or
224: nvl(per_psh_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
225: nvl(p_rec.attribute11, hr_api.g_varchar2) or
226: nvl(per_psh_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
227: nvl(p_rec.attribute12, hr_api.g_varchar2) or
228: nvl(per_psh_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
229: nvl(p_rec.attribute13, hr_api.g_varchar2) or
222: nvl(per_psh_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
223: nvl(p_rec.attribute10, hr_api.g_varchar2) or
224: nvl(per_psh_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
225: nvl(p_rec.attribute11, hr_api.g_varchar2) or
226: nvl(per_psh_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
227: nvl(p_rec.attribute12, hr_api.g_varchar2) or
228: nvl(per_psh_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
229: nvl(p_rec.attribute13, hr_api.g_varchar2) or
230: nvl(per_psh_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
223: nvl(p_rec.attribute10, hr_api.g_varchar2) or
224: nvl(per_psh_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
225: nvl(p_rec.attribute11, hr_api.g_varchar2) or
226: nvl(per_psh_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
227: nvl(p_rec.attribute12, hr_api.g_varchar2) or
228: nvl(per_psh_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
229: nvl(p_rec.attribute13, hr_api.g_varchar2) or
230: nvl(per_psh_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
231: nvl(p_rec.attribute14, hr_api.g_varchar2) or
224: nvl(per_psh_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
225: nvl(p_rec.attribute11, hr_api.g_varchar2) or
226: nvl(per_psh_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
227: nvl(p_rec.attribute12, hr_api.g_varchar2) or
228: nvl(per_psh_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
229: nvl(p_rec.attribute13, hr_api.g_varchar2) or
230: nvl(per_psh_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
231: nvl(p_rec.attribute14, hr_api.g_varchar2) or
232: nvl(per_psh_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
225: nvl(p_rec.attribute11, hr_api.g_varchar2) or
226: nvl(per_psh_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
227: nvl(p_rec.attribute12, hr_api.g_varchar2) or
228: nvl(per_psh_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
229: nvl(p_rec.attribute13, hr_api.g_varchar2) or
230: nvl(per_psh_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
231: nvl(p_rec.attribute14, hr_api.g_varchar2) or
232: nvl(per_psh_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
233: nvl(p_rec.attribute15, hr_api.g_varchar2) or
226: nvl(per_psh_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
227: nvl(p_rec.attribute12, hr_api.g_varchar2) or
228: nvl(per_psh_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
229: nvl(p_rec.attribute13, hr_api.g_varchar2) or
230: nvl(per_psh_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
231: nvl(p_rec.attribute14, hr_api.g_varchar2) or
232: nvl(per_psh_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
233: nvl(p_rec.attribute15, hr_api.g_varchar2) or
234: nvl(per_psh_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
227: nvl(p_rec.attribute12, hr_api.g_varchar2) or
228: nvl(per_psh_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
229: nvl(p_rec.attribute13, hr_api.g_varchar2) or
230: nvl(per_psh_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
231: nvl(p_rec.attribute14, hr_api.g_varchar2) or
232: nvl(per_psh_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
233: nvl(p_rec.attribute15, hr_api.g_varchar2) or
234: nvl(per_psh_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
235: nvl(p_rec.attribute16, hr_api.g_varchar2) or
228: nvl(per_psh_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
229: nvl(p_rec.attribute13, hr_api.g_varchar2) or
230: nvl(per_psh_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
231: nvl(p_rec.attribute14, hr_api.g_varchar2) or
232: nvl(per_psh_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
233: nvl(p_rec.attribute15, hr_api.g_varchar2) or
234: nvl(per_psh_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
235: nvl(p_rec.attribute16, hr_api.g_varchar2) or
236: nvl(per_psh_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
229: nvl(p_rec.attribute13, hr_api.g_varchar2) or
230: nvl(per_psh_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
231: nvl(p_rec.attribute14, hr_api.g_varchar2) or
232: nvl(per_psh_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
233: nvl(p_rec.attribute15, hr_api.g_varchar2) or
234: nvl(per_psh_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
235: nvl(p_rec.attribute16, hr_api.g_varchar2) or
236: nvl(per_psh_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
237: nvl(p_rec.attribute17, hr_api.g_varchar2) or
230: nvl(per_psh_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
231: nvl(p_rec.attribute14, hr_api.g_varchar2) or
232: nvl(per_psh_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
233: nvl(p_rec.attribute15, hr_api.g_varchar2) or
234: nvl(per_psh_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
235: nvl(p_rec.attribute16, hr_api.g_varchar2) or
236: nvl(per_psh_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
237: nvl(p_rec.attribute17, hr_api.g_varchar2) or
238: nvl(per_psh_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
231: nvl(p_rec.attribute14, hr_api.g_varchar2) or
232: nvl(per_psh_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
233: nvl(p_rec.attribute15, hr_api.g_varchar2) or
234: nvl(per_psh_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
235: nvl(p_rec.attribute16, hr_api.g_varchar2) or
236: nvl(per_psh_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
237: nvl(p_rec.attribute17, hr_api.g_varchar2) or
238: nvl(per_psh_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
239: nvl(p_rec.attribute18, hr_api.g_varchar2) or
232: nvl(per_psh_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
233: nvl(p_rec.attribute15, hr_api.g_varchar2) or
234: nvl(per_psh_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
235: nvl(p_rec.attribute16, hr_api.g_varchar2) or
236: nvl(per_psh_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
237: nvl(p_rec.attribute17, hr_api.g_varchar2) or
238: nvl(per_psh_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
239: nvl(p_rec.attribute18, hr_api.g_varchar2) or
240: nvl(per_psh_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
233: nvl(p_rec.attribute15, hr_api.g_varchar2) or
234: nvl(per_psh_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
235: nvl(p_rec.attribute16, hr_api.g_varchar2) or
236: nvl(per_psh_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
237: nvl(p_rec.attribute17, hr_api.g_varchar2) or
238: nvl(per_psh_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
239: nvl(p_rec.attribute18, hr_api.g_varchar2) or
240: nvl(per_psh_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
241: nvl(p_rec.attribute19, hr_api.g_varchar2) or
234: nvl(per_psh_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
235: nvl(p_rec.attribute16, hr_api.g_varchar2) or
236: nvl(per_psh_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
237: nvl(p_rec.attribute17, hr_api.g_varchar2) or
238: nvl(per_psh_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
239: nvl(p_rec.attribute18, hr_api.g_varchar2) or
240: nvl(per_psh_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
241: nvl(p_rec.attribute19, hr_api.g_varchar2) or
242: nvl(per_psh_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
235: nvl(p_rec.attribute16, hr_api.g_varchar2) or
236: nvl(per_psh_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
237: nvl(p_rec.attribute17, hr_api.g_varchar2) or
238: nvl(per_psh_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
239: nvl(p_rec.attribute18, hr_api.g_varchar2) or
240: nvl(per_psh_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
241: nvl(p_rec.attribute19, hr_api.g_varchar2) or
242: nvl(per_psh_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
243: nvl(p_rec.attribute20, hr_api.g_varchar2) or
236: nvl(per_psh_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
237: nvl(p_rec.attribute17, hr_api.g_varchar2) or
238: nvl(per_psh_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
239: nvl(p_rec.attribute18, hr_api.g_varchar2) or
240: nvl(per_psh_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
241: nvl(p_rec.attribute19, hr_api.g_varchar2) or
242: nvl(per_psh_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
243: nvl(p_rec.attribute20, hr_api.g_varchar2) or
244: nvl(per_psh_shd.g_old_rec.attribute21, hr_api.g_varchar2) <>
237: nvl(p_rec.attribute17, hr_api.g_varchar2) or
238: nvl(per_psh_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
239: nvl(p_rec.attribute18, hr_api.g_varchar2) or
240: nvl(per_psh_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
241: nvl(p_rec.attribute19, hr_api.g_varchar2) or
242: nvl(per_psh_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
243: nvl(p_rec.attribute20, hr_api.g_varchar2) or
244: nvl(per_psh_shd.g_old_rec.attribute21, hr_api.g_varchar2) <>
245: nvl(p_rec.attribute21, hr_api.g_varchar2) or
238: nvl(per_psh_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
239: nvl(p_rec.attribute18, hr_api.g_varchar2) or
240: nvl(per_psh_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
241: nvl(p_rec.attribute19, hr_api.g_varchar2) or
242: nvl(per_psh_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
243: nvl(p_rec.attribute20, hr_api.g_varchar2) or
244: nvl(per_psh_shd.g_old_rec.attribute21, hr_api.g_varchar2) <>
245: nvl(p_rec.attribute21, hr_api.g_varchar2) or
246: nvl(per_psh_shd.g_old_rec.attribute22, hr_api.g_varchar2) <>
239: nvl(p_rec.attribute18, hr_api.g_varchar2) or
240: nvl(per_psh_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
241: nvl(p_rec.attribute19, hr_api.g_varchar2) or
242: nvl(per_psh_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
243: nvl(p_rec.attribute20, hr_api.g_varchar2) or
244: nvl(per_psh_shd.g_old_rec.attribute21, hr_api.g_varchar2) <>
245: nvl(p_rec.attribute21, hr_api.g_varchar2) or
246: nvl(per_psh_shd.g_old_rec.attribute22, hr_api.g_varchar2) <>
247: nvl(p_rec.attribute22, hr_api.g_varchar2) or
240: nvl(per_psh_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
241: nvl(p_rec.attribute19, hr_api.g_varchar2) or
242: nvl(per_psh_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
243: nvl(p_rec.attribute20, hr_api.g_varchar2) or
244: nvl(per_psh_shd.g_old_rec.attribute21, hr_api.g_varchar2) <>
245: nvl(p_rec.attribute21, hr_api.g_varchar2) or
246: nvl(per_psh_shd.g_old_rec.attribute22, hr_api.g_varchar2) <>
247: nvl(p_rec.attribute22, hr_api.g_varchar2) or
248: nvl(per_psh_shd.g_old_rec.attribute23, hr_api.g_varchar2) <>
241: nvl(p_rec.attribute19, hr_api.g_varchar2) or
242: nvl(per_psh_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
243: nvl(p_rec.attribute20, hr_api.g_varchar2) or
244: nvl(per_psh_shd.g_old_rec.attribute21, hr_api.g_varchar2) <>
245: nvl(p_rec.attribute21, hr_api.g_varchar2) or
246: nvl(per_psh_shd.g_old_rec.attribute22, hr_api.g_varchar2) <>
247: nvl(p_rec.attribute22, hr_api.g_varchar2) or
248: nvl(per_psh_shd.g_old_rec.attribute23, hr_api.g_varchar2) <>
249: nvl(p_rec.attribute23, hr_api.g_varchar2) or
242: nvl(per_psh_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
243: nvl(p_rec.attribute20, hr_api.g_varchar2) or
244: nvl(per_psh_shd.g_old_rec.attribute21, hr_api.g_varchar2) <>
245: nvl(p_rec.attribute21, hr_api.g_varchar2) or
246: nvl(per_psh_shd.g_old_rec.attribute22, hr_api.g_varchar2) <>
247: nvl(p_rec.attribute22, hr_api.g_varchar2) or
248: nvl(per_psh_shd.g_old_rec.attribute23, hr_api.g_varchar2) <>
249: nvl(p_rec.attribute23, hr_api.g_varchar2) or
250: nvl(per_psh_shd.g_old_rec.attribute24, hr_api.g_varchar2) <>
243: nvl(p_rec.attribute20, hr_api.g_varchar2) or
244: nvl(per_psh_shd.g_old_rec.attribute21, hr_api.g_varchar2) <>
245: nvl(p_rec.attribute21, hr_api.g_varchar2) or
246: nvl(per_psh_shd.g_old_rec.attribute22, hr_api.g_varchar2) <>
247: nvl(p_rec.attribute22, hr_api.g_varchar2) or
248: nvl(per_psh_shd.g_old_rec.attribute23, hr_api.g_varchar2) <>
249: nvl(p_rec.attribute23, hr_api.g_varchar2) or
250: nvl(per_psh_shd.g_old_rec.attribute24, hr_api.g_varchar2) <>
251: nvl(p_rec.attribute24, hr_api.g_varchar2) or
244: nvl(per_psh_shd.g_old_rec.attribute21, hr_api.g_varchar2) <>
245: nvl(p_rec.attribute21, hr_api.g_varchar2) or
246: nvl(per_psh_shd.g_old_rec.attribute22, hr_api.g_varchar2) <>
247: nvl(p_rec.attribute22, hr_api.g_varchar2) or
248: nvl(per_psh_shd.g_old_rec.attribute23, hr_api.g_varchar2) <>
249: nvl(p_rec.attribute23, hr_api.g_varchar2) or
250: nvl(per_psh_shd.g_old_rec.attribute24, hr_api.g_varchar2) <>
251: nvl(p_rec.attribute24, hr_api.g_varchar2) or
252: nvl(per_psh_shd.g_old_rec.attribute25, hr_api.g_varchar2) <>
245: nvl(p_rec.attribute21, hr_api.g_varchar2) or
246: nvl(per_psh_shd.g_old_rec.attribute22, hr_api.g_varchar2) <>
247: nvl(p_rec.attribute22, hr_api.g_varchar2) or
248: nvl(per_psh_shd.g_old_rec.attribute23, hr_api.g_varchar2) <>
249: nvl(p_rec.attribute23, hr_api.g_varchar2) or
250: nvl(per_psh_shd.g_old_rec.attribute24, hr_api.g_varchar2) <>
251: nvl(p_rec.attribute24, hr_api.g_varchar2) or
252: nvl(per_psh_shd.g_old_rec.attribute25, hr_api.g_varchar2) <>
253: nvl(p_rec.attribute25, hr_api.g_varchar2) or
246: nvl(per_psh_shd.g_old_rec.attribute22, hr_api.g_varchar2) <>
247: nvl(p_rec.attribute22, hr_api.g_varchar2) or
248: nvl(per_psh_shd.g_old_rec.attribute23, hr_api.g_varchar2) <>
249: nvl(p_rec.attribute23, hr_api.g_varchar2) or
250: nvl(per_psh_shd.g_old_rec.attribute24, hr_api.g_varchar2) <>
251: nvl(p_rec.attribute24, hr_api.g_varchar2) or
252: nvl(per_psh_shd.g_old_rec.attribute25, hr_api.g_varchar2) <>
253: nvl(p_rec.attribute25, hr_api.g_varchar2) or
254: nvl(per_psh_shd.g_old_rec.attribute26, hr_api.g_varchar2) <>
247: nvl(p_rec.attribute22, hr_api.g_varchar2) or
248: nvl(per_psh_shd.g_old_rec.attribute23, hr_api.g_varchar2) <>
249: nvl(p_rec.attribute23, hr_api.g_varchar2) or
250: nvl(per_psh_shd.g_old_rec.attribute24, hr_api.g_varchar2) <>
251: nvl(p_rec.attribute24, hr_api.g_varchar2) or
252: nvl(per_psh_shd.g_old_rec.attribute25, hr_api.g_varchar2) <>
253: nvl(p_rec.attribute25, hr_api.g_varchar2) or
254: nvl(per_psh_shd.g_old_rec.attribute26, hr_api.g_varchar2) <>
255: nvl(p_rec.attribute26, hr_api.g_varchar2) or
248: nvl(per_psh_shd.g_old_rec.attribute23, hr_api.g_varchar2) <>
249: nvl(p_rec.attribute23, hr_api.g_varchar2) or
250: nvl(per_psh_shd.g_old_rec.attribute24, hr_api.g_varchar2) <>
251: nvl(p_rec.attribute24, hr_api.g_varchar2) or
252: nvl(per_psh_shd.g_old_rec.attribute25, hr_api.g_varchar2) <>
253: nvl(p_rec.attribute25, hr_api.g_varchar2) or
254: nvl(per_psh_shd.g_old_rec.attribute26, hr_api.g_varchar2) <>
255: nvl(p_rec.attribute26, hr_api.g_varchar2) or
256: nvl(per_psh_shd.g_old_rec.attribute27, hr_api.g_varchar2) <>
249: nvl(p_rec.attribute23, hr_api.g_varchar2) or
250: nvl(per_psh_shd.g_old_rec.attribute24, hr_api.g_varchar2) <>
251: nvl(p_rec.attribute24, hr_api.g_varchar2) or
252: nvl(per_psh_shd.g_old_rec.attribute25, hr_api.g_varchar2) <>
253: nvl(p_rec.attribute25, hr_api.g_varchar2) or
254: nvl(per_psh_shd.g_old_rec.attribute26, hr_api.g_varchar2) <>
255: nvl(p_rec.attribute26, hr_api.g_varchar2) or
256: nvl(per_psh_shd.g_old_rec.attribute27, hr_api.g_varchar2) <>
257: nvl(p_rec.attribute27, hr_api.g_varchar2) or
250: nvl(per_psh_shd.g_old_rec.attribute24, hr_api.g_varchar2) <>
251: nvl(p_rec.attribute24, hr_api.g_varchar2) or
252: nvl(per_psh_shd.g_old_rec.attribute25, hr_api.g_varchar2) <>
253: nvl(p_rec.attribute25, hr_api.g_varchar2) or
254: nvl(per_psh_shd.g_old_rec.attribute26, hr_api.g_varchar2) <>
255: nvl(p_rec.attribute26, hr_api.g_varchar2) or
256: nvl(per_psh_shd.g_old_rec.attribute27, hr_api.g_varchar2) <>
257: nvl(p_rec.attribute27, hr_api.g_varchar2) or
258: nvl(per_psh_shd.g_old_rec.attribute28, hr_api.g_varchar2) <>
251: nvl(p_rec.attribute24, hr_api.g_varchar2) or
252: nvl(per_psh_shd.g_old_rec.attribute25, hr_api.g_varchar2) <>
253: nvl(p_rec.attribute25, hr_api.g_varchar2) or
254: nvl(per_psh_shd.g_old_rec.attribute26, hr_api.g_varchar2) <>
255: nvl(p_rec.attribute26, hr_api.g_varchar2) or
256: nvl(per_psh_shd.g_old_rec.attribute27, hr_api.g_varchar2) <>
257: nvl(p_rec.attribute27, hr_api.g_varchar2) or
258: nvl(per_psh_shd.g_old_rec.attribute28, hr_api.g_varchar2) <>
259: nvl(p_rec.attribute28, hr_api.g_varchar2) or
252: nvl(per_psh_shd.g_old_rec.attribute25, hr_api.g_varchar2) <>
253: nvl(p_rec.attribute25, hr_api.g_varchar2) or
254: nvl(per_psh_shd.g_old_rec.attribute26, hr_api.g_varchar2) <>
255: nvl(p_rec.attribute26, hr_api.g_varchar2) or
256: nvl(per_psh_shd.g_old_rec.attribute27, hr_api.g_varchar2) <>
257: nvl(p_rec.attribute27, hr_api.g_varchar2) or
258: nvl(per_psh_shd.g_old_rec.attribute28, hr_api.g_varchar2) <>
259: nvl(p_rec.attribute28, hr_api.g_varchar2) or
260: nvl(per_psh_shd.g_old_rec.attribute29, hr_api.g_varchar2) <>
253: nvl(p_rec.attribute25, hr_api.g_varchar2) or
254: nvl(per_psh_shd.g_old_rec.attribute26, hr_api.g_varchar2) <>
255: nvl(p_rec.attribute26, hr_api.g_varchar2) or
256: nvl(per_psh_shd.g_old_rec.attribute27, hr_api.g_varchar2) <>
257: nvl(p_rec.attribute27, hr_api.g_varchar2) or
258: nvl(per_psh_shd.g_old_rec.attribute28, hr_api.g_varchar2) <>
259: nvl(p_rec.attribute28, hr_api.g_varchar2) or
260: nvl(per_psh_shd.g_old_rec.attribute29, hr_api.g_varchar2) <>
261: nvl(p_rec.attribute29, hr_api.g_varchar2) or
254: nvl(per_psh_shd.g_old_rec.attribute26, hr_api.g_varchar2) <>
255: nvl(p_rec.attribute26, hr_api.g_varchar2) or
256: nvl(per_psh_shd.g_old_rec.attribute27, hr_api.g_varchar2) <>
257: nvl(p_rec.attribute27, hr_api.g_varchar2) or
258: nvl(per_psh_shd.g_old_rec.attribute28, hr_api.g_varchar2) <>
259: nvl(p_rec.attribute28, hr_api.g_varchar2) or
260: nvl(per_psh_shd.g_old_rec.attribute29, hr_api.g_varchar2) <>
261: nvl(p_rec.attribute29, hr_api.g_varchar2) or
262: nvl(per_psh_shd.g_old_rec.attribute30, hr_api.g_varchar2) <>
255: nvl(p_rec.attribute26, hr_api.g_varchar2) or
256: nvl(per_psh_shd.g_old_rec.attribute27, hr_api.g_varchar2) <>
257: nvl(p_rec.attribute27, hr_api.g_varchar2) or
258: nvl(per_psh_shd.g_old_rec.attribute28, hr_api.g_varchar2) <>
259: nvl(p_rec.attribute28, hr_api.g_varchar2) or
260: nvl(per_psh_shd.g_old_rec.attribute29, hr_api.g_varchar2) <>
261: nvl(p_rec.attribute29, hr_api.g_varchar2) or
262: nvl(per_psh_shd.g_old_rec.attribute30, hr_api.g_varchar2) <>
263: nvl(p_rec.attribute30, hr_api.g_varchar2) ))
256: nvl(per_psh_shd.g_old_rec.attribute27, hr_api.g_varchar2) <>
257: nvl(p_rec.attribute27, hr_api.g_varchar2) or
258: nvl(per_psh_shd.g_old_rec.attribute28, hr_api.g_varchar2) <>
259: nvl(p_rec.attribute28, hr_api.g_varchar2) or
260: nvl(per_psh_shd.g_old_rec.attribute29, hr_api.g_varchar2) <>
261: nvl(p_rec.attribute29, hr_api.g_varchar2) or
262: nvl(per_psh_shd.g_old_rec.attribute30, hr_api.g_varchar2) <>
263: nvl(p_rec.attribute30, hr_api.g_varchar2) ))
264: or (p_rec.sharing_instance_id is null) then
257: nvl(p_rec.attribute27, hr_api.g_varchar2) or
258: nvl(per_psh_shd.g_old_rec.attribute28, hr_api.g_varchar2) <>
259: nvl(p_rec.attribute28, hr_api.g_varchar2) or
260: nvl(per_psh_shd.g_old_rec.attribute29, hr_api.g_varchar2) <>
261: nvl(p_rec.attribute29, hr_api.g_varchar2) or
262: nvl(per_psh_shd.g_old_rec.attribute30, hr_api.g_varchar2) <>
263: nvl(p_rec.attribute30, hr_api.g_varchar2) ))
264: or (p_rec.sharing_instance_id is null) then
265: --
258: nvl(per_psh_shd.g_old_rec.attribute28, hr_api.g_varchar2) <>
259: nvl(p_rec.attribute28, hr_api.g_varchar2) or
260: nvl(per_psh_shd.g_old_rec.attribute29, hr_api.g_varchar2) <>
261: nvl(p_rec.attribute29, hr_api.g_varchar2) or
262: nvl(per_psh_shd.g_old_rec.attribute30, hr_api.g_varchar2) <>
263: nvl(p_rec.attribute30, hr_api.g_varchar2) ))
264: or (p_rec.sharing_instance_id is null) then
265: --
266: -- Only execute the validation if absolutely necessary:
259: nvl(p_rec.attribute28, hr_api.g_varchar2) or
260: nvl(per_psh_shd.g_old_rec.attribute29, hr_api.g_varchar2) <>
261: nvl(p_rec.attribute29, hr_api.g_varchar2) or
262: nvl(per_psh_shd.g_old_rec.attribute30, hr_api.g_varchar2) <>
263: nvl(p_rec.attribute30, hr_api.g_varchar2) ))
264: or (p_rec.sharing_instance_id is null) then
265: --
266: -- Only execute the validation if absolutely necessary:
267: -- a) During update, the structure column value or any
414:
415: --
416: -- Check mandatory parameters have been set
417: --
418: hr_api.mandatory_arg_error
419: (p_api_name => l_proc
420: ,p_argument => 'person_id'
421: ,p_argument_value => p_person_id
422: );
478: select 'Y'
479: from per_all_people_f
480: where person_id = p_person_id
481: and trunc(sysdate) between
482: effective_start_date and nvl(effective_end_date,hr_api.g_eot);
483: --
484: --
485: begin
486: hr_utility.set_location('Entering:'|| l_proc, 1);
486: hr_utility.set_location('Entering:'|| l_proc, 1);
487: --
488: -- Check mandatory parameters have been set
489: --
490: hr_api.mandatory_arg_error
491: (p_api_name => l_proc
492: ,p_argument => 'person_id'
493: ,p_argument_value => p_person_id
494: );