PRCHECK – Employee Payment

System
Payroll (PR)
Prefix
PCH
Primary key
BNK-ACCT-NBR, PRINT-TYPE, CHECK-NBR, CHECK-ID
Fields
24
Updated by
24 programs
Referenced by
49 programs

PRCHECK is the Employee Payment table in Lawson Payroll (prefix PCH). It is indexed by BNK-ACCT-NBR, PRINT-TYPE, CHECK-NBR, CHECK-ID (PCHSET1); alternate indexes: PCHSET10, PCHSET11, PCHSET2, PCHSET3, PCHSET4, PCHSET5, PCHSET6, PCHSET7 and 2 more. It is related 1:1 to BANKACCT, PRSYSTEM, EMPLOYEE, PAYMASTR, PR1099RHST, PRPENHIST and PRPENPAY and 1:M to PRAUDIT, PRPENFSRC and PRTIME. It is updated by BN66.1, PR140, PR155, PR160, PR165, PR180, PR189, PR195 and 16 more and referenced by BN150, EXI2.1, EXI4.1, HR00.1, HR01.1, HR170, HR70.1, LP130 and 41 more. The table has 24 fields, 11 indexes and 10 documented relations.

About PRCHECK

This file contains pay receipts, void payments, system payments, and manual payments and adjustments for a bank account. PR160 (Payment Print) is the primary program that updates this file. It creates a pay receipt or system payment for every Employee Payment Master file record created in PR140 (Earnings and Deductions Calculation). PR160 (Payment Print) also uses this file to determine if a consecutive range of payments is available for the payment run. PR81.1 (Manual Payment Reservation) reserves payment numbers for manual payments and voids. PR80.1 (Manual Payment) changes a reserved payment into a system payment and links it to the manual payment (Employee Payments Master file record). The system does not use void payments. When the system creates prenotifications for an ACH account, this file requires a record to accommodate recreating a tape that includes prenotifications.

Fields (24)

Column = COBOL field name without the PCH- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.

Field / columnTypeDescription & valuesUpdated by
PCH-BNK-ACCT-NBR PK
BNK_ACCT_NBR
Alpha 17Contains the bank account from the bank code on which the payment is drawn. This field along with the payment ID serves as the link to the Employee Payments Master file record.PR160, PR180, PR560, PR81.1, PR85.1
PCH-PRINT-TYPE PK
PRINT_TYPE
Alpha 1Contains the value that identifies the kind of record in the file. All physical payment records, Manual or System, have a print type of C (Check). All ACH receipt records have a print type of R (Pay Receipt). All other records, D (Deposit), I (Interest), W (Withdrawal) or J (Adjustment) have a print type of O (Other). PR160 (Payment Print) uses this field to determine the availability of a consecutive range of payment and receipt numbers for printing.
  • C Check
  • O Other
  • R Pay Receipt
BN66.1, PR140, PR160, PR180, PR189, PR195, PR560, PR80.1 +6 more
PCH-CHECK-NBR PK
CHECK_NBR
Numeric 8Contains the number that prints on the payment. For system payments, the number is determined by the beginning payment number entered in PR160 (Payment Print). Manual payments use payment numbers reserved in PR81.1 (Manual Payment Reservation).PR142, PR160, PR180, PR560, PR81.1, PR85.1, PR86.1
PCH-CHECK-ID PK
CHECK_ID
Numeric 12When a payment is created, the payment identification number from the Check ID field in the Employee Payments Master file is moved to this field to serve as a link to the Employee Payment file record.PR160, PR180, PR560, PR80.1, PR80.4, PR81.1, PR85.1, PR86.1
PCH-CHECK-TYPE
CHECK_TYPE
Alpha 1Contains the payment type.
  • A ACH Receipt
  • D Deposit
  • I Interest
  • J Adjustment
  • M Manual Payment
  • P Partial ACH
  • S System Payment
  • W Withdrawal
  • H Manual Direct Deposit
