163: --
164: Begin
165: hr_utility.set_location('Entering:'||l_proc, 5);
166: --
167: hr_api.mandatory_arg_error
168: (p_api_name => l_proc
169: ,p_argument => 'SECURITY_PROFILE_ID'
170: ,p_argument_value => p_security_profile_id
171: );
169: ,p_argument => 'SECURITY_PROFILE_ID'
170: ,p_argument_value => p_security_profile_id
171: );
172: hr_utility.set_location(l_proc,6);
173: hr_api.mandatory_arg_error
174: (p_api_name => l_proc
175: ,p_argument => 'PAYROLL_ID'
176: ,p_argument_value => p_payroll_id
177: );
175: ,p_argument => 'PAYROLL_ID'
176: ,p_argument_value => p_payroll_id
177: );
178: hr_utility.set_location(l_proc,7);
179: hr_api.mandatory_arg_error
180: (p_api_name => l_proc
181: ,p_argument => 'OBJECT_VERSION_NUMBER'
182: ,p_argument_value => p_object_version_number
183: );
203: --
204: -- We need to trap the ORA LOCK exception
205: --
206: Exception
207: When HR_Api.Object_Locked then
208: --
209: -- The object is locked therefore we need to supply a meaningful
210: -- error message.
211: --