Lawson Insight Technical Documentation


ERDs Tables Elements Libraries App Forms

AP170

AP170 - Payment Closing

Run AP170 (Payment Closing) to complete a cash payment cycle for a pay group.
This is the last program in the payment cycle. Make sure you are satisfied
with your cash payment run before you close the payment cycle. Once you close
the cash payment cycle, you cannot reprint bad payment forms or recreate a
payment tape or electronic payment file.

AP170 creates general ledger entries for cash, discount, reportable income
withholding, currency gain and loss, and payment accrual transactions. If a
recurring invoice was processed in the payment cycle, AP170 creates the next
recurrence. If a prepayment or employee advance was processed, AP170 creates
the offsetting credit memo. AP170 removes temporary hold codes from vendors
and invoices, updates vendor balances to reflect payments made, and changes
paid invoices to historical status making them unavailable for further
maintenance. AP170 also creates offsetting tax recovery entries, if
applicable.

AP170 creates a summary payment listing, a listing of recurring invoices, and
a summary of general ledger transactions.

For Strategic Ledger users: If you selected "Yes" in the Suspend Strategic
Ledger field in GL01.4 (System Codes) for the Accounts Payable system this
program is affected by that decision. The information that is interfaced to
the Strategic Ledger system is processed in the Strategic Ledger Interface
(SLIFGTFILE) file to reduce processing time on the daily interface file
(IFGT). This information is not automatically loaded into the Strategic Ledger
system. You must run SL195 (Transaction Interface) to load information for use
in the Strategic Ledger system.





Updated Files

    ACCOMMIT   - Creates an activity management commitment record.

    ACCOMMITX  - Creates an activity management commitment record.

    AMCONTROL  - Updated or referenced by asset management common routines.

    AMINTER    - Updated or referenced by asset management common routines.

    AMRPRINTER - Updated or referenced by asset management common routines.

    APASTDTL   - Creates or validates an asset detail record.

    APDISTRIB  - Creates invoice distributions.

    APHLDINV   - Used to determine if a transaction or vendor is on hold.

    APINVOICE  - Updates and creates invoices records.

    APMONITOR  - Creates and deletes monitor file records.

    APPAYMENT  - Creates and updates invoice payment records.

    APUAVAL    - Updates user analysis information.

    APVENBAL   - Updates vendor balance records.

    APVENMAST  - Updates vendor record.

    CBBANKENT  - Validates bank and updates used flag.

    CBBANKINST - Validates payment code and updates used flag.

    CBCASHCODE - Validates cash code and updates used flag.

    CBCHECK    - Updates payment records.

    CBCPYCASH  - Validates company - cash code relationship and updates used
                 flag.


    CBDISTRIB  - Accessed by bank transaction routines.

    CBTRANS    - Updates bank transaction records.

    CKPOINT    - Updates check point record.

    JBKSEQNBR  - Keeps track of the most recently used journal book sequence
                 number and assigns the next available one if auto numbering is
                 used.


    SYSTEMCODE - Validates the system code updating general ledger and updates
                 the object id.


    TXCODEMAST - Validates tax code. Does not update.

    TXCOMPANY  - Referenced by tax common routines. Does not update.

    TXTAXCODE  - Updates last transaction identification.

    TXTAXTABLE - Referenced and updated by tax common routines.

    TXTAXTRAN  - Creates tax system tax transaction records.


Referenced Files

    ACACCTCAT  - Referenced by activity management common routines.

    ACACTGRP   - Referenced by activity management common routines.

    ACACTIVITY - Referenced by activity management common routines.

    ACCAL      - Referenced by activity management common routines.

    ACCALX     - Referenced by activity management common routines.

    AMTEMPLATE - Referenced by activity management common routines.

    APACCRCODE - Validates invoice accrual code record.

    APCOMPANY  - Validates company.

    APCPYVND   - Used to retrieve company specific defaults for a vendor.

    APDISCCODE - Validates discount code.

    APHOLDCODE - Validates hold code.

    APPAYCOREL - Validates relationship between pay group and company.

    APPAYGROUP - Validates pay group.

    APPROCLEV  - Validates process level.

    APUSER     - Validates user can access pay group.

    APUSRCLASS - Validates all users for pay group.

    APVENCLASS - Validates vendor class.

    APVENGROUP - Validates vendor group.

    APVENLOC   - Validates and defaults vendor location information.

    APWTHCODE  - Validates income withholding code.

    CBADJUST   - Accessed by cash ledger transaction routines.

    CBBALANCE  - Accessed by cash ledger transaction routines.

    CBCCTRNJB  - Validates journal book for cash code and payment code.

    CBSTATEMNT - Used to maintain bank statement header records.

    CBSTMTDTL  - Used to maintain bank statement transaction details.

    CBUSER     - Validates user can access cash code.

    CBUSRCLASS - Validates all users for cash code.

    CUACCT     - Accesses currency gain and loss accounts.

    CUCONV     - Accessed by the currency common routines.

    CURELAT    - Accessed by the currency common routines.

    GLADDRESS  - Accessed by the general ledger common routines.

    GLCHART    - Referenced by general ledger common routines.

    GLCODES    - Referenced by general ledger common routines.

    GLSYSTEM   - Accessed by general ledger common routines.

    TXTAXRATE  - Referenced by tax common routines.


INVOKED Programs

    IFAC
    ACAC
    IFCR
    IFSG
    IFCU
    IFAU
    SLSE
    SLSU
    IFCC
    IFFC
    IFGT
    IFOB
    IFRS
    IFSC
    SLSB
    SLTV
    IFJR
    SLFD