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. PK = primary key (present in every index); SETn = leading/alternate key of that index.

Field / columnTypeDescription & valuesUpdated by
#PRB-COMPANY PK
COMPANY
Numeric 4—BN150, 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 are listed in index order; ↓ marks a descending key. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
PRBSET1
  1. COMPANY
  2. BATCH-NBR
PrimaryBN150, HR55.1, HR55.2, HR55.3, PR521, EXI2.1, EXI4.1, LP130 +22 more (list truncated in source)

Relations

Relationship map — 1:1 lookups/parents on the left, 1:M children on the right (up to 14 each)
ATTENDCODEPRSYSTEMDEPTCODEPERSGROUPPCODESTIMERECORDPRBATCH

One to one (6) — lookups and parents

RelationTableRulesConditionField map
Attend CodeATTENDCODERequiredWhen PRB-ATTEND-CODE != Spaces
PRB-COMPANY→ATC-COMPANY
PRB-ATTEND-CODE→ATC-ATTEND-CODE
CompanyPRSYSTEMRequired
PRB-COMPANY→PRS-COMPANY
Spaces→PRS-PROCESS-LEVEL
DepartmentDEPTCODERequiredWhen PRB-DEPARTMENT != Spaces
PRB-COMPANY→DPT-COMPANY
PRB-PROCESS-LEVEL→DPT-PROCESS-LEVEL
PRB-DEPARTMENT→DPT-DEPARTMENT
Emp GroupPERSGROUPRequiredWhen PRB-GROUP-NAME != Spaces
PRB-COMPANY→PRG-COMPANY
PRB-GROUP-NAME→PRG-GROUP-NAME
Process LevelPRSYSTEMRequiredWhen PRB-PROCESS-LEVEL != Spaces
PRB-COMPANY→PRS-COMPANY
PRB-PROCESS-LEVEL→PRS-PROCESS-LEVEL
User LevelPCODESRequiredWhen PRB-USER-LEVEL != Spaces
"UL"→PCO-TYPE
PRB-USER-LEVEL→PCO-CODE

One to many (1) — child tables

RelationTableRulesConditionField map
TimerecordsTIMERECORDDelete Cascades
PRB-COMPANY→TRD-COMPANY
PRB-BATCH-NBR→TRD-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)