BNACCOUNTS – Benefit Accounts

System
Benefits (BN)
Prefix
BNA
Primary key
COMPANY, PLAN-TYPE, PLAN-CODE, START-DATE, GROUP-NAME, DED-CODE
Fields
21
Updated by
40 programs
Referenced by
4 programs

BNACCOUNTS is the Benefit Accounts table in Lawson Benefits (prefix BNA). It is indexed by COMPANY, PLAN-TYPE, PLAN-CODE, START-DATE, GROUP-NAME, DED-CODE (BNASET1); alternate indexes: BNASET2 and BNASET3. It is related 1:1 to GLMASTER, PRSYSTEM and PLAN. It is updated by BN100, BN101, BN102, BN103, BN105, BN145, BN15.1, BN20.1 and 32 more and referenced by BN215, BN220, HR55.1 and PRBN.1. The table has 21 fields, 3 indexes and 4 documented relations.

About BNACCOUNTS

Contains general ledger accounts to be used on employee deduction master override of accounts for a deduction code or a pay code.

Fields (21)

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

Field / columnTypeDescription & valuesUpdated by
BNA-COMPANY PK
COMPANY
Numeric 4Contains the company number.BN20.1
BNA-PLAN-TYPE PK
PLAN_TYPE
Alpha 2Contains the plan type.BN20.1
BNA-PLAN-CODE PK
PLAN_CODE
Alpha 4Contains the user-defined code that represents a benefit plan.BN20.1
BNA-START-DATE PK
START_DATE
Numeric 8 (yyyymmdd)Contains the date the general ledger overrides take effect.BN20.1
BNA-GROUP-NAME PK
GROUP_NAME
Alpha 10Contains the employee group name.BN20.1
BNA-DED-CODE PK
DED_CODE
Alpha 4Contains the deduction code or pay code.BN20.1
BNA-EXP-DIST-CO
EXP_DIST_CO
Numeric 4Identifies the AP company if the resource type = V. Identifies the HR company if the resource type = E. It is blank for type A, P or Q resources.BN20.1
BNA-EXP-ACCT-UNIT
EXP_ACCT_UNIT
Alpha 15The accounting unit is a shorthand notation representing the variable level number. When used in the General Ledger Account Master file, the accounting unit must be defined in the General Ledger Names file as a posting accounting unit.BN20.1
BNA-EXP-ACCOUNT
EXP_ACCOUNT
Numeric 6This field along with the accounting unit and subaccount make up the location (account) where amounts and other account information is stored.BN20.1
BNA-EXP-SUB-ACCT
EXP_SUB_ACCT
Numeric 4This field contains the subaccount from your general ledger chart of accounts that was charged with the amount carried on this record.BN20.1
BNA-ACR-DIST-CO
ACR_DIST_CO
Numeric 4Identifies the AP company if the resource type = V. Identifies the HR company if the resource type = E. It is blank for type A, P or Q resources.BN20.1
BNA-ACR-ACCT-UNIT
ACR_ACCT_UNIT
Alpha 15Contains the accrual accounting unit for the deduction code or pay code.BN20.1
BNA-ACR-ACCOUNT
ACR_ACCOUNT
Numeric 6Contains the accrual account number for the deduction code or pay code.BN20.1
BNA-ACR-SUB-ACCT
ACR_SUB_ACCT
Numeric 4Contains the accrual subaccount number for the deduction code or pay code.BN20.1
BNA-STATUS
STATUS
Numeric 1Contains the account's status.
  • 0 New Group New Date
  • 1 Existing Group New Date
  • 2 Change Existing Record
  • 3 Updated
BN105, BN20.1
BNA-CREATE-DATE
CREATE_DATE
Numeric 8 (yyyymmdd)BN20.1
BNA-CREATE-TIME
CREATE_TIME
Numeric 6 (hhmmss)BN20.1
BNA-CREATE-USER-ID
CREATE_USER_ID
Alpha 10 (Lower Case)BN20.1
BNA-DATE-STAMP
DATE_STAMP
Numeric 8 (yyyymmdd)BN20.1
BNA-TIME-STAMP
TIME_STAMP
Numeric 6 (hhmmss)BN20.1
BNA-USER-ID
USER_ID
Alpha 10 (Lower Case)BN20.1

Indexes (3)

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

IndexKeysFlagsConditionUsed in
BNASET1COMPANY, PLAN-TYPE, PLAN-CODE, START-DATE, GROUP-NAME, DED-CODEPrimaryBN100, BN101, BN102, BN103, BN105, BN145, BN15.1, BN20.1 +22 more (list truncated in source)
BNASET2COMPANY, PLAN-TYPE, PLAN-CODE, START-DATE*, GROUP-NAME, DED-CODEBN100, BN101, BN102, BN103, BN105, BN145, BN215, BN232 +22 more (list truncated in source)
BNASET3COMPANY, PLAN-TYPE, PLAN-CODE, GROUP-NAME, START-DATE, DED-CODEBN20.1

Relations

One to one (4) — lookups and parents

RelationTableRulesConditionField map
Acr Acct DescGLMASTERNot RequiredBNA-COMPANYGLM-COMPANY, BNA-ACR-ACCT-UNITGLM-ACCT-UNIT, BNA-ACR-ACCOUNTGLM-ACCOUNT, BNA-ACR-SUB-ACCTGLM-SUB-ACCOUNT
CompanyPRSYSTEMRequiredBNA-COMPANYPRS-COMPANY, SpacesPRS-PROCESS-LEVEL
Exp Acct DescGLMASTERNot RequiredBNA-COMPANYGLM-COMPANY, BNA-EXP-ACCT-UNITGLM-ACCT-UNIT, BNA-EXP-ACCOUNTGLM-ACCOUNT, BNA-EXP-SUB-ACCTGLM-SUB-ACCOUNT
PlanPLANNot RequiredBNA-COMPANYPLN-COMPANY, BNA-PLAN-TYPEPLN-PLAN-TYPE, BNA-PLAN-CODEPLN-PLAN-CODE

Programs

Updated by (40)

Referenced by (4)