APP-SQLAP-10637: The system cannot create this payment

Scenario:

  1. Due to typo error made last April 3, 2009, instead of paying 876.48, we paid only 376.48 in actual to tally payment in bank recon.

We did partial payment in oracle and it was successfully validated.  See attached file for invoice #2811347 with the difference of 500.00

  1. In order to close invoice#2811347, we need to pay this in next payment batch and problem occurred while we do payment validation.

Please see attach file for the error encountered. This is not the first time we did partial payment and we successfully closed in next payment except this one.

APP-SQLAP-10637: The system cannot create this payment because one or more invoices selected for this payment have also been selected in a payment batch.Reselect the invoices for this payment before continuing

Solution:

AP_SELECTED_INVOICES_ALL is a temporary table that stores
information about invoices selected for payment in a payment batch.
Your Oracle Payables application inserts into this table after you initiate
a payment batch. There will be one row for each invoice that Payables
selects for payment in the current payment batch. When you build
payments in a payment batch, your Oracle Payables application uses
information in this table to create rows in
AP_SELECTED_INVOICE_CHECKS. Information from this table
appears in the Modify Payment Batch window.

AP_SELECTED_INVOICE_CHECKS_ALL is a temporary table that
stores payment information during a payment batch. Your Oracle
Payables application inserts into this table when you build payments in
a payment batch. There will be one row for each payment issued during
the current payment batch. When you confirm a payment batch, your
Oracle Payables application inserts these payments into
AP_CHECKS_ALL and creates a payment file.
Within a payment batch, SELECTED_CHECK_ID in this table joins with
PRINT_SELECTED_CHECK_ID and PAY_SELECTED_CHECK_ID in
AP_SELECTED_INVOICES to associate a selected invoice with its
payment.

AP_SELECTED_INVOICES_ALL和AP_SELECTED_INVOICE_CHECKS_ALL存在那个异常记录,做删除测试

create table ap_selected_invoices_all_bak as select * from ap_selected_invoices_all

create table ap_selected_invoice_checks_bak as select * from ap_selected_invoice_checks_all

select * from ap_selected_invoices_all
where set_of_books_id=1003
and checkrun_name='Quick Payment: ID=82696'
and invoice_id=178023

delete from ap_selected_invoices_all
where set_of_books_id=1003
and checkrun_name='Quick Payment: ID=82696'
and invoice_id=178023

select * from ap_selected_invoice_checks_all
where checkrun_name='Quick Payment: ID=82696'

delete from ap_selected_invoice_checks_all
where checkrun_name='Quick Payment: ID=82696'

此时,在系统中可以做payment动作了,测试成功

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值