PRBATCH – Payroll Time Record Batch Head

System
Payroll (PR)
Prefix
PRB
Primary key
COMPANY, BATCH-NBR
Fields
16
Updated by
40 programs
Referenced by
3 programs

PRBATCH is the Payroll Time Record Batch Head table in Lawson Payroll (prefix PRB). It is indexed by COMPANY, BATCH-NBR (PRBSET1). It is related 1:1 to ATTENDCODE, PRSYSTEM, DEPTCODE, PERSGROUP and PCODES and 1:M to TIMERECORD. It is updated by BN150, EXI2.1, EXI4.1, LP130, PR128, PR131, PR132, PR134 and 32 more and referenced by HR55.1, HR55.2 and HR55.3. The table has 16 fields, 1 index and 7 documented relations.

About PRBATCH

This file is used to group time records into batches for clearer error evaluation. When you create time records in Batch state, the system creates Payroll Time Card Batch Header file records and updates the actual hours and amount totals. There are many programs that create time records in Batch state. PR33.1 (Speed Entry Setup) uses this file to set up selection parameters for time record speed entry. PR37.1 (Batch Time Control) is the program that changes time records from Batch to Future status. You can require hash totaling in PR37.1. To prevent releasing a batch of time records that does not balance, select Yes in the Batch Control field on the Payroll form tab in HR00.1 (Company).

Fields (16)

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

Field / columnTypeDescription & valuesUpdated by
PRB-COMPANY PK
COMPANY
Numeric 4BN150, EXI2.1, EXI4.1, LP130, PR128, PR131, PR132, PR134 +32 more
PRB-BATCH-NBR PK
BATCH_NBR
Numeric 6Contains the batch number. Batch numbers are assigned by the system if automatic batch numbering is defined for the company on the Payroll form tab in HR00.1 (Company).BN150, EXI2.1, EXI4.1, LP130, PR128, PR131, PR132, PR134 +32 more
PRB-TR-DATE
TR_DATE
Numeric 8 (yyyymmdd)Contains the time record date.BN150, EXI2.1, EXI4.1, LP130, PR128, PR131, PR132, PR134 +32 more
PRB-TOTAL-HOURS
TOTAL_HOURS
Signed 9.2Contains the total hours the system uses to compare with actual hours for batch control edits.BN150, EXI2.1, EXI4.1, LP130, PR128, PR131, PR132, PR134 +32 more
PRB-TOTAL-AMOUNT
TOTAL_AMOUNT
Signed 13.4Contains the total amount the system uses to compare with the actual amount for batch control edits.BN150, EXI2.1, EXI4.1, LP130, PR128, PR131, PR132, PR134 +32 more
PRB-ACTUAL-HOURS
ACTUAL_HOURS
Signed 9.2Contains the total hours associated with time records included in this batch. The system updates this field when you add, change, or delete time records associated with the batch.BN150, EXI2.1, EXI4.1, LP130, PR128, PR131, PR132, PR134 +32 more
PRB-ACTUAL-AMOUNT
ACTUAL_AMOUNT
Signed 13.4Contains the total amount associated with the time records included in the batch. The system updates this field when you add, change, or delete time records associated with the batch.BN150, EXI2.1, EXI4.1, LP130, PR128, PR131, PR132, PR134 +32 more
PRB-ATTEND-CODE
ATTEND_CODE
Alpha 2 Occurs 5 Times ×5Contains an attendance code associated with the batch.BN150, EXI2.1, EXI4.1, LP130, PR128, PR131, PR132, PR134 +32 more
PRB-PAY-CODE
PAY_CODE
Alpha 4 Occurs 5 Times ×5Contain a pay code associated with the batch.BN150, EXI2.1, EXI4.1, LP130, PR128, PR131, PR132, PR134 +32 more
PRB-PROCESS-LEVEL
PROCESS_LEVEL
Alpha 5Contains the process level associated with the batch time record, and is used to display employees in a specific process level for speed time record entry selection in PR33.2 (Speed Entry by Number) and PR33.3 (Speed Entry by Name).BN150, EXI2.1, EXI4.1, LP130, PR128, PR131, PR132, PR134 +32 more
PRB-DEPARTMENT
DEPARTMENT
Alpha 5Contains the department associated with the batch time record. Used to display employees in a specific department for speed time record entry selection in PR33.2 (Speed Entry by Number) and PR33.3 (Speed entry by Name).BN150, EXI2.1, EXI4.1, LP130, PR128, PR131, PR132, PR134 +32 more
PRB-GROUP-NAME
GROUP_NAME
Alpha 10Contains the group name associated with the batch time record. PR33.2 (Speed Entry by Number) and PR33.3 (Speed Entry by Name) use this field to display employees associated with an employee group for speed time record entry selection.BN150, EXI2.1, EXI4.1, LP130, PR128, PR131, PR132, PR134 +32 more
PRB-USER-LEVEL
USER_LEVEL
Alpha 10Contains the user level associated with a batch time record. PR33.2 (Speed Entry by Number) and PR33.3 (Speed Entry by Name) use this field to display employees for speed time record entry selection.BN150, EXI2.1, EXI4.1, LP130, PR128, PR131, PR132, PR134 +32 more
PRB-DELETE-FLAG
DELETE_FLAG
Alpha 1Contains the value that determines if the setup parameters created in PR33.1 (Speed Entry Setup) are deleted when the batch is released. If the parameters are not deleted, the actual hours and amount fields are set to zero.
  • N No
  • Y Yes
