Compute statement
A compute statement is an equation consisting of Lawson data dictionary names, total names, operation symbols, and numeric values from which you create customized calculation formulas. To create a compute statement, you must perform these tasks:
- Define a compute statement
 - Define the allocation
 
You can use the compute statements that you define in the Allocations, Budgeting, Ratio Analysis, Lease Management applications.
This table shows an example of a compute statement:
| Allocation | Compute statement | Explanation | 
|---|---|---|
| To create one allocation line for each accounting unit. | 
              CPTOT(SALES,@TOAU)/ CPTOT(SALES)*CPAMT  | 
            
              CP represents current period TOT indicates a total name SALES is the total name @TOAU represents the accounting unit defined on the TO side of the allocation / represents divide * represents multiply CPAMT represents current period amount. It comes from Post From and accounting units in a pool, if used.  |