Invoice Posting (R09801) Issues AAI Missing (023Q) Error

Goal


The audience for this note is someone with developer level knowledge.

Solution

In posting Sales Invoices (R09801) issues AAI Missing (023Q) error.

The system seems to be looking for RT blank AAI for company 00000.

What was going on and how to fix this error?

Existing data from F03B11 - Customer Ledger and F4211 - Sales Order Detail have data as below:

szTaxarea1 mnTaxrate1 szGlclassbytaxarea1 szTaxexemptreason
Line 1
V .07 TXTX V
Line 2
S 0 TXTX S
  1. szTaxexemptreason is coming from F03B11.EXR1 (<- F4211.EXR1)
  2. TaxExplanationCode1 (or EXR1) is defined at UDC(00|EX) - Tax Explanation Code
  3. S is for Sales Tax (for this case, tax exempt)

So the validation takes place for following routine:

1. Run R09801 - G/L Post
2. Call BSFN B03B0025 - InvoicePost (F0911 Write Invoice Offset Automatic Entries)
3. Only when Tax Area Code is not Tax Exempt then call BSFN B0000055 - ValidateAAICompletely (F0012 Get AAI Account Number) to get MCU, OBJ and SUB

To overcome error 023Q, install/apply ESU which contains Bug 10994748.

Note: This is only one fix, there may be other instances that cause the 023Q error to be issued.