57: x_error_count => l_error_count);
58:
59:
60: -- Add couple of blank lines
61: fnd_file.new_line(fnd_file.log,2);
62: fnd_file.new_line(fnd_file.output,2);
63:
64: -- Get the messages in the log
65: LOOP
58:
59:
60: -- Add couple of blank lines
61: fnd_file.new_line(fnd_file.log,2);
62: fnd_file.new_line(fnd_file.output,2);
63:
64: -- Get the messages in the log
65: LOOP
66:
71: p_msg_index_out => lx_error_rec.msg_count);
72:
73: IF (lx_error_rec.msg_count IS NOT NULL) THEN
74:
75: fnd_file.put_line(fnd_file.log, lx_error_rec.msg_data);
76: fnd_file.put_line(fnd_file.output, lx_error_rec.msg_data);
77:
78: END IF;
79:
72:
73: IF (lx_error_rec.msg_count IS NOT NULL) THEN
74:
75: fnd_file.put_line(fnd_file.log, lx_error_rec.msg_data);
76: fnd_file.put_line(fnd_file.output, lx_error_rec.msg_data);
77:
78: END IF;
79:
80: EXIT WHEN ((lx_error_rec.msg_count = FND_MSG_PUB.COUNT_MSG)
83: l_msg_idx := FND_MSG_PUB.G_NEXT;
84: END LOOP;
85:
86:
87: fnd_file.new_line(fnd_file.log,2);
88: fnd_file.new_line(fnd_file.output,2);
89:
90: IF l_return_status <> OKC_API.G_RET_STS_SUCCESS THEN
91: fnd_file.put_line(fnd_file.log, 'FA ADJUSTMENTS Failed, None of the transactions got processed');
84: END LOOP;
85:
86:
87: fnd_file.new_line(fnd_file.log,2);
88: fnd_file.new_line(fnd_file.output,2);
89:
90: IF l_return_status <> OKC_API.G_RET_STS_SUCCESS THEN
91: fnd_file.put_line(fnd_file.log, 'FA ADJUSTMENTS Failed, None of the transactions got processed');
92: fnd_file.put_line(fnd_file.output, 'FA ADJUSTMENTS Failed, None of the transactions got processed');
87: fnd_file.new_line(fnd_file.log,2);
88: fnd_file.new_line(fnd_file.output,2);
89:
90: IF l_return_status <> OKC_API.G_RET_STS_SUCCESS THEN
91: fnd_file.put_line(fnd_file.log, 'FA ADJUSTMENTS Failed, None of the transactions got processed');
92: fnd_file.put_line(fnd_file.output, 'FA ADJUSTMENTS Failed, None of the transactions got processed');
93: END IF;
94:
95: IF l_total_count = 0 THEN
88: fnd_file.new_line(fnd_file.output,2);
89:
90: IF l_return_status <> OKC_API.G_RET_STS_SUCCESS THEN
91: fnd_file.put_line(fnd_file.log, 'FA ADJUSTMENTS Failed, None of the transactions got processed');
92: fnd_file.put_line(fnd_file.output, 'FA ADJUSTMENTS Failed, None of the transactions got processed');
93: END IF;
94:
95: IF l_total_count = 0 THEN
96: fnd_file.put_line(fnd_file.log, 'There were no Asset Management transactions to process.');
92: fnd_file.put_line(fnd_file.output, 'FA ADJUSTMENTS Failed, None of the transactions got processed');
93: END IF;
94:
95: IF l_total_count = 0 THEN
96: fnd_file.put_line(fnd_file.log, 'There were no Asset Management transactions to process.');
97: fnd_file.put_line(fnd_file.output,'There were no Asset Management transactions to process.');
98: ELSE
99:
100: fnd_file.put_line(fnd_file.log, 'Total Transactions : '||l_total_count);
93: END IF;
94:
95: IF l_total_count = 0 THEN
96: fnd_file.put_line(fnd_file.log, 'There were no Asset Management transactions to process.');
97: fnd_file.put_line(fnd_file.output,'There were no Asset Management transactions to process.');
98: ELSE
99:
100: fnd_file.put_line(fnd_file.log, 'Total Transactions : '||l_total_count);
101: fnd_file.put_line(fnd_file.log, 'Transactions Processed Successfully : '||l_processed_count);
96: fnd_file.put_line(fnd_file.log, 'There were no Asset Management transactions to process.');
97: fnd_file.put_line(fnd_file.output,'There were no Asset Management transactions to process.');
98: ELSE
99:
100: fnd_file.put_line(fnd_file.log, 'Total Transactions : '||l_total_count);
101: fnd_file.put_line(fnd_file.log, 'Transactions Processed Successfully : '||l_processed_count);
102: fnd_file.put_line(fnd_file.log, 'Transactions Failed : '||l_error_count);
103:
104: fnd_file.put_line(fnd_file.output, 'Total Transactions : '||l_total_count);
97: fnd_file.put_line(fnd_file.output,'There were no Asset Management transactions to process.');
98: ELSE
99:
100: fnd_file.put_line(fnd_file.log, 'Total Transactions : '||l_total_count);
101: fnd_file.put_line(fnd_file.log, 'Transactions Processed Successfully : '||l_processed_count);
102: fnd_file.put_line(fnd_file.log, 'Transactions Failed : '||l_error_count);
103:
104: fnd_file.put_line(fnd_file.output, 'Total Transactions : '||l_total_count);
105: fnd_file.put_line(fnd_file.output, 'Transactions Processed Successfully : '||l_processed_count);
98: ELSE
99:
100: fnd_file.put_line(fnd_file.log, 'Total Transactions : '||l_total_count);
101: fnd_file.put_line(fnd_file.log, 'Transactions Processed Successfully : '||l_processed_count);
102: fnd_file.put_line(fnd_file.log, 'Transactions Failed : '||l_error_count);
103:
104: fnd_file.put_line(fnd_file.output, 'Total Transactions : '||l_total_count);
105: fnd_file.put_line(fnd_file.output, 'Transactions Processed Successfully : '||l_processed_count);
106: fnd_file.put_line(fnd_file.output, 'Transactions Failed : '||l_error_count);
100: fnd_file.put_line(fnd_file.log, 'Total Transactions : '||l_total_count);
101: fnd_file.put_line(fnd_file.log, 'Transactions Processed Successfully : '||l_processed_count);
102: fnd_file.put_line(fnd_file.log, 'Transactions Failed : '||l_error_count);
103:
104: fnd_file.put_line(fnd_file.output, 'Total Transactions : '||l_total_count);
105: fnd_file.put_line(fnd_file.output, 'Transactions Processed Successfully : '||l_processed_count);
106: fnd_file.put_line(fnd_file.output, 'Transactions Failed : '||l_error_count);
107:
108: END IF;
101: fnd_file.put_line(fnd_file.log, 'Transactions Processed Successfully : '||l_processed_count);
102: fnd_file.put_line(fnd_file.log, 'Transactions Failed : '||l_error_count);
103:
104: fnd_file.put_line(fnd_file.output, 'Total Transactions : '||l_total_count);
105: fnd_file.put_line(fnd_file.output, 'Transactions Processed Successfully : '||l_processed_count);
106: fnd_file.put_line(fnd_file.output, 'Transactions Failed : '||l_error_count);
107:
108: END IF;
109:
102: fnd_file.put_line(fnd_file.log, 'Transactions Failed : '||l_error_count);
103:
104: fnd_file.put_line(fnd_file.output, 'Total Transactions : '||l_total_count);
105: fnd_file.put_line(fnd_file.output, 'Transactions Processed Successfully : '||l_processed_count);
106: fnd_file.put_line(fnd_file.output, 'Transactions Failed : '||l_error_count);
107:
108: END IF;
109:
110: