44: hr_utility.set_location('Entering:'|| l_proc, 10);
45: --
46: -- Ensure that all the mandatory parameter are not null
47: --
48: hr_api.mandatory_arg_error
49: (p_api_name => l_proc
50: ,p_argument => 'setup_task_code'
51: ,p_argument_value => p_setup_task_code
52: );
71: close csr_sec_grp;
72: --
73: -- Set the security_group_id in CLIENT_INFO
74: --
75: hr_api.set_security_group_id
76: (p_security_group_id => l_security_group_id
77: );
78: --
79: -- Set the sessions legislation context in HR_SESSION_DATA
77: );
78: --
79: -- Set the sessions legislation context in HR_SESSION_DATA
80: --
81: hr_api.set_legislation_context(l_legislation_code);
82: end if;
83: --
84: hr_utility.set_location(' Leaving:'|| l_proc, 20);
85: --
113: hr_utility.set_location('Entering:'|| l_proc, 10);
114: --
115: -- Ensure that all the mandatory parameter are not null
116: --
117: hr_api.mandatory_arg_error
118: (p_api_name => l_proc
119: ,p_argument => 'setup_task_code'
120: ,p_argument_value => p_setup_task_code
121: );
119: ,p_argument => 'setup_task_code'
120: ,p_argument_value => p_setup_task_code
121: );
122: --
123: if ( nvl(per_stb_bus.g_setup_task_code, hr_api.g_varchar2)
124: = p_setup_task_code) then
125: --
126: -- The legislation code has already been found with a previous
127: -- call to this function. Just return the value in the global
256: hr_utility.set_location('Entering:'|| l_proc, 1);
257:
258: If p_setup_task_type Is Not Null Then
259:
260: hr_api.mandatory_arg_error
261: (p_api_name => l_proc
262: ,p_argument => 'EFFECTIVE_DATE'
263: ,p_argument_value => p_effective_date
264: );
261: (p_api_name => l_proc
262: ,p_argument => 'EFFECTIVE_DATE'
263: ,p_argument_value => p_effective_date
264: );
265: If hr_api.not_exists_in_hr_lookups
266: (p_effective_date => p_effective_date
267: ,p_lookup_type => 'PER_RI_TASK_TYPE'
268: ,p_lookup_code => p_setup_task_type
269: ) Then