BN66.1, PR140, PR142, PR160, PR180, PR189, PR195, PR560 +7 more
PCH-COMPANY
COMPANY
Numeric 4PR160, PR180, PR560, PR80.1, PR80.4, PR81.1
PCH-EMPLOYEE
EMPLOYEE
Numeric 9Contains the employee number. A unique employee number is assigned to each person employed, and is used to correlate all information related to that person.BN66.1, PR140, PR160, PR189, PR195, PR560, PR80.1, PR80.4 +2 more
PCH-CHECK-DATE
CHECK_DATE
Numeric 8 (yyyymmdd)Contains the date of the payment, with one exception. For payments with status 7 (Void Reversal), it contains the void date of the payment being reversed.BN66.1, PR140, PR155, PR160, PR170, PR180, PR189, PR195 +8 more
PCH-STATUS
STATUS
Numeric 1Contains the payment status. There are several status flows for records in this file: Payment Type M (Manual Payment) records have Status 9 (Reserved Manual) when you reserve the payment number in PR81.1 (Manual Payment Reservation). The status changes to 1 (Created) when you create the payment via PR80.1 (Manual Payment), and to 2 (Open) when you run PR199 (Payroll Close). Payment Types A (ACH Receipt) and S (System Payment) receive status 1 (Created) when you run PR160 (Payment Print). The status changes to 2 (Open) when you run PR199. When payment record types, M (Manual Payment), A (ACH Receipt), or S (System Payment) are reconciled via PR85.1 (Bank Account Reconciliation) or PR165 (Bank Reconciliation Tape Processing), the status changes to 3 (Reconciled). When any payment record is voided after you run PR199 (Payroll Close), the status changes to 3 (Reconciled) and a reversal record with status 7 (Void Reversal) is created. When any payment record is re-opened using PR85.1, the status is changed back to 2 (Open). When any payment record is voided prior to closing via PR160 (Payment Print), PR140 (Earnings and Deductions Calculation), PR36.1 (Time Record Entry), or PR45.1 (Error Processing), the status changes to 5 (Temporary Void). When you run PR199, all status 5 records change to 4 (Void). Alignment payments or payments voided using PR81.1 are created with status 5 (Temporary Void). When you run PR199, the status changes to 4 (Void). PR140 changes the payment status for payments in error, to 5 (Temporary Void) when you run PR140 for errors only. All non-payment records, types J (Adjustment), W (Withdrawal), D (Deposit), or I (Interest), are created with status 3 (Reconciled). Type P (Prenotification) records are created with status 8 (Prenotification).
  • 1 Created
  • 2 Open
  • 3 Reconciled
  • 4 Void
  • 5 Temporary Void
  • 7 Void Reversal
  • 8 Prenotification
  • 9 Reserved Manual
BN66.1, PR140, PR155, PR160, PR162, PR165, PR170, PR180 +12 more
PCH-CHECK-AMOUNT
CHECK_AMOUNT
Signed 13.2Contains the actual amount for which a payment is created. This amount comes from the Check Net field of the Employee Payments Master file. ACH amounts are not included.BN66.1, PR140, PR160, PR162, PR189, PR195, PR560, PR80.1 +5 more
PCH-RECON-PRT-ST
RECON_PRT_ST
Numeric 1Contains the value that indicates whether or not the payment printed when you ran PR155 (Bank Reconciliation) with Update option.
  • Not printed 0
  • Printed 1
BN66.1, PR140, PR155, PR189, PR195, PR80.1, PR80.4, PR85.1 +3 more
PCH-CHECK-SUF
CHECK_SUF
Numeric 2Contains the payment suffix, defined in PR85.1 (Bank Account Reconciliation). The payment suffix further identifies types J (Adjustment), W (Withdrawal), I (Interest), and D (Deposit) bank account transactions that occur outside the payroll system.BN66.1, PR140, PR189, PR195, PR80.1, PR80.4, PR85.1, PR89.1 +1 more
PCH-RECON-DATE
RECON_DATE
Numeric 8 (yyyymmdd)Contains the void or reconciliation date for any payment records that have been voided or reconciled. For status 7 (Void Reversal) records this is the payment date of the payment being reversed.BN66.1, PR140, PR155, PR160, PR162, PR165, PR170, PR180 +11 more
PCH-RECON-AMOUNT
RECON_AMOUNT
Signed 13.2Contains the reconciled amount.BN66.1, PR140, PR155, PR160, PR162, PR165, PR170, PR180 +10 more
PCH-SERIAL-NBR
SERIAL_NBR
Numeric 6Contains the automatically sequenced serial number that identifies records created in the same run of PR160 (Payment Print).BN66.1, PR140, PR160, PR180, PR189, PR195, PR80.1, PR80.2 +4 more
PCH-PROCESS-LEVEL
PROCESS_LEVEL
Alpha 5When you create a payment, the process level from the Process Level field in the Employee Payments Master file is moved to this field. This field is then used to determine if a payment is printed when you run PR162 (Payment Register) by process level.BN66.1, PR140, PR160, PR189, PR195, PR560, PR80.1, PR80.4 +2 more
PCH-REVERSAL-ID
REVERSAL_ID
Numeric 12Contains the payment identification number of a status 7 (Void Reversal) payment record that was created to reflect the reversing payroll information of a payment voided in PR85.1 (Bank Account Reconciliation). If this is the status 7 (Void Reversal) record itself, this field contains the payment identification number of the actual payment record being reversed.BN66.1, PR140, PR155, PR162, PR170, PR189, PR195, PR80.1 +4 more
PCH-CURRENT-FLAG
CURRENT_FLAG
Alpha 1Contains the value that identifies current cycle payments. When a payment record is created via PR80.1 (Manual Payment) and PR160 (Payment Print), or when a payment is voided using PR85.1 (Bank Account Reconciliation), this flag is set to Y (Yes) to identify them as current cycle payments. PR162 (Payment Register) uses this flag when printing current payments only. When you run PR199, the Y (Yes) is changed to spaces.
  • Y Yes
  • N No
BN66.1, PR140, PR160, PR180, PR189, PR195, PR197, PR80.1 +5 more
PCH-VOID-IND
VOID_IND
Alpha 1Contains the value that identifies the payment as an alignment or void payment. All other records have blanks in this field.
  • A Alignment Check
  • V PR81 Void
BN66.1, PR140, PR160, PR180, PR189, PR195, PR80.1, PR80.4 +3 more
PCH-TYPE-1
TYPE_1
Derived
PCH-CURRENCY-CODE
CURRENCY_CODE
Alpha 5This field contains the company base currency code established in Company (GL10.1 ).BN66.1, PR140, PR160, PR189, PR195, PR560, PR80.1, PR80.4 +2 more
PCH-CURR-ND
CURR_ND
Numeric 1The number of decimals assigned to a particular account as determined by the account currency.BN66.1, PR140, PR160, PR189, PR195, PR560, PR80.1, PR80.4 +2 more
PCH-PENS-SEQ-NBR
PENS_SEQ_NBR
Numeric 4BN66.1, PR140, PR160, PR189, PR195, PR560, PR80.1, PR80.4 +2 more
PCH-SUB-STATUS
SUB_STATUS
Numeric 2
  • 01 Escheated
  • 02 Escheated pmt filed with govt
  • 03 Hold
  • 04 Reissue payment
  • 05 Cashed
PR160, PR85.1

