COMPHIST – Employee Compensation History

System
Benefits (BN)
Prefix
CPH
Primary key
COMPANY, EMPLOYEE, PLAN-TYPE, PLAN-CODE, PLAN-YEAR
Fields
13
Updated by
4 programs
Referenced by
30 programs

COMPHIST is the Employee Compensation History table in Lawson Benefits (prefix CPH). It is indexed by COMPANY, EMPLOYEE, PLAN-TYPE, PLAN-CODE, PLAN-YEAR (CPHSET1); alternate indexes: CPHSET2 and CPHSET3. It is related 1:1 to BNCOMPANY, PRSYSTEM, EMPLOYEE, PAEMPLOYEE and PLAN and 1:M to BENEFIT. It is updated by BN430, BN556, BN56.1 and PR197 and referenced by BN100, BN101, BN102, BN103, BN105, BN15.1, BN236, BN31.1 and 22 more. The table has 13 fields, 3 indexes and 6 documented relations.

About COMPHIST

The Employee Compensation History file contains compensation and hours of service by plan year for defined contribution and defined benefit plans. PR197 (Payroll Close) updates this file for employees enrolled in defined contribution and defined benefit benefits.

Fields (13)

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

Field / columnTypeDescription & valuesUpdated by
CPH-COMPANY PK
COMPANY
Numeric 4Contains the company number.BN556, BN56.1, PR197
CPH-EMPLOYEE PK
EMPLOYEE
Numeric 9Contains the employee number.BN556, BN56.1, PR197
CPH-PLAN-TYPE PK
PLAN_TYPE
Alpha 2Contains the type of benefit plan.
  • DB Defined Benefit
  • DC Defined Contribution
BN556, BN56.1, PR197
CPH-PLAN-CODE PK
PLAN_CODE
Alpha 4This field is equal to the defined contribution or defined benefit plan code from the BENEFIT file (BEN-PLAN-CODE).BN556, BN56.1, PR197
CPH-PLAN-YEAR PK
PLAN_YEAR
Numeric 4Contains the plan year for which compensation and participation hours are recorded. It is based on the PLN-START-DATE month and day.BN556, BN56.1, PR197
CPH-COMP-AMOUNT
COMP_AMOUNT
Signed 13.2The employee compensation is defined as either the total pay or the definition of the base pay class in BN00.1 (Benefits Company). Each plan in BN16.1 (Defined Contribution Plan) and BN17.1 (Defined Benefit Plan) can be set up as either total or base pay (PLN-TOT-BASE-FLAG = "T" or "B"). Compensation is tracked in the Payroll system in the PAYWAGE file. The amount from the PYW-AMOUNT is updated into this field by PR199 (Payroll Close).BN556, BN56.1, PR197
CPH-HOURS-SERV
HOURS_SERV
Signed 7.2Hours of Service is tracked by total hours or by base pay class defined in BN00.1 (Benefits Company). Each plan in BN16.1 (Defined Contribution Plan) and BN17.1 (Defined Benefit Plan) can be set up as either total or base pay (PLN-TOT-BASE-FLAG = "T" or "B"). Hours worked are tracked in the Payroll system in the PAYWAGE file. The amount from PYW-HOURS is updated into this field by PR199 (Payroll Close).BN556, BN56.1, PR197
CPH-CREATE-DATE
CREATE_DATE
Numeric 8 (yyyymmdd)BN556, BN56.1, PR197
CPH-CREATE-TIME
CREATE_TIME
Numeric 6 (hhmmss)BN556, BN56.1, PR197
CPH-CREATE-USER-ID
CREATE_USER_ID
Alpha 10 (Lower Case)BN556, BN56.1, PR197
CPH-DATE-STAMP
DATE_STAMP
Numeric 8 (yyyymmdd)BN556, BN56.1, PR197
CPH-TIME-STAMP
TIME_STAMP
Numeric 6 (hhmmss)BN556, BN56.1, PR197
CPH-USER-ID
USER_ID
Alpha 10 (Lower Case)BN556, BN56.1, PR197

Indexes (3)

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

IndexKeysFlagsConditionUsed in
CPHSET1COMPANY, EMPLOYEE, PLAN-TYPE, PLAN-CODE, PLAN-YEARPrimaryBN100, BN101, BN102, BN103, BN105, BN236, BN31.1, BN31.2 +22 more (list truncated in source)
CPHSET2COMPANY, EMPLOYEE, PLAN-TYPE, PLAN-CODE, PLAN-YEAR*BN56.1
CPHSET3COMPANY, PLAN-TYPE, PLAN-CODE, PLAN-YEAR, EMPLOYEEKeyChangeBN15.1

Relations

One to one (5) — lookups and parents

RelationTableRulesConditionField map
CompanyBNCOMPANYRequiredCPH-COMPANYBNC-COMPANY
Company NamePRSYSTEMRequiredCPH-COMPANYPRS-COMPANY, SpacesPRS-PROCESS-LEVEL
EmployeeEMPLOYEERequiredCPH-COMPANYEMP-COMPANY, CPH-EMPLOYEEEMP-EMPLOYEE
Pa EmployeePAEMPLOYEERequiredCPH-COMPANYPEM-COMPANY, CPH-EMPLOYEEPEM-EMPLOYEE
PlanPLANRequiredCPH-COMPANYPLN-COMPANY, CPH-PLAN-TYPEPLN-PLAN-TYPE, CPH-PLAN-CODEPLN-PLAN-CODE

One to many (1) — child tables

RelationTableRulesConditionField map
BenefitBENEFITDelete RestrictedCPH-COMPANYBEN-COMPANY, CPH-EMPLOYEEBEN-EMPLOYEE, CPH-PLAN-TYPEBEN-PLAN-TYPE, CPH-PLAN-CODEBEN-PLAN-CODE, BEN-START-DATE

Programs

Updated by (4)

Referenced by (30)