LETTERCODE – Benefit Letter Code

System
Benefits (BN)
Prefix
LTC
Primary key
COMPANY, LETTER-CODE, EMPLOYEE, DEPENDENT, PARTICIPNT, DATE
Fields
10
Updated by
5 programs
Referenced by
1 program

LETTERCODE is the Benefit Letter Code table in Lawson Benefits (prefix LTC). It is indexed by COMPANY, LETTER-CODE, EMPLOYEE, DEPENDENT, PARTICIPNT, DATE (LTCSET1). It is related 1:1 to BNCOMPANY, PRSYSTEM, EMDEPEND, EMPLOYEE and PARTICIPNT and 1:M to LETTERTEXT. It is updated by BN00.1, BN05.1, BN285, BN70.1 and BN85.1 and referenced by BN171. The table has 10 fields, 1 index and 6 documented relations.

About LETTERCODE

The Benefit Letter Code file contains header information associated with the Letter Text file for standard and free form letters.

Fields (10)

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

Field / columnTypeDescription & valuesUpdated by
LTC-COMPANY PK
COMPANY
Numeric 4Contains the company number. The number correlates all information about the company.BN05.1, BN85.1
LTC-LETTER-CODE PK
LETTER_CODE
Alpha 2Contains the user-defined code that represents a letter.BN05.1, BN85.1
LTC-EMPLOYEE PK
EMPLOYEE
Numeric 9Contains the employee's number. The number correlates all information about the employee. This field is used when the letter is for an employee, dependent, or retiree.BN85.1
LTC-DEPENDENT PK
DEPENDENT
Numeric 4Contains the dependent to which the letter is to be sent.BN85.1
LTC-PARTICIPNT PK
PARTICIPNT
Numeric 9Contains COBRA participant numbers. The number correlates all information about the COBRA participant.BN85.1
LTC-DATE PK
DATE
Numeric 8 (yyyymmdd)Contains the date of the letter. This field defaults to the system date.BN85.1
LTC-PRINT-STATUS
PRINT_STATUS
Alpha 1Indicates whether the free-form letter has been printed. When you add a free-form letter, this field defaults to Not Printed. When you print this letter, this field changes to Yes.BN285, BN85.1
LTC-SALUTATION
SALUTATION
Alpha 40Contains the salutation or greeting of the letter.BN85.1
LTC-SIGNATURE
SIGNATURE
Alpha 40 Occurs 2 Times ×2Contains the first line of the letter's closing.BN85.1
LTC-LAST-LTR-SEQ
LAST_LTR_SEQ
Numeric 4Contains the sequence number of the last letter created.BN05.1, BN85.1

Indexes (1)

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

IndexKeysFlagsConditionUsed in
LTCSET1COMPANY, LETTER-CODE, EMPLOYEE, DEPENDENT, PARTICIPNT, DATEPrimaryBN00.1, BN00.2, BN00.3, BN05.1, BN171, BN285, BN70.1, BN85.1

Relations

One to one (5) — lookups and parents

RelationTableRulesConditionField map
CompanyBNCOMPANYRequiredLTC-COMPANYBNC-COMPANY
Company NamePRSYSTEMRequiredLTC-COMPANYPRS-COMPANY, SpacesPRS-PROCESS-LEVEL
DependentEMDEPENDRequiredWhen LTC-DEPENDENT != ZeroesLTC-COMPANYEMD-COMPANY, LTC-EMPLOYEEEMD-EMPLOYEE, LTC-DEPENDENTEMD-SEQ-NBR
EmployeeEMPLOYEERequiredWhen LTC-EMPLOYEE != ZeroesLTC-COMPANYEMP-COMPANY, LTC-EMPLOYEEEMP-EMPLOYEE
ParticipantPARTICIPNTRequiredWhen LTC-PARTICIPNT != ZeroesLTC-COMPANYPAR-COMPANY, LTC-PARTICIPNTPAR-PARTICIPNT

One to many (1) — child tables

RelationTableRulesConditionField map
Letter TextLETTERTEXTDelete RestrictedLTC-COMPANYLTT-COMPANY, LTC-LETTER-CODELTT-LETTER-CODE, LTC-EMPLOYEELTT-EMPLOYEE, LTC-DEPENDENTLTT-DEPENDENT, LTC-PARTICIPNTLTT-PARTICIPNT, LTC-DATELTT-DATE, LTT-SEQ-NBR

Programs

Updated by (5)

Referenced by (1)