APAPPHIST – AP Payment History
- System
- Accounts Payable (AP)
- Prefix
AH3- Primary key
COMPANY,VENDOR,INVOICE,SUFFIX,CANCEL-SEQ,SEQ-NBR,VOID-SEQ- Fields
- 89
- Updated by
- 12 programs
- Referenced by
- 13 programs
APAPPHIST is the AP Payment History table in Lawson Accounts Payable (prefix AH3). It is indexed by COMPANY, VENDOR, INVOICE, SUFFIX, CANCEL-SEQ, SEQ-NBR, VOID-SEQ (AH3SET1); alternate indexes: AH3SET10, AH3SET2, AH3SET6 and AH3SET8. It is related 1:1 to APAPIHIST, APCOMPANY, APDRAFTS, APVENMAST, CBBANKINST, CBCASHCODE, CBCASHFORM, CBCHECK and 1 more and 1:M to APAPPHIST, APDISTPAY, APDSKHIST and APHLDINV. It is updated by AP115, AP180, AP181, AP190, AP198, AP265, AP270, AP28.1 and 4 more and referenced by AP00.5, AP136, AP145, AP146, AP197, AP232, AP245, AP246 and 5 more. The table has 89 fields, 5 indexes and 14 documented relations.
About APAPPHIST
No description in the Lawson data dictionary.
Fields (89)
Column = COBOL field name without the AH3- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored. PK = primary key (present in every index); SETn = leading/alternate key of that index.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
#AH3-COMPANY PKCOMPANY | Numeric 4 | Identifies the AP company if the resource type = V. Identifies the HR company if the resource type = E. It is blank for type A, P or Q resources. | AP198 |
#AH3-VENDOR PKVENDOR | Alpha 9 (Right Justified) | The vendor's identification code. | AP115, AP198 |
#AH3-INVOICE PKINVOICE | Alpha 22 | Used to identify the invoice. | AP115, AP198 |
#AH3-SUFFIX PKSUFFIX | Numeric 3 | This is the suffix for the invoice. | AP198 |
#AH3-CANCEL-SEQ PKCANCEL_SEQ | Numeric 4 | An automatically assigned sequence number. | AP198 |
#AH3-SEQ-NBR PKSEQ_NBR | Numeric 4 | An automatically assigned sequence number. | AP198 |
#AH3-VOID-SEQ PKVOID_SEQ | Numeric 4 | An automatically assigned sequence number. | AP198 |
#AH3-VOID-DATEVOID_DATE | Numeric 8 (yyyymmdd) | This field displays the system date when this was created. | AP198 |
#AH3-INV-CURRENCYINV_CURRENCY | Alpha 5 | — | AP198 |
#AH3-PAY-VENDORPAY_VENDOR | Alpha 9 (Right Justified) | The vendor's identification code. | AP115, AP198 |
#AH3-REMIT-TO-CODEREMIT_TO_CODE | Alpha 4 | A user-defined code that represents a vendor's remittance address. | AP115, AP198 |
#AH3-PAY-COMPANYPAY_COMPANY | Numeric 4 | Identifies the AP company if the resource type = V. Identifies the HR company if the resource type = E. It is blank for type A, P or Q resources. | AP198 |
#AH3-CASH-CODE SET8CASH_CODE | Alpha 4 | A cash code represents a bank account. More than one company can use the same cash code. The cash code must be linked to a bank in the Lawson Cash Ledger system. | AP115, AP198 |
#AH3-DUE-DATEDUE_DATE | Numeric 8 (yyyymmdd) | The transaction due date. | AP198 |
#AH3-ENCLOSUREENCLOSURE | Alpha 1 | — | AP198 |
#AH3-HOLD-FLAGHOLD_FLAG | Alpha 1 | This field enables this entire lot to be put on hold, not allowing any issues or transfers to be made for this lot. | AP198 |
#AH3-VEN-CLASSVEN_CLASS | Alpha 3 | A user-defined code representing a subset of vendors within a vendor group. | AP115, AP198 |
#AH3-VEN-PRIORITYVEN_PRIORITY | Numeric 2 | The payment priority of a vendor, where lowest.
| AP115, AP198 |
#AH3-PROC-GRPPROC_GRP | Alpha 4 (Lower Case) | A process group is an identifier used for separating vendors into different groups to enable concurrent processing within the cash payment cycle. | AP115, AP198 |
#AH3-BASE-PMT-AMTBASE_PMT_AMT | Signed 18.2 | — | AP198 |
#AH3-BASE-ACT-AMTBASE_ACT_AMT | Signed 18.2 | — | AP198 |
#AH3-BASE-NDBASE_ND | Numeric 1 | The number of decimal positions defined for the company base currency. | AP198 |
#AH3-TRAN-PMT-AMTTRAN_PMT_AMT | Signed 18.2 | — | AP198 |
#AH3-TRAN-NDTRAN_ND | Numeric 1 | The number of decimals assigned to a particular account as determined by the account currency. | AP198 |
#AH3-BANK-CHK-AMTBANK_CHK_AMT | Signed 18.2 | — | AP198 |
#AH3-BANK-NDBANK_ND | Numeric 1 | The number of decimals assigned to a particular account as determined by the account currency. | AP198 |
#AH3-BASE-DISC-AMTBASE_DISC_AMT | Signed 18.2 | — | AP198 |
#AH3-TRAN-DISC-AMTTRAN_DISC_AMT | Signed 18.2 | — | AP198 |
#AH3-BASE-CHK-AMTBASE_CHK_AMT | Signed 18.2 | — | AP198 |
#AH3-TRAN-CHK-AMTTRAN_CHK_AMT | Signed 18.2 | — | AP198 |
#AH3-BASE-INC-WHBASE_INC_WH | Signed 18.2 | — | AP198 |
#AH3-TRAN-INC-WHTRAN_INC_WH | Signed 18.2 | — | AP198 |
#AH3-TRAN-INC-AMTTRAN_INC_AMT | Signed 18.2 | — | AP198 |
#AH3-GAINLOS-AMTGAINLOS_AMT | Signed 18.2 | — | AP198 |
#AH3-UNRL-REV-DATEUNRL_REV_DATE | Numeric 8 (yyyymmdd) | This field displays the system date when this was created. | AP198 |
#AH3-ACT-CNV-RATEACT_CNV_RATE | Signed 14.7 | — | AP198 |
#AH3-DSC-ACCT-UNITDSC_ACCT_UNIT | Alpha 15 | The accounting unit is a shorthand notation representing the variable level number. When used in the General Ledger Account Master file, the accounting unit must be defined in the General Ledger Names file as a posting accounting unit. | AP198 |
#AH3-DSC-ACCOUNTDSC_ACCOUNT | Numeric 6 | This field along with the accounting unit and subaccount make up the location (account) where amounts and other account information is stored. | AP198 |
#AH3-DSC-SUB-ACCTDSC_SUB_ACCT | Numeric 4 | This field contains the subaccount from your general ledger chart of accounts that was charged with the amount carried on this record. | AP198 |
#AH3-DISCOUNT-RTDISCOUNT_RT | Percent 5.3 (Percent) | — | AP198 |
#AH3-DISC-DATEDISC_DATE | Numeric 8 (yyyymmdd) | This field displays the system date when this was created. | AP198 |
#AH3-TRANS-IDENT SET6TRANS_IDENT | Numeric 10 | A unique system-generated identification value assigned to the transaction to make this record unique. | AP198 |
#AH3-ACCR-CODEACCR_CODE | Alpha 4 | A user-defined code representing a general ledger accrual account. | AP198 |
#AH3-PROC-LEVEL SET10PROC_LEVEL | Alpha 5 | This field contains the process level, which is the reporting hierarchy below company. | AP198 |
#AH3-REC-STATUS SET10 SET2REC_STATUS | Numeric 1 | The record status. | AP198 |
#AH3-TRANS-NBR SET8TRANS_NBR | Alpha 10 (Right Justified) | A unique, user-defined value used to identify the transaction. | AP198 |
#AH3-CHK-SUFFIXCHK_SUFFIX | Numeric 3 | — | AP198 |
#AH3-BANK-INST-CODE SET6 SET8BANK_INST_CODE | Alpha 3 | A transaction code represents a type of cash payment, bill of exchange payment, or bank service transaction. | AP115, AP198 |
#AH3-CHECK-DATECHECK_DATE | Numeric 8 (yyyymmdd) | The payment date. | AP198 |
#AH3-INCOME-CODEINCOME_CODE | Alpha 4 | A user-defined code that represents a type of income withholding. Used to track reportable income for reporting or withholding. | AP198 |
#AH3-SEP-CHK-FLAGSEP_CHK_FLAG | Alpha 1 | — | AP198 |
#AH3-PAY-IMM-FLAGPAY_IMM_FLAG | Alpha 1 | — | AP198 |
#AH3-DISC-LOST-FLGDISC_LOST_FLG | Alpha 1 | — | AP198 |
#AH3-ANTICIPATIONANTICIPATION | Alpha 1 | The anticipation flag. | AP198 |
#AH3-INVOICE-GROUPINVOICE_GROUP | Alpha 4 | A user-defined character expression. An invoice group can be assigned to one more invoices. AP150 (Cash Requirements) has an option to select all invoices assigned the same invoice group. | AP115, AP198 |
#AH3-VENDOR-GROUPVENDOR_GROUP | Alpha 4 | A vendor group represents a group of vendors that can be shared by one or more companies. | AP198 |
#AH3-PAY-GROUP SET10 SET2 SET6 SET8PAY_GROUP | Alpha 4 | 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. | AP198 |
#AH3-DISCOUNT-CODEDISCOUNT_CODE | Alpha 10 | A user-defined code that represents a general ledger discount account. | AP198 |
#AH3-INC-ACCR-CODEINC_ACCR_CODE | Alpha 10 | A user-defined code representing a general ledger income withholding accrual account. | AP198 |
#AH3-RECON-STMT-NBRRECON_STMT_NBR | Numeric 12 | The bank-assigned reconciliation statement number. Used only for cash codes that require reconciliation statements. | AP198 |
#AH3-MATCH-DISC-TAKMATCH_DISC_TAK | Alpha 1 | — | AP198 |
#AH3-OPEN-BASE-PMTOPEN_BASE_PMT | Derived | — | — |
#AH3-OPEN-TRAN-PMTOPEN_TRAN_PMT | Derived | — | — |
#AH3-BASE-NET-PMTBASE_NET_PMT | Derived | — | — |
#AH3-TRAN-NET-PMTTRAN_NET_PMT | Derived | — | — |
#AH3-PMT-STATUSPMT_STATUS | Derived | — | — |
#AH3-BANK-STATUSBANK_STATUS | Derived | — | — |
#AH3-NO-REINSTATENO_REINSTATE | Derived | — | — |
#AH3-PAID-DOC-DATEPAID_DOC_DATE | Derived | — | — |
#AH3-DRAFT-ACCRUEDDRAFT_ACCRUED | Derived | — | — |
#AH3-AP-INV-DATEAP_INV_DATE | Derived | — | — |
#AH3-AP-PO-NBRAP_PO_NBR | Derived | — | — |
#AH3-AP-INV-TYPEAP_INV_TYPE | Derived | — | — |
#AH3-AP-BASE-INVAP_BASE_INV | Derived | — | — |
#AH3-AP-FORMAT-NBRAP_FORMAT_NBR | Derived | — | — |
#AH3-STATEMENTSTATEMENT | Alpha 22 | Used to identify the invoice. | — |
#AH3-RETAINAGE-PMTRETAINAGE_PMT | Numeric 1 | —
| AP198 |
#AH3-SEC-WTH-CODE1SEC_WTH_CODE1 | Alpha 10 | — | AP198 |
#AH3-SEC-WTH-PCT1SEC_WTH_PCT1 | Percent 5.3 (Percent) | — | AP198 |
#AH3-BASE-SEC-WTH1BASE_SEC_WTH1 | Signed 18.2 | — | AP198 |
#AH3-TRAN-SEC-WTH1TRAN_SEC_WTH1 | Signed 18.2 | — | AP198 |
#AH3-SEC-WTH-CODE2SEC_WTH_CODE2 | Alpha 10 | — | AP198 |
#AH3-SEC-WTH-PCT2SEC_WTH_PCT2 | Percent 5.3 (Percent) | — | AP198 |
#AH3-BASE-SEC-WTH2BASE_SEC_WTH2 | Signed 18.2 | — | AP198 |
#AH3-TRAN-SEC-WTH2TRAN_SEC_WTH2 | Signed 18.2 | — | AP198 |
#AH3-SEC-WTH-CODE3SEC_WTH_CODE3 | Alpha 10 | — | AP198 |
#AH3-SEC-WTH-PCT3SEC_WTH_PCT3 | Percent 5.3 (Percent) | — | AP198 |
#AH3-BASE-SEC-WTH3BASE_SEC_WTH3 | Signed 18.2 | — | AP198 |
#AH3-TRAN-SEC-WTH3TRAN_SEC_WTH3 | Signed 18.2 | — | AP198 |
Indexes (5)
Keys are listed in index order; ↓ marks a descending key. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.
| Index | Keys | Flags | Condition | Used in |
|---|---|---|---|---|
AH3SET1 |
| Primary | AP115, AP136, AP180, AP181, AP190, AP197, AP232, AP271 +5 more | |
AH3SET10 |
| KeyChange | AP00.5, AP145, AP146, AP245, AP246, AP270 | |
AH3SET2 |
| KeyChange | AP93.2 | |
AH3SET6 |
| KeyChange, Subset | Where TRANS-IDENT != Zeroes | AP180, AP181, AP190, AP265, AP28.1, AP28.2, CB186, CB286 |
AH3SET8 |
| KeyChange | AP255 |
Relations
One to one (10) — lookups and parents
| Relation | Table | Rules | Condition | Field map | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Apapihist | APAPIHIST | Required |
| ||||||||||||||||
| Apcompany | APCOMPANY | Required |
| ||||||||||||||||
| Apdrafts | APDRAFTS | Not Required |
| ||||||||||||||||
| Appayvendor | APVENMAST | Required |
| ||||||||||||||||
| Apvenmast | APVENMAST | Required |
| ||||||||||||||||
| Cbbankinst | CBBANKINST | Required |
| ||||||||||||||||
| Cbcashcode | CBCASHCODE | Required |
| ||||||||||||||||
| Cbcashform | CBCASHFORM | Not Required |
| ||||||||||||||||
| Cbcheck | CBCHECK | Required |
| ||||||||||||||||
| Cbtrans | CBTRANS | Not Required | Valid When CHK-SERIAL-NUM = Zeroes |
|
One to many (4) — child tables
| Relation | Table | Rules | Condition | Field map | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Ah3set6 | APAPPHIST |
| ||||||||||||||||||||||||||||||||
| Apdistpay | APDISTPAY |
| ||||||||||||||||||||||||||||||||
| Apdskhist | APDSKHIST |
| ||||||||||||||||||||||||||||||||
| Aphldinv | APHLDINV | Delete Cascades | Valid When AH3-HOLD-FLAG = "Y" |
|
Programs
Updated by (12)
- AP115 Vendor Merge
- AP180 Bill of Exchange Cashing Update
- AP181 Bill of Exchange Statement Update
- AP190 Invoice Reinstatement
- AP198 Invoice Data Archival
- AP265 Cash Payment Register
- AP270 Vendor Payment History
- AP28.1 Bill of Exchange Acceptance by Vendor
- AP28.2 Bill of Exchange Acceptance by Date
- AP300 Invoice and Vendor History Purge
- AP305 Accounts Payable Company Purge
- AP45.1 Reportable Income Adjustment
Referenced by (13)
- AP00.5 Process Level
- AP136 Invoice Accrual Reconciliation
- AP145 1099 Forms Creation
- AP146 1099 Tape Creation
- AP197 Vendor Balance Rebuild
- AP232 Invoice Accrual Reconciliation Report
- AP245 Reportable Income Report
- AP246 Secondary Withholding Report
- AP255 Bank Account Payment History
- AP271 Vendor Spend Report
- AP93.2 Archived Pay Group Invoices
- CB186 Stale Dating Processing
- CB286 Stale Dating and Escheatment Report