26: begin
27: hr_utility.set_location('Entering:'|| l_proc, 10);
28: --
29: --
30: IF hr_api.not_exists_in_hrstanlookups
31: (p_effective_date => p_effective_date
32: ,p_lookup_type => 'YES_NO'
33: ,p_lookup_code => p_flag
34: ) THEN
63: --
64: hr_utility.set_location('Entering:'|| l_proc, 10);
65: --
66: --
67: hr_api.mandatory_arg_error
68: (p_api_name => l_proc
69: ,p_argument => 'p_name'
70: ,p_argument_value => p_name
71: );
68: (p_api_name => l_proc
69: ,p_argument => 'p_name'
70: ,p_argument_value => p_name
71: );
72: hr_api.mandatory_arg_error
73: (p_api_name => l_proc
74: ,p_argument => 'p_business_group_id'
75: ,p_argument_value => p_business_group_id
76: );
116: --
117: hr_utility.set_location('Entering:'|| l_proc, 10);
118: --
119: --
120: hr_api.mandatory_arg_error
121: (p_api_name => l_proc
122: ,p_argument => 'p_primary_position_flag'
123: ,p_argument_value => p_primary_position_flag
124: );
121: (p_api_name => l_proc
122: ,p_argument => 'p_primary_position_flag'
123: ,p_argument_value => p_primary_position_flag
124: );
125: hr_api.mandatory_arg_error
126: (p_api_name => l_proc
127: ,p_argument => 'p_business_group_id'
128: ,p_argument_value => p_business_group_id
129: );
160: --
161: hr_utility.set_location('Entering:'|| l_proc, 10);
162: --
163: --
164: hr_api.mandatory_arg_error
165: (p_api_name => l_proc
166: ,p_argument => 'p_position_structure_id'
167: ,p_argument_value => p_position_structure_id
168: );
193: --
194: hr_utility.set_location('Entering:'|| l_proc, 10);
195: --
196: --
197: hr_api.mandatory_arg_error
198: (p_api_name => l_proc
199: ,p_argument => 'p_position_structure_id'
200: ,p_argument_value => p_position_structure_id
201: );
242: hr_utility.set_location('Entering:'|| l_proc, 10);
243: --
244: -- Ensure that all the mandatory parameter are not null
245: --
246: hr_api.mandatory_arg_error
247: (p_api_name => l_proc
248: ,p_argument => 'position_structure_id'
249: ,p_argument_value => p_position_structure_id
250: );
265: close csr_sec_grp;
266: --
267: -- Set the security_group_id in CLIENT_INFO
268: --
269: hr_api.set_security_group_id
270: (p_security_group_id => l_security_group_id
271: );
272: --
273: hr_utility.set_location(' Leaving:'|| l_proc, 20);
302: hr_utility.set_location('Entering:'|| l_proc, 10);
303: --
304: -- Ensure that all the mandatory parameter are not null
305: --
306: hr_api.mandatory_arg_error
307: (p_api_name => l_proc
308: ,p_argument => 'position_structure_id'
309: ,p_argument_value => p_position_structure_id
310: );
308: ,p_argument => 'position_structure_id'
309: ,p_argument_value => p_position_structure_id
310: );
311: --
312: if ( nvl(per_pst_bus.g_position_structure_id, hr_api.g_number)
313: = p_position_structure_id) then
314: --
315: -- The legislation code has already been found with a previous
316: -- call to this function. Just return the value in the global
384: begin
385: hr_utility.set_location('Entering:'||l_proc,10);
386: --
387: if ((p_rec.position_structure_id is not null) and (
388: nvl(per_pst_shd.g_old_rec.attribute_category, hr_api.g_varchar2) <>
389: nvl(p_rec.attribute_category, hr_api.g_varchar2) or
390: nvl(per_pst_shd.g_old_rec.attribute1, hr_api.g_varchar2) <>
391: nvl(p_rec.attribute1, hr_api.g_varchar2) or
392: nvl(per_pst_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
385: hr_utility.set_location('Entering:'||l_proc,10);
386: --
387: if ((p_rec.position_structure_id is not null) and (
388: nvl(per_pst_shd.g_old_rec.attribute_category, hr_api.g_varchar2) <>
389: nvl(p_rec.attribute_category, hr_api.g_varchar2) or
390: nvl(per_pst_shd.g_old_rec.attribute1, hr_api.g_varchar2) <>
391: nvl(p_rec.attribute1, hr_api.g_varchar2) or
392: nvl(per_pst_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
393: nvl(p_rec.attribute2, hr_api.g_varchar2) or
386: --
387: if ((p_rec.position_structure_id is not null) and (
388: nvl(per_pst_shd.g_old_rec.attribute_category, hr_api.g_varchar2) <>
389: nvl(p_rec.attribute_category, hr_api.g_varchar2) or
390: nvl(per_pst_shd.g_old_rec.attribute1, hr_api.g_varchar2) <>
391: nvl(p_rec.attribute1, hr_api.g_varchar2) or
392: nvl(per_pst_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
393: nvl(p_rec.attribute2, hr_api.g_varchar2) or
394: nvl(per_pst_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
387: if ((p_rec.position_structure_id is not null) and (
388: nvl(per_pst_shd.g_old_rec.attribute_category, hr_api.g_varchar2) <>
389: nvl(p_rec.attribute_category, hr_api.g_varchar2) or
390: nvl(per_pst_shd.g_old_rec.attribute1, hr_api.g_varchar2) <>
391: nvl(p_rec.attribute1, hr_api.g_varchar2) or
392: nvl(per_pst_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
393: nvl(p_rec.attribute2, hr_api.g_varchar2) or
394: nvl(per_pst_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
395: nvl(p_rec.attribute3, hr_api.g_varchar2) or
388: nvl(per_pst_shd.g_old_rec.attribute_category, hr_api.g_varchar2) <>
389: nvl(p_rec.attribute_category, hr_api.g_varchar2) or
390: nvl(per_pst_shd.g_old_rec.attribute1, hr_api.g_varchar2) <>
391: nvl(p_rec.attribute1, hr_api.g_varchar2) or
392: nvl(per_pst_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
393: nvl(p_rec.attribute2, hr_api.g_varchar2) or
394: nvl(per_pst_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
395: nvl(p_rec.attribute3, hr_api.g_varchar2) or
396: nvl(per_pst_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
389: nvl(p_rec.attribute_category, hr_api.g_varchar2) or
390: nvl(per_pst_shd.g_old_rec.attribute1, hr_api.g_varchar2) <>
391: nvl(p_rec.attribute1, hr_api.g_varchar2) or
392: nvl(per_pst_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
393: nvl(p_rec.attribute2, hr_api.g_varchar2) or
394: nvl(per_pst_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
395: nvl(p_rec.attribute3, hr_api.g_varchar2) or
396: nvl(per_pst_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
397: nvl(p_rec.attribute4, hr_api.g_varchar2) or
390: nvl(per_pst_shd.g_old_rec.attribute1, hr_api.g_varchar2) <>
391: nvl(p_rec.attribute1, hr_api.g_varchar2) or
392: nvl(per_pst_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
393: nvl(p_rec.attribute2, hr_api.g_varchar2) or
394: nvl(per_pst_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
395: nvl(p_rec.attribute3, hr_api.g_varchar2) or
396: nvl(per_pst_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
397: nvl(p_rec.attribute4, hr_api.g_varchar2) or
398: nvl(per_pst_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
391: nvl(p_rec.attribute1, hr_api.g_varchar2) or
392: nvl(per_pst_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
393: nvl(p_rec.attribute2, hr_api.g_varchar2) or
394: nvl(per_pst_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
395: nvl(p_rec.attribute3, hr_api.g_varchar2) or
396: nvl(per_pst_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
397: nvl(p_rec.attribute4, hr_api.g_varchar2) or
398: nvl(per_pst_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
399: nvl(p_rec.attribute5, hr_api.g_varchar2) or
392: nvl(per_pst_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
393: nvl(p_rec.attribute2, hr_api.g_varchar2) or
394: nvl(per_pst_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
395: nvl(p_rec.attribute3, hr_api.g_varchar2) or
396: nvl(per_pst_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
397: nvl(p_rec.attribute4, hr_api.g_varchar2) or
398: nvl(per_pst_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
399: nvl(p_rec.attribute5, hr_api.g_varchar2) or
400: nvl(per_pst_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
393: nvl(p_rec.attribute2, hr_api.g_varchar2) or
394: nvl(per_pst_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
395: nvl(p_rec.attribute3, hr_api.g_varchar2) or
396: nvl(per_pst_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
397: nvl(p_rec.attribute4, hr_api.g_varchar2) or
398: nvl(per_pst_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
399: nvl(p_rec.attribute5, hr_api.g_varchar2) or
400: nvl(per_pst_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
401: nvl(p_rec.attribute6, hr_api.g_varchar2) or
394: nvl(per_pst_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
395: nvl(p_rec.attribute3, hr_api.g_varchar2) or
396: nvl(per_pst_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
397: nvl(p_rec.attribute4, hr_api.g_varchar2) or
398: nvl(per_pst_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
399: nvl(p_rec.attribute5, hr_api.g_varchar2) or
400: nvl(per_pst_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
401: nvl(p_rec.attribute6, hr_api.g_varchar2) or
402: nvl(per_pst_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
395: nvl(p_rec.attribute3, hr_api.g_varchar2) or
396: nvl(per_pst_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
397: nvl(p_rec.attribute4, hr_api.g_varchar2) or
398: nvl(per_pst_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
399: nvl(p_rec.attribute5, hr_api.g_varchar2) or
400: nvl(per_pst_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
401: nvl(p_rec.attribute6, hr_api.g_varchar2) or
402: nvl(per_pst_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
403: nvl(p_rec.attribute7, hr_api.g_varchar2) or
396: nvl(per_pst_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
397: nvl(p_rec.attribute4, hr_api.g_varchar2) or
398: nvl(per_pst_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
399: nvl(p_rec.attribute5, hr_api.g_varchar2) or
400: nvl(per_pst_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
401: nvl(p_rec.attribute6, hr_api.g_varchar2) or
402: nvl(per_pst_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
403: nvl(p_rec.attribute7, hr_api.g_varchar2) or
404: nvl(per_pst_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
397: nvl(p_rec.attribute4, hr_api.g_varchar2) or
398: nvl(per_pst_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
399: nvl(p_rec.attribute5, hr_api.g_varchar2) or
400: nvl(per_pst_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
401: nvl(p_rec.attribute6, hr_api.g_varchar2) or
402: nvl(per_pst_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
403: nvl(p_rec.attribute7, hr_api.g_varchar2) or
404: nvl(per_pst_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
405: nvl(p_rec.attribute8, hr_api.g_varchar2) or
398: nvl(per_pst_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
399: nvl(p_rec.attribute5, hr_api.g_varchar2) or
400: nvl(per_pst_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
401: nvl(p_rec.attribute6, hr_api.g_varchar2) or
402: nvl(per_pst_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
403: nvl(p_rec.attribute7, hr_api.g_varchar2) or
404: nvl(per_pst_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
405: nvl(p_rec.attribute8, hr_api.g_varchar2) or
406: nvl(per_pst_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
399: nvl(p_rec.attribute5, hr_api.g_varchar2) or
400: nvl(per_pst_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
401: nvl(p_rec.attribute6, hr_api.g_varchar2) or
402: nvl(per_pst_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
403: nvl(p_rec.attribute7, hr_api.g_varchar2) or
404: nvl(per_pst_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
405: nvl(p_rec.attribute8, hr_api.g_varchar2) or
406: nvl(per_pst_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
407: nvl(p_rec.attribute9, hr_api.g_varchar2) or
400: nvl(per_pst_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
401: nvl(p_rec.attribute6, hr_api.g_varchar2) or
402: nvl(per_pst_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
403: nvl(p_rec.attribute7, hr_api.g_varchar2) or
404: nvl(per_pst_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
405: nvl(p_rec.attribute8, hr_api.g_varchar2) or
406: nvl(per_pst_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
407: nvl(p_rec.attribute9, hr_api.g_varchar2) or
408: nvl(per_pst_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
401: nvl(p_rec.attribute6, hr_api.g_varchar2) or
402: nvl(per_pst_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
403: nvl(p_rec.attribute7, hr_api.g_varchar2) or
404: nvl(per_pst_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
405: nvl(p_rec.attribute8, hr_api.g_varchar2) or
406: nvl(per_pst_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
407: nvl(p_rec.attribute9, hr_api.g_varchar2) or
408: nvl(per_pst_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
409: nvl(p_rec.attribute10, hr_api.g_varchar2) or
402: nvl(per_pst_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
403: nvl(p_rec.attribute7, hr_api.g_varchar2) or
404: nvl(per_pst_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
405: nvl(p_rec.attribute8, hr_api.g_varchar2) or
406: nvl(per_pst_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
407: nvl(p_rec.attribute9, hr_api.g_varchar2) or
408: nvl(per_pst_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
409: nvl(p_rec.attribute10, hr_api.g_varchar2) or
410: nvl(per_pst_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
403: nvl(p_rec.attribute7, hr_api.g_varchar2) or
404: nvl(per_pst_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
405: nvl(p_rec.attribute8, hr_api.g_varchar2) or
406: nvl(per_pst_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
407: nvl(p_rec.attribute9, hr_api.g_varchar2) or
408: nvl(per_pst_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
409: nvl(p_rec.attribute10, hr_api.g_varchar2) or
410: nvl(per_pst_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
411: nvl(p_rec.attribute11, hr_api.g_varchar2) or
404: nvl(per_pst_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
405: nvl(p_rec.attribute8, hr_api.g_varchar2) or
406: nvl(per_pst_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
407: nvl(p_rec.attribute9, hr_api.g_varchar2) or
408: nvl(per_pst_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
409: nvl(p_rec.attribute10, hr_api.g_varchar2) or
410: nvl(per_pst_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
411: nvl(p_rec.attribute11, hr_api.g_varchar2) or
412: nvl(per_pst_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
405: nvl(p_rec.attribute8, hr_api.g_varchar2) or
406: nvl(per_pst_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
407: nvl(p_rec.attribute9, hr_api.g_varchar2) or
408: nvl(per_pst_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
409: nvl(p_rec.attribute10, hr_api.g_varchar2) or
410: nvl(per_pst_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
411: nvl(p_rec.attribute11, hr_api.g_varchar2) or
412: nvl(per_pst_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
413: nvl(p_rec.attribute12, hr_api.g_varchar2) or
406: nvl(per_pst_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
407: nvl(p_rec.attribute9, hr_api.g_varchar2) or
408: nvl(per_pst_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
409: nvl(p_rec.attribute10, hr_api.g_varchar2) or
410: nvl(per_pst_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
411: nvl(p_rec.attribute11, hr_api.g_varchar2) or
412: nvl(per_pst_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
413: nvl(p_rec.attribute12, hr_api.g_varchar2) or
414: nvl(per_pst_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
407: nvl(p_rec.attribute9, hr_api.g_varchar2) or
408: nvl(per_pst_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
409: nvl(p_rec.attribute10, hr_api.g_varchar2) or
410: nvl(per_pst_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
411: nvl(p_rec.attribute11, hr_api.g_varchar2) or
412: nvl(per_pst_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
413: nvl(p_rec.attribute12, hr_api.g_varchar2) or
414: nvl(per_pst_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
415: nvl(p_rec.attribute13, hr_api.g_varchar2) or
408: nvl(per_pst_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
409: nvl(p_rec.attribute10, hr_api.g_varchar2) or
410: nvl(per_pst_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
411: nvl(p_rec.attribute11, hr_api.g_varchar2) or
412: nvl(per_pst_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
413: nvl(p_rec.attribute12, hr_api.g_varchar2) or
414: nvl(per_pst_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
415: nvl(p_rec.attribute13, hr_api.g_varchar2) or
416: nvl(per_pst_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
409: nvl(p_rec.attribute10, hr_api.g_varchar2) or
410: nvl(per_pst_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
411: nvl(p_rec.attribute11, hr_api.g_varchar2) or
412: nvl(per_pst_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
413: nvl(p_rec.attribute12, hr_api.g_varchar2) or
414: nvl(per_pst_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
415: nvl(p_rec.attribute13, hr_api.g_varchar2) or
416: nvl(per_pst_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
417: nvl(p_rec.attribute14, hr_api.g_varchar2) or
410: nvl(per_pst_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
411: nvl(p_rec.attribute11, hr_api.g_varchar2) or
412: nvl(per_pst_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
413: nvl(p_rec.attribute12, hr_api.g_varchar2) or
414: nvl(per_pst_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
415: nvl(p_rec.attribute13, hr_api.g_varchar2) or
416: nvl(per_pst_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
417: nvl(p_rec.attribute14, hr_api.g_varchar2) or
418: nvl(per_pst_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
411: nvl(p_rec.attribute11, hr_api.g_varchar2) or
412: nvl(per_pst_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
413: nvl(p_rec.attribute12, hr_api.g_varchar2) or
414: nvl(per_pst_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
415: nvl(p_rec.attribute13, hr_api.g_varchar2) or
416: nvl(per_pst_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
417: nvl(p_rec.attribute14, hr_api.g_varchar2) or
418: nvl(per_pst_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
419: nvl(p_rec.attribute15, hr_api.g_varchar2) or
412: nvl(per_pst_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
413: nvl(p_rec.attribute12, hr_api.g_varchar2) or
414: nvl(per_pst_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
415: nvl(p_rec.attribute13, hr_api.g_varchar2) or
416: nvl(per_pst_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
417: nvl(p_rec.attribute14, hr_api.g_varchar2) or
418: nvl(per_pst_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
419: nvl(p_rec.attribute15, hr_api.g_varchar2) or
420: nvl(per_pst_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
413: nvl(p_rec.attribute12, hr_api.g_varchar2) or
414: nvl(per_pst_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
415: nvl(p_rec.attribute13, hr_api.g_varchar2) or
416: nvl(per_pst_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
417: nvl(p_rec.attribute14, hr_api.g_varchar2) or
418: nvl(per_pst_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
419: nvl(p_rec.attribute15, hr_api.g_varchar2) or
420: nvl(per_pst_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
421: nvl(p_rec.attribute16, hr_api.g_varchar2) or
414: nvl(per_pst_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
415: nvl(p_rec.attribute13, hr_api.g_varchar2) or
416: nvl(per_pst_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
417: nvl(p_rec.attribute14, hr_api.g_varchar2) or
418: nvl(per_pst_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
419: nvl(p_rec.attribute15, hr_api.g_varchar2) or
420: nvl(per_pst_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
421: nvl(p_rec.attribute16, hr_api.g_varchar2) or
422: nvl(per_pst_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
415: nvl(p_rec.attribute13, hr_api.g_varchar2) or
416: nvl(per_pst_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
417: nvl(p_rec.attribute14, hr_api.g_varchar2) or
418: nvl(per_pst_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
419: nvl(p_rec.attribute15, hr_api.g_varchar2) or
420: nvl(per_pst_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
421: nvl(p_rec.attribute16, hr_api.g_varchar2) or
422: nvl(per_pst_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
423: nvl(p_rec.attribute17, hr_api.g_varchar2) or
416: nvl(per_pst_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
417: nvl(p_rec.attribute14, hr_api.g_varchar2) or
418: nvl(per_pst_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
419: nvl(p_rec.attribute15, hr_api.g_varchar2) or
420: nvl(per_pst_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
421: nvl(p_rec.attribute16, hr_api.g_varchar2) or
422: nvl(per_pst_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
423: nvl(p_rec.attribute17, hr_api.g_varchar2) or
424: nvl(per_pst_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
417: nvl(p_rec.attribute14, hr_api.g_varchar2) or
418: nvl(per_pst_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
419: nvl(p_rec.attribute15, hr_api.g_varchar2) or
420: nvl(per_pst_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
421: nvl(p_rec.attribute16, hr_api.g_varchar2) or
422: nvl(per_pst_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
423: nvl(p_rec.attribute17, hr_api.g_varchar2) or
424: nvl(per_pst_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
425: nvl(p_rec.attribute18, hr_api.g_varchar2) or
418: nvl(per_pst_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
419: nvl(p_rec.attribute15, hr_api.g_varchar2) or
420: nvl(per_pst_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
421: nvl(p_rec.attribute16, hr_api.g_varchar2) or
422: nvl(per_pst_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
423: nvl(p_rec.attribute17, hr_api.g_varchar2) or
424: nvl(per_pst_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
425: nvl(p_rec.attribute18, hr_api.g_varchar2) or
426: nvl(per_pst_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
419: nvl(p_rec.attribute15, hr_api.g_varchar2) or
420: nvl(per_pst_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
421: nvl(p_rec.attribute16, hr_api.g_varchar2) or
422: nvl(per_pst_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
423: nvl(p_rec.attribute17, hr_api.g_varchar2) or
424: nvl(per_pst_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
425: nvl(p_rec.attribute18, hr_api.g_varchar2) or
426: nvl(per_pst_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
427: nvl(p_rec.attribute19, hr_api.g_varchar2) or
420: nvl(per_pst_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
421: nvl(p_rec.attribute16, hr_api.g_varchar2) or
422: nvl(per_pst_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
423: nvl(p_rec.attribute17, hr_api.g_varchar2) or
424: nvl(per_pst_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
425: nvl(p_rec.attribute18, hr_api.g_varchar2) or
426: nvl(per_pst_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
427: nvl(p_rec.attribute19, hr_api.g_varchar2) or
428: nvl(per_pst_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
421: nvl(p_rec.attribute16, hr_api.g_varchar2) or
422: nvl(per_pst_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
423: nvl(p_rec.attribute17, hr_api.g_varchar2) or
424: nvl(per_pst_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
425: nvl(p_rec.attribute18, hr_api.g_varchar2) or
426: nvl(per_pst_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
427: nvl(p_rec.attribute19, hr_api.g_varchar2) or
428: nvl(per_pst_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
429: nvl(p_rec.attribute20, hr_api.g_varchar2) ))
422: nvl(per_pst_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
423: nvl(p_rec.attribute17, hr_api.g_varchar2) or
424: nvl(per_pst_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
425: nvl(p_rec.attribute18, hr_api.g_varchar2) or
426: nvl(per_pst_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
427: nvl(p_rec.attribute19, hr_api.g_varchar2) or
428: nvl(per_pst_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
429: nvl(p_rec.attribute20, hr_api.g_varchar2) ))
430: or (p_rec.position_structure_id is null) then
423: nvl(p_rec.attribute17, hr_api.g_varchar2) or
424: nvl(per_pst_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
425: nvl(p_rec.attribute18, hr_api.g_varchar2) or
426: nvl(per_pst_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
427: nvl(p_rec.attribute19, hr_api.g_varchar2) or
428: nvl(per_pst_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
429: nvl(p_rec.attribute20, hr_api.g_varchar2) ))
430: or (p_rec.position_structure_id is null) then
431: --
424: nvl(per_pst_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
425: nvl(p_rec.attribute18, hr_api.g_varchar2) or
426: nvl(per_pst_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
427: nvl(p_rec.attribute19, hr_api.g_varchar2) or
428: nvl(per_pst_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
429: nvl(p_rec.attribute20, hr_api.g_varchar2) ))
430: or (p_rec.position_structure_id is null) then
431: --
432: -- Only execute the validation if absolutely necessary:
425: nvl(p_rec.attribute18, hr_api.g_varchar2) or
426: nvl(per_pst_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
427: nvl(p_rec.attribute19, hr_api.g_varchar2) or
428: nvl(per_pst_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
429: nvl(p_rec.attribute20, hr_api.g_varchar2) ))
430: or (p_rec.position_structure_id is null) then
431: --
432: -- Only execute the validation if absolutely necessary:
433: -- a) During update, the structure column value or any
535: fnd_message.raise_error;
536: END IF;
537: EXCEPTION
538: WHEN l_error THEN
539: hr_api.argument_changed_error
540: (p_api_name => l_proc
541: ,p_argument => l_argument);
542: WHEN OTHERS THEN
543: RAISE;
574: ,p_business_group_id => p_rec.business_group_id
575: ,p_primary_position_flag => p_rec.primary_position_flag);
576:
577: if p_rec.business_group_id <> NULL then
578: hr_api.validate_bus_grp_id(p_rec.business_group_id); -- Validate Bus Grp
579: end if;
580: --
581: --
582: per_pst_bus.chk_df(p_rec);
598: hr_utility.set_location('Entering:'||l_proc, 5);
599: --
600: -- Call all supporting business operations
601: --
602: hr_api.validate_bus_grp_id(p_rec.business_group_id); -- Validate Bus Grp
603: --
604: chk_non_updateable_args
605: (p_effective_date => p_effective_date
606: ,p_rec => p_rec