37: l_total_count NUMBER;
38: l_processed_count NUMBER;
39: l_error_count NUMBER;
40: lx_error_rec OKL_API.error_rec_type;
41: l_msg_idx INTEGER := FND_MSG_PUB.G_FIRST;
42:
43: BEGIN
44:
45: process_transactions(
63:
64: -- Get the messages in the log
65: LOOP
66:
67: fnd_msg_pub.get(
68: p_msg_index => l_msg_idx,
69: p_encoded => FND_API.G_FALSE,
70: p_data => lx_error_rec.msg_data,
71: p_msg_index_out => lx_error_rec.msg_count);
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)
81: OR (lx_error_rec.msg_count IS NULL));
82:
83: l_msg_idx := FND_MSG_PUB.G_NEXT;
84: END LOOP;
79:
80: EXIT WHEN ((lx_error_rec.msg_count = FND_MSG_PUB.COUNT_MSG)
81: OR (lx_error_rec.msg_count IS NULL));
82:
83: l_msg_idx := FND_MSG_PUB.G_NEXT;
84: END LOOP;
85:
86:
87: fnd_file.new_line(fnd_file.log,2);