My Oracle Support Banner

R12: AP: Create Accounting Returns Error "APP-SQLAP-10000: ORA-06502: PL/SQL: numeric or value error occurred in AP_Acctg_Pay_Dist_Pkg.Update_Gain_Loss_Ind" (Doc ID 2017795.1)

Last updated on FEBRUARY 22, 2019

Applies to:

Oracle Payables - Version 12.1.1 and later
Information in this document applies to any platform.

Symptoms

On : 12.1.3 version:

When attempting to run Create Accounting, the following error occurs.

ERROR
-----------------------
Payment_History_ID for payment = XXXX
after close cursor Invoice_Payment
Calling procedure Update_Gain_Loss_Ind for payments
Begin of procedure Update_Gain_Loss_Ind

APP-SQLAP-10000: ORA-06502: PL/SQL: numeric or value error occurred in

AP_Acctg_Pay_Dist_Pkg.Update_Gain_Loss_Ind<-
AP_Acctg_Pay_Dist_Pkg.Primary_Pay_Events<-
AP_Accounting_Pay_Pkg.Do_Pay_Accounting


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Run the Create Accounting process
2. See output file

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot eventually close the period

Changes

Prorated payment divisor amount value has been modified to consider only the current and prior payment adjusted event.
Gain loss indicator code has been reverted old logic
Added new logic to derive payment adjusted cases.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.