Lawson Software

Lawson Insight Technical Documentation

Generated by:
Documentation generated by Decision Analytics

ERDs Tables Elements Libraries App Forms


                             APCOMPANY FILE

                        Accounts Payable Company

The Accounts Payable Company file contains information for each Accounts
Payable company. An accounts payable company must first exist as a valid
company in the Lawson General Ledger system. The accounts payable company uses
the name and base currency defined for the company in the General Ledger
system.

REFERENCED BY

AC03.4    AC17.4    AC18.3    AC191     AC217     AC218
AC259     AC42.1    AC50.1    AC500     AC52.1    AC520
AC54.2    AC542     AC550     AC551     AC59.1    AC92.2
AC92.4    AC92.6    AM18.1    AP01.4    AP01.1    AP02.2
AP05.2    AP05.3    AP05.6    AP06.1    AP101     AP102
AP115     AP12.1    AP130     AP135     AP141     AP150
AP151     AP155     AP156     AP160     AP161     AP170
AP175     AP176     AP180     AP181     AP185     AP190
AP191     AP193     AP195     AP197     AP199     AP200
AP201     AP205     AP212     AP213     AP214     AP220
AP230     AP236     AP240     AP250     AP251     AP252
AP260     AP265     AP270     AP275     AP28.1    AP28.2
AP282     AP284     AP30.1    AP30.2    AP30.3    AP30.4
AP300     AP32.1    AP32.2    AP35.1    AP36.1    AP40.1
AP41.1    AP45.1    AP510     AP52.1    AP52.2    AP52.3
AP52.6    AP52.7    AP55.1    AP55.2    AP56.1    AP56.2
AP57.2    AP80.1    AP80.2    AP90.1    AP90.2    AP90.3
AP90.4    AP90.6    AP90.8    AP91.5    AP91.6    AP92.3
AP92.4    AP93.3    AP93.4    AP95.1    AP95.2    AP95.3
AP96.1    AP96.2    AP96.3    AP96.4    AR01.1    AR08.1
AR115     AR124     AR190     AR20.1    AR21.1    AR21.2
AR21.3    AR24.1    AR29.2    AR30.1    AR30.2    AR30.4
AR42.1    AR42.2    AR42.7    AR43.1    AR48.1    AR48.3
AR48.4    AR501     AR550     AR560     AR570     AR575
AR580     BL02.1    BL140     BL141     BL202     BL240
BL340     BL41.1    BL80.1    BL802     BR40.3    BRIP.1
CB06.1    CB06.2    CB10.1    CB180     CB191     CB20.1
CB30.1    CB500     DT180     DT181     EE05.1    EE05.2
EE135     EE175     EE20.1    EE20.2    EE20.3    EE20.4
EE220     EE230     EE235     EE275     EE30.1    EE35.1
EE35.2    EE52.1    EE52.2    EE520     EE90.1    EE90.2
EE90.3    GL284     GL285     HR00.1    HR01.1    DR100
IC02.1    IC10.1    IC10.2    IC12.1    IC12.2    IC125
IC130     IC140     IC141     IC142     IC145     IC211
IC225     IC226     IC263     IC281     IC320     IC330
IC36.1    IC45.1    IC520     IC521     IC522     IC523
IC524     IC525     IC526     IC527     IC530     IC531
IC62.1    IC63.1    IC81.1    IC81.2    IC812     IC82.1
IC83.1    IC840     PC120     SEA1.1    MA01.1    MA05.1
MA05.6    MA08.1    MA126     MA208     MA231     MA278
MA310     MA53.1    MA53.2    MA53.3    MA53.4    MA54.1
MA54.2    MA54.3    MA54.8    MA54.9    MA63.1    MA64.1
MA64.2    MA64.3    MA64.4    MA65.1    MA66.1    MA66.2
MA66.3    MA95.1    MA95.2    PO01.1    PO120     PO130
PO132     PO133     PO135     PO136     PO16.1    PO190
PO220     PO223     PO224     PO228     PO230     PO231
PO233     PO24.1    PO251     PO26.1    PO274     PO275
PO276     PO277     PO280     PO295     PO529     PO60.1
PO61.1    PO62.1    PO63.1    PO64.1    PO66.1    PO67.1
PO68.1    PO81.1    PO85.1    PO94.1    POA2.4    POED.1
POI7.1    POIF.1    POIJ.1    POIT.1    PR05.1    PR05.3
PR197     PR198     PR26.1    PR47.1    PR514     RQ11.1
RQ111     SEA2.1    SEA3.1    IN120     IN20.1    TX04.1
TX100     TX140     TX40.1    WH02.1    WH130     WH140
WH33.5    WH34.1    WH34.2    WH34.3    WH34.4    AP10.1
AP10.5    AP10.6    AP10.7    API3.1    API4.1

UPDATED BY

AP00.4    AP00.6    AP198     AP305     AP520     API1.1
API2.1

FIELD NAME           DESCRIPTION/VALID VALUES                    UPDATED BY

CPY-COMPANY          Numeric 4                                   AP00.4
Company              The company number. Must be a valid
                     company in the Lawson General Ledger
                     system.

CPY-NAME             Alpha 30  (Lower Case)                      AP00.4
Name                 The company name or description. An
                     accounts payable company uses the name
                     defined for the company in the Lawson
                     General Ledger system.

CPY-DEFAULT-REF      Alpha 1                                     AP00.4
Default              The default reference value for the
Distribution Referenccompany. Used to default a value in the
                     Reference field on distributions during
                     invoice entry. Valid values are:

                     I = Invoice.
                     P = Purchase Order.
                     V = Voucher.

CPY-VENDOR-GROUP     Alpha 4                                     AP00.4  IC81.2
Vendor Group         The vendor group assigned to the
                     company. Must be a valid record in the
                     Vendor Group file.

CPY-PAY-GROUP        Alpha 4                                     AP00.4
Pay Group            The pay group assigned to the company.
                     A pay group is used for processing
                     accounts payable payments. A pay group
                     lets you create a single payment for a
                     vendor to pay invoices received by all
                     company process levels assigned to the
                     pay group. Must be a valid record in the
                     Pay Group file. The company must have
                     the same base currency as the posting
                     company assigned to the pay group.

CPY-BATCH-OPTION     Alpha 1                                     AP00.4
Batch Release        Indicates whether the company batch
                     option to enter and releases invoices.
                     If this field is No, the company must
                     have Yes selected in the Invoice
                     Approval field. If the company has Yes
                     selected in both the Batch Release and
                     Invoice Approval fields, the company
                     assigns vouchers to invoices but still
                     enters and releases invoices in batches.
                     Valid values are:

                     N = No.
                     Y = Yes.

CPY-AUTO-BATCH       Alpha 1                                     AP00.4
Automatic Batch      Indicates whether the system
Numbering            automatically assigns numbers to batches
                     in AP25.1 (Batch Control). Used only if
                     the company has Yes selected in the
                     Batch Release Option field. Valid values
                     are:

                     N = No.
                     Y = Yes.

CPY-BATCH-CONTROL    Alpha 1                                     AP00.4
Batch Control        Indicates whether the company uses
                     batch control, which indicates whether
                     entry totals must match control totals
                     before a batch can be released. Used
                     only if the company has Yes selected in
                     the Batch Release Option field. Valid
                     values are:

                     Y = Yes.
                     N = No.

CPY-LAST-BATCH       Numeric 6                                   AP00.4
Last Batch Number    The last batch number used by the
                     company. Used only if the company has
                     Yes selected in the Automatic Batch
                     Numbering field.

CPY-INV-APPROVAL     Alpha 1                                     AP00.4
Invoice Approval     Indicates whether the company uses the
                     invoice registration entry option (the
                     assignment of an authority code and a
                     voucher to an invoice). If this field is
                     No, the company must have Yes selected
                     in the Batch Release field. If the
                     company has Yes selected in both the
                     Invoice Approval and Batch Release
                     fields, the company assigns vouchers to
                     invoices but enters and releases
                     invoices in batches. Valid values are:

                     N = No.
                     Y = Yes.

CPY-NUMERIC-VOUCH    Alpha 1                                     AP00.4
Numeric Voucher      Indicates whether voucher values will
Numbers              be numeric. Used only if the company has
                     Yes selected in the Invoice Approval
                     field. Valid values are:

                     Y = Yes.
                     N = No.

CPY-DUP-VOUCHER      Alpha 1                                     AP00.4
Duplicate Voucher    Indicates whether duplicate voucher
Numbers              numbers are allowed within the company.
                     Used only if the company has Yes
                     selected in the Invoice Approval field.
                     Valid values are:

                     Y = Yes.
                     N = No.

CPY-AUTO-VOUCHER     Alpha 1                                     AP00.4
Auto Voucher         Indicates whether the system
Numbering            automatically assigns voucher numbers to
                     invoices during entry. Used only if the
                     company has Yes selected in both the
                     Invoice Approval and the Numeric Voucher
                     Numbering fields. Valid values are:

                     Y = Yes.
                     N = No.

CPY-LAST-VOUCHER     Numeric 10                                  AP00.4  AP520
Last Voucher Number  The last voucher number assigned by the     API1.1  API2.1
                     company. Used only if the company has
                     Yes selected in both the Invoice
                     Approval and Numeric Voucher Numbers
                     fields. The system assigns voucher
                     numbers beginning with the next
                     sequential number. If left blank, the
                     system assigns voucher numbers beginning
                     with 1.

CPY-POST-OPTION      Alpha 1                                     AP00.4
Posting Option       The posting option for the company.
                     Determines the volume of invoice expense
                     distribution information that AP175
                     (Invoice Distribution Closing) transfers
                     to the general ledger. Valid values are:

                     S = Summary.
                     D = Detail.

CPY-INVOICE-AUDIT    Alpha 1                                     AP00.4
Audit Invoice        Indicates whether the system creates
Changes              audit records when released invoices are
                     changed. Valid values are:

                     Y = Yes.
                     N = No.

CPY-ACCR-CODE        Alpha 4                                     AP00.4
Invoice Accrual Code The invoice accrual code assigned to
                     the company. Represents the default
                     general ledger accrual account for the
                     company. A unique entry in this field
                     creates a record in the Invoice Accrual
                     Code file.

CPY-CASH-CODE        Alpha 4                                     AP00.4
Cash Code            The cash code assigned to the company.
                     Represents a bank account. Must be a
                     valid record in the Cash Code file.
                     Valid relationship records must exist
                     between the cash code and both the
                     company and the posting company assigned
                     to the company's pay group in the
                     Company-Cash Code Relationship file. If
                     left blank, the cash code assigned to
                     the company's pay group defaults on
                     invoices entered for the company.

CPY-BASE-CURRENCY    Alpha 5                                     AP00.4
Base Currency        The base currency defined for the
                     company in the Lawson General Ledger
                     system.

CPY-CURR-ND          Numeric 1                                   AP00.4
Currency Number of   The number of decimal positions defined
Decimals             for the company base currency.

CPY-ADV-EXP-OPT      Alpha 1                                     AP00.4
Advance-Expense      Indicates how the Lawson Accounts
Matching             Payable system processes employee
                     advances and expenses entered in the
                     Lawson Employee Advance and Expense
                     system.

                     If the company has the Open option
                     selected, specific matching is not
                     performed. All open items for the
                     employee are considered during
                     reconciliation. If the company has the
                     Matching option selected, each open
                     employee advance is matched to its
                     corresponding open expense. Valid values
                     are:

                     O = Open.
                     M = Matching.

CPY-PURGE-FL         Alpha 1                                     AP00.4
Status               Indicates the status of the company.
                     Used to determine whether the company
                     and associated data can be deleted from
                     the Lawson Accounts Payable system by
                     AP305 (AP Company Purge). Valid values
                     are:

                     A = Active.
                     D = Delete.

CPY-DISCOUNT-CODE    Alpha 10                                    AP00.4
Discount Code        The discount code assigned to the
                     company. Represents a general ledger
                     discount account. A unique entry in this
                     field creates a record in the Discount
                     Code file.

CPY-INC-ACCR-CODE    Alpha 10                                    AP00.4
Income Withholding   The income withholding code assigned to
Code                 the company. Represents the general
                     ledger income withholding account for
                     the  company. Used to track reportable
                     withholding for vendors. A unique entry
                     in this field creates a record in the
                     Income Withholding Code file.

CPY-INC-WH-PCT       Signed 5.3                                  AP00.4
Withholding Rate     The reportable income withholding rate
                     for the company. The system applies this
                     rate to payments for vendors marked for
                     income withholding.

CPY-OUT-BAL-FL       Alpha 1                                     AP00.4
Release Out of       Indicates whether out of balance
Balance              invoices can be released. Valid values
                     are:

                     N = No.
                     Y = Yes.

CPY-APPRVL-EXISTS    Alpha 1                                     AP00.6
Approval Exists      Indicates whether approval criteria is
                     defined for the company. If Yes, an
                     associated record exists for the company
                     in the Invoice Approval file. Valid
                     values are:

                     N = No.
                     Y = Yes.

