37: l_batch_status := batch_overall_status(p_batch_id);
38:
39: if not check_operation_allowed (p_batch_status => l_batch_status, p_process_mode => p_mode) then
40:
41: fnd_message.set_name('PAY', 'PAY_34292_BBABP_INV_OPERATION');
42: fnd_message.set_token('BATCHOP', p_mode);
43: fnd_message.set_token('STATUS',l_batch_status);
44: fnd_message.raise_error;
45:
38:
39: if not check_operation_allowed (p_batch_status => l_batch_status, p_process_mode => p_mode) then
40:
41: fnd_message.set_name('PAY', 'PAY_34292_BBABP_INV_OPERATION');
42: fnd_message.set_token('BATCHOP', p_mode);
43: fnd_message.set_token('STATUS',l_batch_status);
44: fnd_message.raise_error;
45:
46: end if;
39: if not check_operation_allowed (p_batch_status => l_batch_status, p_process_mode => p_mode) then
40:
41: fnd_message.set_name('PAY', 'PAY_34292_BBABP_INV_OPERATION');
42: fnd_message.set_token('BATCHOP', p_mode);
43: fnd_message.set_token('STATUS',l_batch_status);
44: fnd_message.raise_error;
45:
46: end if;
47:
40:
41: fnd_message.set_name('PAY', 'PAY_34292_BBABP_INV_OPERATION');
42: fnd_message.set_token('BATCHOP', p_mode);
43: fnd_message.set_token('STATUS',l_batch_status);
44: fnd_message.raise_error;
45:
46: end if;
47:
48: --
62:
63: end if;
64:
65: if l_request_id = 0 then
66: fnd_message.raise_error;
67: else
68: commit;
69: end if;
70: --
1119:
1120: if not check_operation_allowed (p_batch_status => l_batch_status, p_process_mode => p_batch_operation) then
1121:
1122: hr_utility.set_location('Leaving: '||l_proc, 10);
1123: fnd_message.set_name('PAY','PAY_34292_BBABP_INV_OPERATION');
1124: fnd_message.set_token('BATCHOP', p_batch_operation);
1125: fnd_message.set_token('STATUS', l_batch_status);
1126: fnd_message.raise_error;
1127:
1120: if not check_operation_allowed (p_batch_status => l_batch_status, p_process_mode => p_batch_operation) then
1121:
1122: hr_utility.set_location('Leaving: '||l_proc, 10);
1123: fnd_message.set_name('PAY','PAY_34292_BBABP_INV_OPERATION');
1124: fnd_message.set_token('BATCHOP', p_batch_operation);
1125: fnd_message.set_token('STATUS', l_batch_status);
1126: fnd_message.raise_error;
1127:
1128: end if;
1121:
1122: hr_utility.set_location('Leaving: '||l_proc, 10);
1123: fnd_message.set_name('PAY','PAY_34292_BBABP_INV_OPERATION');
1124: fnd_message.set_token('BATCHOP', p_batch_operation);
1125: fnd_message.set_token('STATUS', l_batch_status);
1126: fnd_message.raise_error;
1127:
1128: end if;
1129:
1122: hr_utility.set_location('Leaving: '||l_proc, 10);
1123: fnd_message.set_name('PAY','PAY_34292_BBABP_INV_OPERATION');
1124: fnd_message.set_token('BATCHOP', p_batch_operation);
1125: fnd_message.set_token('STATUS', l_batch_status);
1126: fnd_message.raise_error;
1127:
1128: end if;
1129:
1130: hr_utility.set_location(l_proc,20);