PRWEEKS – Employee Weeks Worked

System
Payroll (PR)
Prefix
PWK
Primary key
COMPANY, PAYROLL-YEAR, QUARTER, EMPLOYEE, REPORT-ENTITY, PROCESS-LEVEL, WORK-STATE
Fields
8
Updated by
2 programs
Referenced by
4 programs

PRWEEKS is the Employee Weeks Worked table in Lawson Payroll (prefix PWK). It is indexed by COMPANY, PAYROLL-YEAR, QUARTER, EMPLOYEE, REPORT-ENTITY, PROCESS-LEVEL, WORK-STATE (PWKSET1); alternate indexes: PWKSET2. It is related 1:1 to PRSYSTEM, EMPLOYEE and PRSTATE. It is updated by PR289 and PR83.1 and referenced by HR170, HR70.1, PR291 and PR292. The table has 8 fields, 2 indexes and 4 documented relations.

About PRWEEKS

This file contains the number of weeks an employee worked during the defined payroll year and quarter. This includes the process level and work state on the employee record at the time of payment.

Fields (8)

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

Field / columnTypeDescription & valuesUpdated by
PWK-COMPANY PK
COMPANY
Numeric 4PR289, PR83.1
PWK-PAYROLL-YEAR PK
PAYROLL_YEAR
Numeric 4Contains the payroll year for which you want to display or adjust weeks worked.PR289, PR83.1
PWK-QUARTER PK
QUARTER
Numeric 1Contains the fiscal quarter for the data stored in this record. 1 2 3 4PR289, PR83.1
PWK-EMPLOYEE PK
EMPLOYEE
Numeric 9Contains the employee number. Each person employed by the company is assigned a unique number. The system uses the employee number to correlate all of the information related to that person.PR289, PR83.1
PWK-PROCESS-LEVEL PK
PROCESS_LEVEL
Alpha 5Contains the process level of employees who worked in weeks associated with the payroll year and quarter defined.PR289, PR83.1
PWK-WORK-STATE PK
WORK_STATE
Alpha 2Contains the work state on the employee record at the time of payment.PR289, PR83.1
PWK-NBR-WEEKS
NBR_WEEKS
Signed 2.0Contains the number of weeks the employee worked during the defined payroll year and quarter.PR289, PR83.1
PWK-REPORT-ENTITY PK
REPORT_ENTITY
Alpha 5

Indexes (2)

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

IndexKeysFlagsConditionUsed in
PWKSET1COMPANY, PAYROLL-YEAR, QUARTER, EMPLOYEE, REPORT-ENTITY, PROCESS-LEVEL, WORK-STATEPrimaryPR289, PR291, PR292, PR83.1
PWKSET2COMPANY, EMPLOYEE, PAYROLL-YEAR, QUARTER, REPORT-ENTITY, PROCESS-LEVEL, WORK-STATEHR170, HR70.1

Relations

One to one (4) — lookups and parents

RelationTableRulesConditionField map
CompanyPRSYSTEMRequiredPWK-COMPANYPRS-COMPANY, SpacesPRS-PROCESS-LEVEL
EmployeeEMPLOYEERequiredPWK-COMPANYEMP-COMPANY, PWK-EMPLOYEEEMP-EMPLOYEE
Process LevelPRSYSTEMRequiredPWK-COMPANYPRS-COMPANY, PWK-PROCESS-LEVELPRS-PROCESS-LEVEL
Work StatePRSTATERequiredPWK-WORK-STATEPSA-STATE

Programs

Updated by (2)

Referenced by (4)