ADCONSOL – ADB and COF Consolidation

System
Avg Daily Balance (AD)
Prefix
ADO
Primary key
FISCAL-YEAR, LEVEL-DEPTH, RECORD-TYPE, COMPANY, VAR-LEVELS, ACCOUNT, SUB-ACCOUNT
Fields
13
Updated by
5 programs
Referenced by
1 program

ADCONSOL is the ADB and COF Consolidation table in Lawson Avg Daily Balance (prefix ADO). It is indexed by FISCAL-YEAR, LEVEL-DEPTH, RECORD-TYPE, COMPANY, VAR-LEVELS, ACCOUNT, SUB-ACCOUNT (ADOSET1); alternate indexes: ADOSET2, ADOSET3, ADOSET4 and ADOSET5. It is related 1:1 to GLCHART and GLSYSTEM and 1:M to GLCONSOL, GLMASTER and GLNAMES. It is updated by AD190, AD191, AD300, AD320 and GL110 and referenced by GLRV.1. The table has 13 fields, 5 indexes and 5 documented relations.

About ADCONSOL

This file contains consolidated account balances for the ADBALANCE file. Consolidated balances are kept for summary level accounting units. The purpose of this file is for reporting summary balances.

Fields (13)

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

Field / columnTypeDescription & valuesUpdated by
ADO-RECORD-TYPE PK
RECORD_TYPE
Alpha 1This field identifies the type of record defined. Valid values are:
  • B Average Daily Balance
  • C Cost of Funds
AD190, AD191
ADO-LEVEL-DEPTH PK
LEVEL_DEPTH
Numeric 1The variable levels depth number pertaining to this record.AD190, AD191
ADO-COMPANY PK
COMPANY
Numeric 4The Average Daily Balance Company established in AD10. The company must exist in General Ledger.AD190, AD191
ADO-FISCAL-YEAR PK
FISCAL_YEAR
Numeric 4This is the current fiscal year.AD190, AD191
ADO-ACCOUNT PK
ACCOUNT
Numeric 6This field along with the accounting unit and subaccount make up the location (account) where amounts and other account information is stored.AD190, AD191
ADO-SUB-ACCOUNT PK
SUB_ACCOUNT
Numeric 4This field contains the subaccount from your general ledger chart of accounts that was charged with the amount carried on this record.AD190, AD191
ADO-VAR-LEVELS PK
VAR_LEVELS
Alpha 30A level that represents the location of an accounting unit in an organization's level structure.AD190, AD191, AD320
ADO-CHART-NAME
CHART_NAME
Alpha 12This is the name you assigned to the chart of accounts when you defined your company structure in the General Ledger system.AD190, AD191
ADO-AVG-PER-AMOUNT
AVG_PER_AMOUNT
Signed 18.2 Occurs 13 Times ×13The average period amount.AD190, AD191
ADO-AVG-QTR-AMOUNT
AVG_QTR_AMOUNT
Signed 18.2 Occurs 13 Times ×13The average quarter amount.AD190, AD191
ADO-AVG-YER-AMOUNT
AVG_YER_AMOUNT
Signed 18.2 Occurs 13 Times ×13The average year amount.AD190, AD191
ADO-MAINT-DATE
MAINT_DATE
Numeric 8 (yyyymmdd)The date last changed.AD190, AD191
ADO-MAINT-TIME
MAINT_TIME
Numeric 6 (hhmmss)AD190, AD191

Indexes (5)

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

IndexKeysFlagsConditionUsed in
ADOSET1FISCAL-YEAR, LEVEL-DEPTH, RECORD-TYPE, COMPANY, VAR-LEVELS, ACCOUNT, SUB-ACCOUNTPrimaryAD190, AD191, GLRV.1
ADOSET2RECORD-TYPE, COMPANY, FISCAL-YEAR, LEVEL-DEPTH, VAR-LEVELS, ACCOUNT, SUB-ACCOUNTAD300
ADOSET3FISCAL-YEAR, LEVEL-DEPTH, RECORD-TYPE, COMPANY, ACCOUNT, SUB-ACCOUNT, VAR-LEVELSGLRV.1
ADOSET4FISCAL-YEAR, LEVEL-DEPTH, RECORD-TYPE, VAR-LEVELS, ACCOUNT, SUB-ACCOUNT, COMPANYGLRV.1
ADOSET5COMPANY, VAR-LEVELS, ACCOUNT, SUB-ACCOUNT, FISCAL-YEAR, RECORD-TYPE, LEVEL-DEPTHAD320, GL110

Relations

One to one (2) — lookups and parents

RelationTableRulesConditionField map
GlchartGLCHARTRequiredADO-CHART-NAMEGCH-CHART-NAME
GlsystemGLSYSTEMRequiredADO-COMPANYGLS-COMPANY

One to many (3) — child tables

RelationTableRulesConditionField map
GlconsolGLCONSOLADO-FISCAL-YEARGCN-FISCAL-YEAR, ADO-LEVEL-DEPTHGCN-LEVEL-DEPTH, ZeroesGCN-BUDGET-NBR, "A"GCN-TRANS-TYPE, ADO-COMPANYGCN-COMPANY, ADO-VAR-LEVELSGCN-VAR-LEVELS, ADO-ACCOUNTGCN-ACCOUNT, ADO-SUB-ACCOUNTGCN-SUB-ACCOUNT, GCN-CURRENCY-CODE
GlmasterGLMASTERADO-COMPANYGLM-COMPANY, ADO-ACCOUNTGLM-ACCOUNT, ADO-SUB-ACCOUNTGLM-SUB-ACCOUNT, ADO-VAR-LEVELSGLM-VAR-LEVELS, GLM-ACCT-UNIT
GlnamesGLNAMESADO-COMPANYGLN-COMPANY, ADO-VAR-LEVELSGLN-VAR-LEVELS, GLN-ACCT-UNIT

Programs

Updated by (5)

Referenced by (1)