2615: || g_trc_trace_file_suffix;
2616: l_complete_trace_file_name := l_trace_path||'/'||l_trace_file_name;
2617: ELSE
2618: --Select and Open the log file
2619: l_trace_file.id:=FND_FILE.log;
2620: FND_FILE.put_line(l_trace_file.id, ' ');
2621: --Select and Open the output file
2622: l_output_file.id:=FND_FILE.output;
2623: FND_FILE.put_line(l_output_file.id, ' ');
2616: l_complete_trace_file_name := l_trace_path||'/'||l_trace_file_name;
2617: ELSE
2618: --Select and Open the log file
2619: l_trace_file.id:=FND_FILE.log;
2620: FND_FILE.put_line(l_trace_file.id, ' ');
2621: --Select and Open the output file
2622: l_output_file.id:=FND_FILE.output;
2623: FND_FILE.put_line(l_output_file.id, ' ');
2624: --Get log and output file names
2618: --Select and Open the log file
2619: l_trace_file.id:=FND_FILE.log;
2620: FND_FILE.put_line(l_trace_file.id, ' ');
2621: --Select and Open the output file
2622: l_output_file.id:=FND_FILE.output;
2623: FND_FILE.put_line(l_output_file.id, ' ');
2624: --Get log and output file names
2625: FND_FILE.get_names(l_trace_file_name, l_output_file_name);
2626: END IF;
2619: l_trace_file.id:=FND_FILE.log;
2620: FND_FILE.put_line(l_trace_file.id, ' ');
2621: --Select and Open the output file
2622: l_output_file.id:=FND_FILE.output;
2623: FND_FILE.put_line(l_output_file.id, ' ');
2624: --Get log and output file names
2625: FND_FILE.get_names(l_trace_file_name, l_output_file_name);
2626: END IF;
2627: x_return_status:=OKC_API.g_true;
2621: --Select and Open the output file
2622: l_output_file.id:=FND_FILE.output;
2623: FND_FILE.put_line(l_output_file.id, ' ');
2624: --Get log and output file names
2625: FND_FILE.get_names(l_trace_file_name, l_output_file_name);
2626: END IF;
2627: x_return_status:=OKC_API.g_true;
2628: EXCEPTION
2629: WHEN OTHERS THEN
2650: BEGIN
2651:
2652: IF g_request_id NOT IN (0, -1) THEN -- Conc. prog. is running
2653: --Select and Open the log file
2654: l_trace_file.id:=FND_FILE.log;
2655: FND_FILE.put_line(l_trace_file.id, ' ');
2656: --Select and Open the output file
2657: l_output_file.id:=FND_FILE.output;
2658: FND_FILE.put_line(l_output_file.id, ' ');
2651:
2652: IF g_request_id NOT IN (0, -1) THEN -- Conc. prog. is running
2653: --Select and Open the log file
2654: l_trace_file.id:=FND_FILE.log;
2655: FND_FILE.put_line(l_trace_file.id, ' ');
2656: --Select and Open the output file
2657: l_output_file.id:=FND_FILE.output;
2658: FND_FILE.put_line(l_output_file.id, ' ');
2659: --Get log and output file names
2653: --Select and Open the log file
2654: l_trace_file.id:=FND_FILE.log;
2655: FND_FILE.put_line(l_trace_file.id, ' ');
2656: --Select and Open the output file
2657: l_output_file.id:=FND_FILE.output;
2658: FND_FILE.put_line(l_output_file.id, ' ');
2659: --Get log and output file names
2660: FND_FILE.get_names(l_trace_file_name, l_output_file_name);
2661: END IF;
2654: l_trace_file.id:=FND_FILE.log;
2655: FND_FILE.put_line(l_trace_file.id, ' ');
2656: --Select and Open the output file
2657: l_output_file.id:=FND_FILE.output;
2658: FND_FILE.put_line(l_output_file.id, ' ');
2659: --Get log and output file names
2660: FND_FILE.get_names(l_trace_file_name, l_output_file_name);
2661: END IF;
2662: x_return_status:=OKC_API.g_true;
2656: --Select and Open the output file
2657: l_output_file.id:=FND_FILE.output;
2658: FND_FILE.put_line(l_output_file.id, ' ');
2659: --Get log and output file names
2660: FND_FILE.get_names(l_trace_file_name, l_output_file_name);
2661: END IF;
2662: x_return_status:=OKC_API.g_true;
2663: EXCEPTION
2664: WHEN OTHERS THEN
2703: END IF;
2704: ELSE -- write into log file for the conc.program
2705:
2706: IF l_log_flag AND l_trace_file.id IS NOT NULL THEN
2707: -- FND_FILE.PUT_LINE(l_trace_file.id, l_mesg);
2708: -- Bug 1993476
2709: FND_FILE.PUT_LINE(l_trace_file.id, replace(l_mesg,OKC_API.G_MISS_CHAR));
2710: END IF;
2711:
2705:
2706: IF l_log_flag AND l_trace_file.id IS NOT NULL THEN
2707: -- FND_FILE.PUT_LINE(l_trace_file.id, l_mesg);
2708: -- Bug 1993476
2709: FND_FILE.PUT_LINE(l_trace_file.id, replace(l_mesg,OKC_API.G_MISS_CHAR));
2710: END IF;
2711:
2712: END IF;
2713: EXCEPTION
2984: l_mesg VARCHAR2(1900);
2985: BEGIN
2986: IF l_output_flag AND l_output_file.id IS NOT NULL THEN
2987: l_mesg:=LPAD(p_trace_line, LENGTH(p_trace_line)+(4*p_indent), ' ');
2988: FND_FILE.PUT_LINE(l_output_file.id, l_mesg);
2989: END IF;
2990:
2991: EXCEPTION
2992: WHEN OTHERS THEN