Lawson Insight Technical Documentation

Generated by:
Documentation generated by Decision Analytics

ERDs Tables Conditions Elements Libraries APIs Forms

AP191


AP191 - Unrealized Gain/Loss

**Form Purpose
Run Unrealized Gain/Loss (AP191) for companies that pay non-base currency
invoices to calculate and create unrealized gain and loss general ledger
transactions for payment accrual and unrealized gain and loss accounts.
Unrealized gain and loss transactions are created for released, non-base
currency invoices only.

**Processing Effect
AP191 compares the currency exchange rate in effect at the time of invoice
entry to the exchange rate in effect as of the Revalue Date you define. If a
difference exists, the program creates an unrealized gain or loss transaction
for the invoice. If the rate increased, this program creates an unrealized
loss transaction.

Likewise, if the rate decreased, the program creates an unrealized gain
transaction. When the invoice is paid, AP191 reverses the unrealized gain or
loss entry, and AP170 (Payment Closing) creates a realized gain or loss
general ledger transaction to reflect any exchange rate fluctuation between
the invoice date and the payment date.

If unrealized gain/loss transactions are created for the same invoice in more
than one accounting period, the entries for the previous periods are
automatically reversed and the newly calculated unrealized gain and loss
entries are sent to the general ledger for the current accounting period.
Entries created by this program are summarized when they are transferred to
the general ledger.




Updated Files

    APDISTRIB  - Creates invoice distribution records.

    APINVOICE  - Updates invoice records with revalued base amount.

    APMONITOR  - Creates and deletes monitor file records.

    APPAYMENT  - Updates split invoice payment records with revalued base
                 amounts.

    APVENBAL   - Updates vendor balance records with revalued base amounts.

    CKPOINT    - Updates check point records.

    JBOOKHDR   -

    SYSTEMCODE -


Referenced Files

    APACCRCODE - Accesses accrual and discount accounts.

    APCOMPANY  - Validates company.

    APINUSRFLD -

    APPAYGROUP -

    APPROCLEV  -

    APVENGROUP - Validates vendor group.

    APVENLOC   - Validates alternate vendor location record.

    APVENMAST  - Validates vendor master record.

    CUACCT     - Accesses currency gain and loss accounts.

    CUCONV     - Accessed by currency common routines.

    CURELAT    - Accessed by currency common routines.

    GLADDRESS  - Accessed by general ledger common routines.

    GLCHART    - Used in general ledger common routine.

    GLCODES    - Accessed by general ledger common routines.

    GLSYSTEM   - Accessed by general ledger common routines.

    JBKOPCODE  -

    JBKSYSCODE -


INVOKED Programs

    IFAC
    ACAC
    ACCL
    API4
    IFCU
    IFSG
    SLSE
    SLSU
    IFFC
    IFGT
    GLCC
    IFAU
    IFOB
    IFRS
    IFSC
    SLSB
    SLSS
    SLFD