31: ) IS
32: BEGIN
33: IF p_debug_mode = 'Y' THEN
34: IF g_debug_level = 'DEBUG' THEN
35: fnd_file.put_line(fnd_file.log, p_text);
36: END IF;
37: ELSE
38: fnd_file.put_line(fnd_file.log, p_text);
39: END IF;
34: IF g_debug_level = 'DEBUG' THEN
35: fnd_file.put_line(fnd_file.log, p_text);
36: END IF;
37: ELSE
38: fnd_file.put_line(fnd_file.log, p_text);
39: END IF;
40:
41: hr_utility.set_location('LOG Message - '||p_text, 999);
42: EXCEPTION
163:
164: -- Open LOG and OUT files.
165: IF p_mode = 'SINGLE_ORG' THEN
166: hr_utility.set_location(l_proc, 20);
167: fnd_file.put_names( p_mode||p_ccid||'.log'
168: , p_mode||p_ccid||'.out'
169: , l_dir
170: );
171: ELSE -- mode is not single org
169: , l_dir
170: );
171: ELSE -- mode is not single org
172: hr_utility.set_location(l_proc, 30);
173: fnd_file.put_names( p_mode||p_business_group_id||'.log'
174: , p_mode||p_business_group_id||'.out'
175: , l_dir
176: );
177: END IF;