CMPUTE – Compute Statements

System
General Ledger (GL)
Prefix
CMP
Primary key
COMPUTE-NAME
Fields
16
Updated by
1 program
Referenced by
89 programs

CMPUTE is the Compute Statements table in Lawson General Ledger (prefix CMP). It is indexed by COMPUTE-NAME (CMPSET1); alternate indexes: CMPSET2. It is related 1:1 to GLCODES and 1:M to CMPUTEAU. It is updated by RW50.1 and referenced by AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 and 81 more. The table has 16 fields, 2 indexes and 2 documented relations.

About CMPUTE

This file contains compute statements, which are a combination of data dictionary items and mathematical operations. RW50.1 (Compute Statement) updates this file. This file is shared by the Allocations, Report Writer, Ratio Analysis, and Budgeting applications.

Fields (16)

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

Field / columnTypeDescription & valuesUpdated by
CMP-COMPUTE-NAME PK
COMPUTE_NAME
Alpha 12This is the name assigned to an algebraic equation created in RW50.1 (Compute Statement). A compute statement consists of data dictionary items and mathematical operation symbols.RW50.1
CMP-FOLDER-NAME
FOLDER_NAME
Alpha 12This is the name of a folder. Folders are defined in RW01.1 (Folder).RW50.1
CMP-A-COMPUTE
A_COMPUTE
Alpha 280A compute statement is an algebraic formula consisting of mathematical operators and Lawson data dictionary items.RW50.1
CMP-CASE-CODE
CASE_CODE
Alpha 44 Occurs 40 Times ×40A case code represents internal data dictionary information. Case codes are used to access data dictionary items requested in the compute statement.RW50.1
CMP-OP-CODE
OP_CODE
Numeric 2 Occurs 40 Times ×40This is the internal operation code. Operation codes are used in compute statements, which can be defined in RW50.1 (Compute Statement).RW50.1
CMP-AU-FLAG
AU_FLAG
Numeric 1This field indicates whether to override the default accounting unit in the computation. Use 1 to override the defined accounting unit. Use 2 to override the generic accounting unit defined.RW50.1
CMP-BUD-FLAG
BUD_FLAG
Alpha 1This field indicates whether the budget number must be supplied.RW50.1
CMP-DESCRIPTION
DESCRIPTION
Alpha 30 (Lower Case)This is the description of the compute statement.RW50.1
CMP-RW-USAGE
RW_USAGE
Alpha 1This field determines whether this compute statement is used by Report Writer. Use X in this field to indicate that the compute statement is used by Report Writer. XRW50.1
CMP-RA-USAGE
RA_USAGE
Alpha 1This field determines whether the compute statement is used by Ratio Analysis. Use X in this field to indicate that the compute statement is used by Ratio Analysis. XRW50.1
CMP-CA-USAGE
CA_USAGE
Alpha 1This field determines whether the compute statement is used by Allocations. Use X in this field to indicate that the compute statement is used by Allocations. XRW50.1
CMP-FB-USAGE
FB_USAGE
Alpha 1This field determines whether the compute statement is used by Budgeting. Use X in this field to indicate that the compute statement is used by Budgeting. XRW50.1
CMP-AC-USAGE
AC_USAGE
Alpha 1This field indicates whether the compute statement is used by Activity Management. Use X in this field to indicate that the compute statement is used by Activity Management. XRW50.1
CMP-LM-USAGE
LM_USAGE
Alpha 1This field indicates whether the compute statement is used by Lease Management. Use X in this field to indicate that the compute statement is used by Lease Management.RW50.1
CMP-SL-USAGE
SL_USAGE
Alpha 1
CMP-DEFAULT-HEADNG
DEFAULT_HEADNG
Alpha 32 (Lower Case)Occurs 3 Times This default heading is used by the desktop Report Writer Designer.RW50.1

Indexes (2)

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

IndexKeysFlagsConditionUsed in
CMPSET1COMPUTE-NAMEPrimaryAC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +22 more (list truncated in source)
CMPSET2FOLDER-NAME, COMPUTE-NAMEKeyChangeRW01.1, RW01.2, RW201, RW250

Relations

One to one (1) — lookups and parents

RelationTableRulesConditionField map
FolderGLCODESRequired"F"GCD-RECORD-TYPE, CMP-FOLDER-NAMEGCD-FOLDER-NAME, SpacesGCD-PROCESS-GROUP, SpacesGCD-SYSTEM, ZeroesGCD-COMPANY

One to many (1) — child tables

RelationTableRulesConditionField map
CmputeauCMPUTEAUCMP-COMPUTE-NAMECTA-COMPUTE-NAME, CTA-ACTION, CTA-DATE, CTA-TIME, CTA-UNIQUE-I-D

Programs

Updated by (1)

Referenced by (89)