APCPAYMENT – Invoice Payment Interface
- System
- Accounts Payable (AP)
- Prefix
CVP- Primary key
COMPANY,VENDOR,EDI-NBR,INVOICE,SUFFIX,SEQ-NBR- Fields
- 29
- Updated by
- 4 programs
- Referenced by
- 0 programs
APCPAYMENT is the Invoice Payment Interface table in Lawson Accounts Payable (prefix CVP). It is indexed by COMPANY, VENDOR, EDI-NBR, INVOICE, SUFFIX, SEQ-NBR (CVPSET1). It is updated by AP305, AP52.1, AP52.2 and AP520. The table has 29 fields, 1 index and 0 documented relations.
About APCPAYMENT
No description in the Lawson data dictionary.
Fields (29)
Column = COBOL field name without the CVP- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
CVP-COMPANY PKCOMPANY | Numeric 4 | Required. The company number. Must be a valid record in the Accounts Payable Company file. | AP52.2 |
CVP-VENDOR PKVENDOR | Alpha 9 (Right Justified) | The vendor number. Must be a valid record in the Vendor file. This field is required unless a value is present in the EDI Number field. | AP52.2 |
CVP-EDI-NBR PKEDI_NBR | Alpha 15 | The vendor's electronic data interchange (EDI) number. | AP52.2 |
CVP-INVOICE PKINVOICE | Alpha 22 | Required. A unique invoice number for the vendor. | AP52.2 |
CVP-SUFFIX PKSUFFIX | Numeric 3 | The occurrence value of the invoice. | AP52.2 |
CVP-SEQ-NBR PKSEQ_NBR | Numeric 4 | A unique sequence number for this payment record. Valid values are 1 through 9999. If left blank, the system numbers each split invoice payment record beginning with 1. | AP52.2 |
CVP-DUE-DATEDUE_DATE | Numeric 8 (yyyymmdd) | Required. The due date of the invoice payment record. Used to schedule the invoice payment record for payment. | AP52.2 |
CVP-TRAN-PMT-AMTTRAN_PMT_AMT | Signed 18.2 | Required. The split invoice payment amount in the currency of the invoice. | AP52.2 |
CVP-TRAN-DISC-AMTTRAN_DISC_AMT | Signed 18.2 | The discount amount of the invoice payment record in the currency of the invoice. | AP52.2 |
CVP-TRAN-INC-WHTRAN_INC_WH | Signed 18.2 | The amount of the invoice withheld. | AP52.2 |
CVP-TRAN-INC-AMTTRAN_INC_AMT | Signed 18.2 | The reportable income amount for the invoice payment record. If left blank and an Income Code is assigned to the invoice, the reportable income amount is the Invoice Amount less the discount taken. | AP52.2 |
CVP-DISCOUNT-RTDISCOUNT_RT | Percent 5.3 (Percent) | The rate used to calculate the discount amount of the invoice payment. Required if Discount Date is present. | AP52.2 |
CVP-DISC-DATEDISC_DATE | Numeric 8 (yyyymmdd) | The last date the discount can be taken. Required if Discount Rate is present. | AP52.2 |
CVP-REC-STATUSREC_STATUS | Numeric 1 | The payment record status. Valid values are: payment is not available for payment. payment is available for payment. is paid and closed.
| AP52.2 |
CVP-TRANS-NBRTRANS_NBR | Alpha 10 (Right Justified) | The payment number used to pay the split invoice payment. Required only for historical status split invoice payment records. If entered, the Payment Code assigned to the split invoice payment must be a valid cash payment type transaction code record in the Bank Transaction Code file. Note: If you are converting a historical status split invoice payment and want to link associated payment (check) records to the invoice, you must run CB500 (Bank Transaction Interface) to convert payment records before you convert associated invoices. | AP52.2 |
CVP-BANK-INST-CODEBANK_INST_CODE | Alpha 3 | The bank transaction code associated with the invoice payment record. Represents a type of cash or bill of exchange payment. Required for historical status invoice payment records. If left blank for an unreleased or released (open) status invoice payment record, the payment code assigned to the invoice conversion record, vendor, vendor class, or pay group defaults. Must be a valid cash payment or bill of exchange payment type bank transaction code record in the Bank Transaction Code file. | AP52.2, AP520 |
CVP-CHECK-DATECHECK_DATE | Numeric 8 (yyyymmdd) | The payment date. Valid only for historical status invoice payment records. | AP52.2 |
CVP-DISC-LOST-FLGDISC_LOST_FLG | Alpha 1 | Indicates whether the available discount for the split invoice payment was lost. Valid only for historical status invoice payment records. Valid values are: discount was taken. lost.
| AP52.2 |
CVP-CASH-CODECASH_CODE | Alpha 4 | The cash code assigned to the split invoice payment. Represents a bank account. Must be a valid record in the Cash Code file. If left blank, the cash code assigned to the remit-to location, vendor, vendor class, process level, company, or pay group defaults. | AP52.2 |
CVP-SEP-CHK-FLAGSEP_CHK_FLAG | Alpha 1 | Indicates whether the split invoice payment requires a separate payment form. If left blank, the separate payment option defined for the vendor defaults. Valid values are:
| AP52.2 |
CVP-PAY-IMM-FLAGPAY_IMM_FLAG | Alpha 1 | Indicates whether the split invoice payment will be selected for immediate payment regardless of the due date. Valid values are:
| AP52.2 |
CVP-INVOICE-GROUPINVOICE_GROUP | Alpha 4 | The invoice group assigned to the invoice. An invoice group is a user-defined character expression that can be assigned to one more invoices. Cash Requirements (AP150) has an option to select all invoices assigned the same invoice group. If blank, the invoice group defaults from the vendor, if assigned. | AP52.2 |
CVP-ENCLOSUREENCLOSURE | Alpha 1 | Indicates whether the split invoice payment requires an enclosure with its payment. If you select Yes, you have the option to group payments that require enclosures when you run AP150 (Cash Requirements). Valid values are:
| AP52.2 |
CVP-INCOME-CODEINCOME_CODE | Alpha 4 | The income code assigned to the split invoice payment. Represents a type of reportable income. Must be valid record in the Income Code file. If left blank, the income code assigned to the vendor or vendor class, if assigned, defaults. | AP52.2 |
CVP-BANK-CHK-AMTBANK_CHK_AMT | Signed 18.2 | The amount of the payment in the currency of the cash code (bank account). Used for historical status payment records only. | — |
CVP-BANK-NDBANK_ND | Numeric 1 | The number of decimal positions defined for the bank account currency assigned to the cash code. Used for historical status payments only. | — |
CVP-BNK-CNV-RATEBNK_CNV_RATE | Signed 14.7 | The exchange rate used to convert the payment amount from the invoice currency to the bank account currency. Used for historical status payments only. | — |
CVP-INC-ACCR-CODEINC_ACCR_CODE | Alpha 10 | A user-defined code representing a general ledger income withholding accrual account. | — |
CVP-RECORD-ERRORRECORD_ERROR | Alpha 1 | Indicates if an error was found during conversion and if the error has been corrected. Valid values are:
| — |
Indexes (1)
Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.
| Index | Keys | Flags | Condition | Used in |
|---|---|---|---|---|
CVPSET1 | COMPANY, VENDOR, EDI-NBR, INVOICE, SUFFIX, SEQ-NBR | Primary | AP305, AP52.1, AP52.2, AP520 |