PROTWRKPRD – Overtime Work Periods

System
Payroll (PR)
Prefix
PRW
Primary key
COMPANY, PLAN-CODE, EFFECT-DATE, WRK-START-DATE
Fields
5
Updated by
4 programs
Referenced by
36 programs

PROTWRKPRD is the Overtime Work Periods table in Lawson Payroll (prefix PRW). It is indexed by COMPANY, PLAN-CODE, EFFECT-DATE, WRK-START-DATE (PRWSET1); alternate indexes: PRWSET2 and PRWSET3. It is related 1:1 to PRSYSTEM and PROVERTIME. It is updated by PR21.1, PR21.4, PR521 and PR999 and referenced by BN100, BN101, BN102, BN103, BN105, BN145, BN245, BN260 and 28 more. The table has 5 fields, 3 indexes and 2 documented relations.

About PROTWRKPRD

This file contains the pay plans with the start and end dates of the work periods within the plans.

Fields (5)

Column = COBOL field name without the PRW- 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
#PRW-COMPANY PK
COMPANY
Numeric 4—PR21.1, PR21.4, PR521, PR999
#PRW-PLAN-CODE PK
PLAN_CODE
Alpha 4Contains the user-defined code that represents a pay plan.PR21.1, PR21.4, PR521, PR999
#PRW-EFFECT-DATE PK
EFFECT_DATE
Numeric 8 (yyyymmdd)Contains the effective date of the pay plan.PR21.1, PR21.4, PR521, PR999
#PRW-WRK-START-DATE PK
WRK_START_DATE
Numeric 8 (yyyymmdd)Contains the work period start date.PR21.1, PR21.4, PR521, PR999
#PRW-WRK-END-DATE SET2
WRK_END_DATE
Numeric 8 (yyyymmdd)Contains the work period end date.PR21.1, PR21.4, PR521, PR999

Indexes (3)

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
PRWSET1
  1. COMPANY
  2. PLAN-CODE
  3. EFFECT-DATE
  4. WRK-START-DATE
PrimaryBN100, BN101, BN102, BN103, BN105, BN145, BN245, BN260 +22 more (list truncated in source)
PRWSET2
  1. COMPANY
  2. PLAN-CODE
  3. WRK-END-DATE
  4. EFFECT-DATE ↓
KeyChangePR131, PR132, PR32.1, PR32.2
PRWSET3
  1. COMPANY
  2. PLAN-CODE
  3. EFFECT-DATE
  4. WRK-START-DATE ↓
KeyChangePR21.2, PR21.4, PR221, PR521, PR999, PREN.1

Relations

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

One to one (2) — lookups and parents

RelationTableRulesConditionField map
CompanyPRSYSTEMRequired
PRW-COMPANY→PRS-COMPANY
Spaces→PRS-PROCESS-LEVEL
Overtime PlanPROVERTIMERequired
PRW-COMPANY→PRO-COMPANY
PRW-PLAN-CODE→PRO-PLAN-CODE
PRW-EFFECT-DATE→PRO-EFFECT-DATE

Programs

Updated by (4)

Referenced by (36)