CPY-DISC-TAX-RCV     Alpha 1                                     AP00.4
Tax Recovery on      If discounts are to be taken for the
Discount             company exclusive of tax, this field
                     indicates whether tax recovery is
                     required when discounts are taken. Valid
                     values are:

                     N = No.
                     Y = Yes.

CPY-WORKFLOW         Alpha 1                                     AP00.4
Workflow             Indicates whether the company uses
                     Workflow. If Yes, invoices that meet or
                     exceed approval criteria defined for the
                     company are routed to a workflow system
                     for approval. Valid values are:

                     N = No.
                     Y = Yes.

CPY-DISC-CALC-DATE   Alpha 1                                     AP00.4
Discount             Indicates which date to use when
Calculation Date     calculating discounts.

                     You can use the invoice date, receipt
                     date, or the date the invoice was
                     received.

                     Valid values are:

                     I = Invoice date
                     R = Receipt date
                     D = Receipt of invoice date

CPY-VOUCHER-REQ      Alpha 1                                     AP00.4
Voucher Required     Indicates if a voucher is required.
                     Valid values are:

                     N = No
                     Y = Yes

CPY-BEST-TERMS       Alpha 1                                     AP00.4
Recalculate Terms    Indicates whether to recalculate the
                     terms during matching.
                     N = No
                     Y = Yes

CPY-LAST-ARCH-DATE   Numeric 8  (yyyymmdd)                       AP198
Last Arch Date

CPY-CREATE-TR-DIST   Alpha 1                                     AP00.4
Create Tr Dist

CPY-DIST-CODE        Alpha 9                                     AP00.4
Distribution Code    A user-defined code used to
                     automatically create expense
                     distributions or expense distribution
                     "shells" for invoices or to split an
                     invoice distribution into multiple
                     distributions.

                         APCOMPANY FILE INDEX

NAME      KEY FIELDS    DESCRIPTION / SUBSET CONDITION           USED IN

CPYSET1   COMPANY       This index is used to verify or access   AC03.4  AC17.4
                        an accounts payable company record.      AC18.3  AC191
                                                                 AC217   AC218
                                                                 AC259   AC42.1
                                                                 AC50.1  AC500
                                                                 AC52.1  AC520
                                                                 AC54.2  AC542
                                                                 AC550   AC551
                                                                 AC59.1  AC92.2
                                                                 AC92.4  AC92.6
                                                                 AM18.1  AP00.4
                                                                 AP00.5  AP00.6
                                                                 AP01.4  AP02.2
                                                                 AP05.2  AP05.3
                                                                 AP05.6  AP06.1
                                                                 ...

CPYSET2   VENDOR-GROUP  This index is used to identify which     AP00.1  AP01.1
          COMPANY       accounts payable companies are assigned  AP10.1  AP10.5
                        to a specific vendor group.              AP10.6  AP10.7
                        KeyChange                                AP102   AP115
                                                                 AP141   AP200
                                                                 AP230   AP250
                                                                 AP300   API3.1
                                                                 API4.1

CPYSET3   PAY-GROUP     This index is used to verify or access   AP141
          COMPANY       company records for a specific pay
                        group.
                        KeyChange

                         APCOMPANY FILE RELATIONS

ONE TO ONE RELATIONS


RELATION       RELATED
 NAME           FILE        INTEGRITY RULES / FIELD MATCH

Apvengroup     APVENGROUP   Required

                            CPY-VENDOR-GROUP     -> VGP-VENDOR-GROUP

Cucodes        CUCODES      Required

                            CPY-BASE-CURRENCY    -> CUC-CURRENCY-CODE

Gladdress      GLADDRESS    Required

                            CPY-COMPANY          -> GAD-COMPANY
                            Spaces               -> GAD-ACCT-UNIT

Glsystem       GLSYSTEM     Required

                            CPY-COMPANY          -> GLS-COMPANY

Macompany      MACOMPANY    Not Required

                            CPY-COMPANY          -> MAY-COMPANY

                         APCOMPANY FILE RELATIONS

ONE TO MANY RELATIONS


RELATION       RELATED
 NAME           FILE        INTEGRITY RULES / FIELD MATCH