BN150, EXI2.1, EXI4.1, LP130, PR128, PR131, PR132, PR134 +32 more
PRB-CURRENCY-CODE
CURRENCY_CODE
Alpha 5This field contains the company base currency code established in Company (GL10.1 ).
PRB-CURR-ND
CURR_ND
Numeric 1The number of decimals assigned to a particular account as determined by the account currency.

Indexes (1)

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

IndexKeysFlagsConditionUsed in
PRBSET1COMPANY, BATCH-NBRPrimaryBN150, HR55.1, HR55.2, HR55.3, PR521, EXI2.1, EXI4.1, LP130 +22 more (list truncated in source)

Relations

One to one (6) — lookups and parents

RelationTableRulesConditionField map
Attend CodeATTENDCODERequiredWhen PRB-ATTEND-CODE != SpacesPRB-COMPANYATC-COMPANY, PRB-ATTEND-CODEATC-ATTEND-CODE
CompanyPRSYSTEMRequiredPRB-COMPANYPRS-COMPANY, SpacesPRS-PROCESS-LEVEL
DepartmentDEPTCODERequiredWhen PRB-DEPARTMENT != SpacesPRB-COMPANYDPT-COMPANY, PRB-PROCESS-LEVELDPT-PROCESS-LEVEL, PRB-DEPARTMENTDPT-DEPARTMENT
Emp GroupPERSGROUPRequiredWhen PRB-GROUP-NAME != SpacesPRB-COMPANYPRG-COMPANY, PRB-GROUP-NAMEPRG-GROUP-NAME
Process LevelPRSYSTEMRequiredWhen PRB-PROCESS-LEVEL != SpacesPRB-COMPANYPRS-COMPANY, PRB-PROCESS-LEVELPRS-PROCESS-LEVEL
User LevelPCODESRequiredWhen PRB-USER-LEVEL != Spaces"UL"PCO-TYPE, PRB-USER-LEVELPCO-CODE

One to many (1) — child tables

RelationTableRulesConditionField map
TimerecordsTIMERECORDDelete CascadesPRB-COMPANYTRD-COMPANY, PRB-BATCH-NBRTRD-BATCH-NBR, TRD-EMPLOYEE, TRD-WRK-END-DATE, TRD-PAY-CODE, TRD-JOB-CODE, TRD-TR-DATE, TRD-TIME-SEQ

Programs

Updated by (40)

Referenced by (3)