EMPAUTO – Employee Automobiles

System
Personnel (PA)
Prefix
EAT
Primary key
COMPANY, EMPLOYEE, AUTO-NBR
Fields
11
Updated by
3 programs
Referenced by
4 programs

EMPAUTO is the Employee Automobiles table in Lawson Personnel (prefix EAT). It is indexed by COMPANY, EMPLOYEE, AUTO-NBR (EATSET1). It is related 1:1 to PRSYSTEM, INSTCTRYCD, EMPLOYEE and PAEMPLOYEE. It is updated by HR11.1, PA115 and PA17.1 and referenced by HR170, HR70.1, PA217 and PA311. The table has 11 fields, 1 index and 4 documented relations.

About EMPAUTO

The Employee Automobiles file contains information on the employee's automobile.

Fields (11)

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

Field / columnTypeDescription & valuesUpdated by
EAT-COMPANY PK
COMPANY
Numeric 4Contains the company number represents an established company.PA17.1
EAT-EMPLOYEE PK
EMPLOYEE
Numeric 9Employee number.PA17.1
EAT-AUTO-NBR PK
AUTO_NBR
Numeric 1This field contains the automobile number.
  • 1 Primary
  • 2 Secondary
PA17.1
EAT-STICKER
STICKER
Alpha 10This field contains the parking sticker number.PA17.1
EAT-MODEL
MODEL
Alpha 10This field contains the automobile model.PA17.1
EAT-MAKE
MAKE
Alpha 10This field contains the made of the automobile.PA17.1
EAT-YEAR
YEAR
Numeric 4This field contains the year of the automobile.PA17.1
EAT-COLOR
COLOR
Alpha 5This field contains the color of the automobile.PA17.1
EAT-LIC-NBR
LIC_NBR
Alpha 10This field contains the license number of the automobile.PA17.1
EAT-LIC-STATE
LIC_STATE
Alpha 2This field contains the state of the automobile's license.PA17.1
EAT-LIC-COUNTRY
LIC_COUNTRY
Alpha 2Contains the county of the license.PA17.1

Indexes (1)

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

IndexKeysFlagsConditionUsed in
EATSET1COMPANY, EMPLOYEE, AUTO-NBRPrimaryHR11.1, HR170, HR70.1, PA115, PA17.1, PA217, PA311

Relations

One to one (4) — lookups and parents

RelationTableRulesConditionField map
CompanyPRSYSTEMRequiredEAT-COMPANYPRS-COMPANY, SpacesPRS-PROCESS-LEVEL
CountryINSTCTRYCDRequiredWhen (EAT-LIC-COUNTRY != Spaces)EAT-LIC-COUNTRYINT-COUNTRY-CODE
EmployeeEMPLOYEERequiredEAT-COMPANYEMP-COMPANY, EAT-EMPLOYEEEMP-EMPLOYEE
Pa EmployeePAEMPLOYEERequiredEAT-COMPANYPEM-COMPANY, EAT-EMPLOYEEPEM-EMPLOYEE

Programs

Updated by (3)

Referenced by (4)