AMCOMPUTE – Compute

System
Asset Management (AM)
Prefix
ACP
Primary key
METHOD
Fields
4
Updated by
3 programs
Referenced by
269 programs

AMCOMPUTE is the Compute table in Lawson Asset Management (prefix ACP). It is indexed by METHOD (ACPSET1). It is updated by AM02.1, AM02.2 and AM550 and referenced by AC160, AM115, AM117, AM125, AM145, AM15.1, AM15.2, AM15.3 and 261 more. The table has 4 fields, 1 index and 0 documented relations.

About AMCOMPUTE

The Compute file stores the Lawson-defined and optional user-defined compute statement methods. Lawson Software supplies the following standard depreciation methods: straight line; 125, 150, 175, and 200 percent declining balance; and sum of the years digits. These standard methods cannot be customized. Each compute file record has an associated record in the Method file.

Fields (4)

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

Field / columnTypeDescription & valuesUpdated by
ACP-METHOD PK
METHOD
Alpha 10The method associated with the compute statement. Methods are used by asset books to calculate depreciation, replacement cost, and insurance values. Standard depreciation methods are predefined. Additional methods can be user-defined for the following kinds of methods: compute statements, annual percent tables, and annual units of production tables.AM02.1, AM02.2, AM550
ACP-A-COMPUTE
A_COMPUTE
Alpha 280This field contains the compute statement as defined in AM02.1 (Methods). No edits have been performed. Valid arithmetic operators are: + = Add. A space character must always precede an arithmetic operator. However, the unary minus can be used to negate a constant (-1.4) or a named field (-LTDDEPREC). An example of a compute statement is: (BOOKBASIS + LTDDEPREC) *-1.4 where BOOKBASIS and LTDDEPREC are data dictionary items. BOOKBASIS and LTDDEPREC refer to Book Basis and Book Life-to-Date. Dictionary items are loaded by AM550 (Dictionary Load and Listing). (To view data dictionary items, press Select in the Compute Statement field in AM02.1.) In the preceding example, the + and * characters are arithmetic operators, and must be preceded by a space. The - is a unary minus, and does not require a leading space. Parentheses are used to indicate computational order.
  • - Subtract and unary minus.
  • * Multiply.
  • / Divide.
AM02.1, AM02.2, AM550
ACP-ELEMENT-CODE
ELEMENT_CODE
Alpha 37 Occurs 40 Times ×40Each occurrence of this field contains an encoded format of a data dictionary item that is included in the compute statement. These fields are used when the compute statement is evaluated for a numeric result.AM02.1, AM02.2, AM550
ACP-OPERATION-CODE
OPERATION_CODE
Numeric 2 Occurs 40 Times ×40Each occurrence of this field contains an encoded format for an arithmetic operator that is included in the compute statement. These fields are used when the compute statement is evaluated for a numeric result.AM02.1, AM02.2, AM550

Indexes (1)

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

IndexKeysFlagsConditionUsed in
ACPSET1METHODPrimaryAC160, AM02.1, AM02.2, AM115, AM117, AM125, AM145, AM15.1 +22 more (list truncated in source)

Programs

Updated by (3)

Referenced by (269)