Apaudit        APAUDIT

                            CPY-VENDOR-GROUP     -> APA-VENDOR-GROUP
                            CPY-COMPANY          -> APA-COMPANY
                                                    APA-PROC-LEVEL
                                                    APA-VENDOR
                                                    APA-INVOICE
                                                    APA-SUFFIX
                                                    APA-CANCEL-SEQ
                                                    APA-SEQ-NBR
                                                    APA-TRANS-DATE
                                                    APA-TRANS-TIME

Apauthor       APAUTHOR

                            CPY-COMPANY          -> ATR-COMPANY
                                                    ATR-AUTH-CODE

Apbatch        APBATCH

                            CPY-COMPANY          -> APB-COMPANY
                                                    APB-BATCH-NUM

Apcinvoice     APCINVOICE

                            CPY-COMPANY          -> CVI-COMPANY
                                                    CVI-VENDOR
                                                    CVI-EDI-NBR
                                                    CVI-INVOICE
                                                    CVI-SUFFIX

Apdistcode     APDISTCODE

                            CPY-COMPANY          -> DTC-COMPANY
                                                    DTC-DIST-CODE
                                                    DTC-SEQ-NBR

Apinvoice      APINVOICE

                            CPY-COMPANY          -> API-COMPANY
                                                    API-VENDOR
                                                    API-INVOICE
                                                    API-SUFFIX
                                                    API-CANCEL-SEQ

Apmonitor      APMONITOR

                            CPY-COMPANY          -> MON-COMPANY
                                                    MON-BATCH-NUM
                                                    MON-AUTH-CODE
                                                    MON-RUN-PROG
                                                    MON-PROC-LEVEL
                                                    MON-PAY-GROUP
                                                    MON-PROC-GRP

Appayment      APPAYMENT

                            CPY-COMPANY          -> APP-COMPANY
                                                    APP-VENDOR
                                                    APP-INVOICE
                                                    APP-SUFFIX
                                                    APP-CANCEL-SEQ
                                                    APP-SEQ-NBR
                                                    APP-VOID-SEQ

Approclev      APPROCLEV    Required

                            CPY-COMPANY          -> APR-COMPANY
                                                    APR-PROC-LEVEL

Apvcomments    APCOMMENTS   Delete Cascades

                            "V"                  -> APC-REC-TYPE
                            CPY-COMPANY          -> APC-COMPANY
                                                    APC-VENDOR
                                                    APC-LOCATION-CODE
                                                    APC-SEQ-NBR

Apvenmast      APVENMAST    Required

                            CPY-VENDOR-GROUP     -> VEN-VENDOR-GROUP
                                                    VEN-VENDOR

Cbcheck        CBCHECK

                            CPY-PAY-GROUP        -> CHK-PAY-GROUP
                                                    CHK-REC-STATUS
                                                    CHK-CASH-CODE
                                                    CHK-BANK-INST-CODE
                                                    CHK-TRANS-NBR
                                                    CHK-TRANS-IDENT

Cbcpycash      CBCPYCASH

                            CPY-COMPANY          -> CBY-COMPANY
                                                    CBY-CASH-CODE

Draft Accepted APDRAFTS

                            CPY-PAY-GROUP        -> APT-PAY-GROUP
                            2                    -> APT-REC-STATUS
                                                    APT-DRAFT-DATE
                                                    APT-BANK-INST-CODE
                                                    APT-DRAFT-NBR
                                                    APT-SUFFIX
                                                    APT-TRANS-IDENT

Draft Unaccept APDRAFTS

                            CPY-PAY-GROUP        -> APT-PAY-GROUP
                            1                    -> APT-REC-STATUS
                                                    APT-DRAFT-DATE
                                                    APT-BANK-INST-CODE
                                                    APT-DRAFT-NBR
                                                    APT-SUFFIX
                                                    APT-TRANS-IDENT

Draft Unrel    APDRAFTS

                            CPY-PAY-GROUP        -> APT-PAY-GROUP
                            Zeroes               -> APT-REC-STATUS
                                                    APT-DRAFT-DATE
                                                    APT-BANK-INST-CODE
                                                    APT-DRAFT-NBR
                                                    APT-SUFFIX
                                                    APT-TRANS-IDENT

Open Payments  APPAYMENT

                            CPY-COMPANY          -> APP-COMPANY
                                                    APP-VENDOR
                                                    APP-INVOICE
                                                    APP-SUFFIX
                                                    APP-CANCEL-SEQ
                                                    APP-SEQ-NBR
                                                    APP-VOID-SEQ