Indexes (11)

Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
PCHSET1BNK-ACCT-NBR, PRINT-TYPE, CHECK-NBR, CHECK-IDPrimaryHR00.1, HR01.1, PR01.1, PR140, PR155, PR160, PR165, PR170 +9 more
PCHSET10COMPANY, EMPLOYEE, PENS-SEQ-NBR, CHECK-IDKeyChange, SubsetWhere PENS-SEQ-NBR != Zeroes
PCHSET11COMPANY, BNK-ACCT-NBR, RECON-DATE, CHECK-NBR, CHECK-IDKeyChangePR155, PR170
PCHSET2COMPANY, SERIAL-NBR, BNK-ACCT-NBR, CHECK-TYPE, CHECK-NBR, CHECK-IDKeyChangePR160, PR180
PCHSET3BNK-ACCT-NBR, CHECK-NBR, CHECK-DATE, CHECK-TYPE, STATUS, SUB-STATUS, COMPANY, EMPLOYEEKeyChange, SubsetWhere (STATUS >= 2) And (STATUS <= 4)PR85.1
PCHSET4STATUS, COMPANY, BNK-ACCT-NBR, CHECK-TYPE, CHECK-NBR, CHECK-IDKeyChangeBN66.1, PR140, PR160, PR162, PR189, PR195, PR197, PR80.1 +5 more
PCHSET5COMPANY, CHECK-IDKeyChangeBN150, BN66.1, HR170, HR70.1, PR521, EXI2.1, EXI4.1, LP130 +22 more (list truncated in source)
PCHSET6COMPANY, BNK-ACCT-NBR, CHECK-DATE, CHECK-NBR, CHECK-IDKeyChange, SubsetWhere CHECK-TYPE = "A" Or CHECK-TYPE = "M" Or CHECK-TYPE = "S" Or CHECK-TYPE = "H"PR155, PR162, PR170, PR85.2
PCHSET7BNK-ACCT-NBR, CHECK-NBR*, CHECK-SUF, CHECK-ID, CHECK-TYPEKeyChange
PCHSET8BNK-ACCT-NBR, PRINT-TYPE, CHECK-NBR*, CHECK-ID
PCHSET9STATUS, COMPANY, PROCESS-LEVEL, EMPLOYEE, CHECK-DATE, CHECK-NBR, CHECK-IDKeyChangePR296, PR300, ZP296

Relations

One to one (7) — lookups and parents

RelationTableRulesConditionField map
Bank AccountBANKACCTRequiredPCH-BNK-ACCT-NBRBAC-BNK-ACCT-NBR
CompanyPRSYSTEMRequiredPCH-COMPANYPRS-COMPANY, SpacesPRS-PROCESS-LEVEL
EmployeeEMPLOYEERequiredWhen PCH-EMPLOYEE != ZeroesPCH-COMPANYEMP-COMPANY, PCH-EMPLOYEEEMP-EMPLOYEE
PaymastrPAYMASTRNot RequiredPCH-COMPANYPYM-COMPANY, PCH-EMPLOYEEPYM-EMPLOYEE, PCH-CHECK-IDPYM-CHECK-ID
Pr1099rhstPR1099RHSTNot RequiredPCH-COMPANYPHR-COMPANY, PCH-EMPLOYEEPHR-EMPLOYEE, PCH-CHECK-IDPHR-CHECK-ID, PCH-PENS-SEQ-NBRPHR-PENS-SEQ-NBR
PrpenhistPRPENHISTNot RequiredPCH-COMPANYPNH-COMPANY, PCH-EMPLOYEEPNH-EMPLOYEE, PCH-CHECK-IDPNH-CHECK-ID, PCH-PENS-SEQ-NBRPNH-PENS-SEQ-NBR
PrpenpayPRPENPAYNot RequiredPCH-COMPANYPNP-COMPANY, PCH-EMPLOYEEPNP-EMPLOYEE, PCH-PENS-SEQ-NBRPNP-PENS-SEQ-NBR

One to many (3) — child tables

RelationTableRulesConditionField map
PrauditPRAUDITValid When PCH-CHECK-TYPE = "M" Or PCH-CHECK-TYPE = "H"PCH-COMPANYPRU-COMPANY, PCH-BNK-ACCT-NBRPRU-BNK-ACCT-NBR, PCH-CHECK-NBRPRU-CHECK-NBR, PCH-CHECK-IDPRU-CHECK-ID, PRU-SEQ-NBR
PrpenfsrcPRPENFSRCPCH-COMPANYPNF-COMPANY, PCH-EMPLOYEEPNF-EMPLOYEE, PCH-PENS-SEQ-NBRPNF-PENS-SEQ-NBR, PNF-FUNDING-SOURCE, PNF-RETRO-PAYMENT
PrtimePRTIMEPCH-COMPANYPRT-COMPANY, PCH-EMPLOYEEPRT-EMPLOYEE, PCH-CHECK-IDPRT-CHECK-ID, PRT-PAY-SUM-GRP, PRT-TIME-SEQ

Programs

Updated by (24)

Referenced by (49)