51: end if;
52: --
53: -- Ensure that all the mandatory parameter are not null
54: --
55: hr_api.mandatory_arg_error
56: (p_api_name => l_proc
57: ,p_argument => 'approval_style_id'
58: ,p_argument_value => p_approval_style_id
59: );
74: close csr_sec_grp;
75: --
76: -- Set the security_group_id in CLIENT_INFO
77: --
78: hr_api.set_security_group_id
79: (p_security_group_id => l_security_group_id
80: );
81: --
82: if g_debug then
123: end if;
124: --
125: -- Ensure that all the mandatory parameter are not null
126: --
127: hr_api.mandatory_arg_error
128: (p_api_name => l_proc
129: ,p_argument => 'approval_style_id'
130: ,p_argument_value => p_approval_style_id
131: );
129: ,p_argument => 'approval_style_id'
130: ,p_argument_value => p_approval_style_id
131: );
132: --
133: if ( nvl(hxc_has_bus.g_approval_style_id, hr_api.g_number)
134: = p_approval_style_id) then
135: --
136: -- The legislation code has already been found with a previous
137: -- call to this function. Just return the value in the global
228: -- not been updated.
229: --
230: EXCEPTION
231: WHEN l_error THEN
232: hr_api.argument_changed_error
233: (p_api_name => l_proc
234: ,p_argument => l_argument);
235: WHEN OTHERS THEN
236: RAISE;
651: hr_utility.set_location(' Leaving:'||l_proc, 10);
652: end if;
653: --
654: if p_rec.business_group_id is not null then
655: hr_api.validate_bus_grp_id(p_rec.business_group_id); -- Validate Bus Grp
656: end if;
657: -- Validate the legislation_code
658: chk_legislation_code
659: (p_business_group_id => p_rec.business_group_id,
725: );
726: --
727: --
728: if p_rec.business_group_id is not null then
729: hr_api.validate_bus_grp_id(p_rec.business_group_id); -- Validate Bus Grp
730: end if;
731: -- Validate the legislation_code
732: chk_legislation_code
733: (p_business_group_id => p_rec.business_group_id,