CUACCT – Currency Gain and Loss Account
- System
- General Ledger Setup (IF)
- Prefix
CUA- Primary key
COMPANY,FR-CURR-CODE,TO-CURR-CODE,SYSTEM- Fields
- 17
- Updated by
- 3 programs
- Referenced by
- 122 programs
CUACCT is the Currency Gain and Loss Account table in Lawson General Ledger Setup (prefix CUA). It is indexed by COMPANY, FR-CURR-CODE, TO-CURR-CODE, SYSTEM (CUASET1); alternate indexes: CUASET2. It is related 1:1 to CURELAT, GLCHARTDTL, GLCODES, GLMASTER and GLSYSTEM. It is updated by CU03.1, GL10.1 and GL110 and referenced by AC191, AP125, AP126, AP170, AP180, AP181, AP190, AP191 and 114 more. The table has 17 fields, 2 indexes and 11 documented relations.
About CUACCT
This file contains account numbers that variance amounts are posted to when a timing difference occurs between the beginning and the completion of a transaction. CU03.1 (Currency Gain Loss Accounts) is the primary program that updates this file.
Fields (17)
Column = COBOL field name without the CUA- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
CUA-COMPANY PKCOMPANY | Numeric 4 | The company number you are defining currencies for. | CU03.1, GL110 |
CUA-FR-CURR-CODE PKFR_CURR_CODE | Alpha 5 | This is the name of the currency code you are converting from. It must be a defined code in the Currency Relationships file. | CU03.1 |
CUA-TO-CURR-CODE PKTO_CURR_CODE | Alpha 5 | This is the name of the currency code you are converting to. It must be a defined code in the Currency Relationships file. | CU03.1 |
CUA-SYSTEM PKSYSTEM | Alpha 2 | A system code is a unique two-character code identifying a Lawson application system. A blank system code must first exist before a record can be added with a valid system code. The system code must be defined in the General Ledger file and source code. If you enter a system code in this field, the currency gain and loss accounts are used for that system only. | CU03.1 |
CUA-CURRENCY-TABLECURRENCY_TABLE | Alpha 12 | This is the currency table, a table of currency relationships, currency exchange rates, and translation rates for one or more companies. | CU03.1, GL10.1 |
CUA-REAL-GAIN-ACUREAL_GAIN_ACU | Alpha 15 | A negative variance is posted to this accounting unit if conversion rates differ in the opening and closing of a transaction. The accounting unit must be defined in the General Ledger Account Master file. | CU03.1 |
CUA-REAL-GAIN-ACTREAL_GAIN_ACT | Numeric 6 | A negative variance is posted to this account if conversion rates differ in the opening and closing of a transaction. The account must be defined in the General Ledger Account Master file. | CU03.1 |
CUA-REAL-GAIN-ACSREAL_GAIN_ACS | Numeric 4 | A negative variance is posted to this subaccount if conversion rates differ in the opening and closing of a transaction. The subaccount must be defined in the General Ledger Account Master file. | CU03.1 |
CUA-UNRL-GAIN-ACUUNRL_GAIN_ACU | Alpha 15 | A negative variance is posted to this accounting unit if one exists when the conversion rate is revalued at the end of a period. The accounting unit must be defined in the General Ledger Account Master file. | CU03.1 |
CUA-UNRL-GAIN-ACTUNRL_GAIN_ACT | Numeric 6 | A negative variance is posted to this account if one exists when the conversion rate is revalued at the end of a period. The account must be defined in the General Ledger Account Master file. | CU03.1 |
CUA-UNRL-GAIN-ACSUNRL_GAIN_ACS | Numeric 4 | A negative variance is posted to this subaccount if one exists when the conversion rate is revalued at the end of a period. The subaccount must be defined in the General Ledger Account Master file. | CU03.1 |
CUA-REAL-LOSS-ACUREAL_LOSS_ACU | Alpha 15 | A positive variance is posted to this accounting unit if conversion rates differ in the opening and closing of a transaction. The accounting unit must be defined in the General Ledger Account Master file. | CU03.1 |
CUA-REAL-LOSS-ACTREAL_LOSS_ACT | Numeric 6 | A positive variance is posted to this account if conversion rates differ in the opening and closing of a transaction. The account must be defined in the General Ledger Account Master file. | CU03.1 |
CUA-REAL-LOSS-ACSREAL_LOSS_ACS | Numeric 4 | A positive variance is posted to this subaccount if conversion rates differ in the opening and closing of a transaction. The subaccount must be defined in the General Ledger Account Master file. | CU03.1 |
CUA-UNRL-LOSS-ACUUNRL_LOSS_ACU | Alpha 15 | A positive variance is posted to this accounting unit if one exists when the conversion rate is revalued at the end of a period. The accounting unit must be defined in the General Ledger Account Master file. | CU03.1 |
CUA-UNRL-LOSS-ACTUNRL_LOSS_ACT | Numeric 6 | A positive variance is posted to this account if one exists when the conversion rate is revalued at the end of a period. The account must be defined in the General Ledger Account Master file. | CU03.1 |
CUA-UNRL-LOSS-ACSUNRL_LOSS_ACS | Numeric 4 | A positive variance is posted to this subaccount if one exists when the conversion rate is revalued at the end of a period. The subaccount must be defined in the General Ledger Account Master file. | CU03.1 |
Indexes (2)
Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.
| Index | Keys | Flags | Condition | Used in |
|---|---|---|---|---|
CUASET1 | COMPANY, FR-CURR-CODE, TO-CURR-CODE, SYSTEM | Primary | AC191, AP125, AP126, AP170, AP180, AP181, AP190, AP191 +22 more (list truncated in source) | |
CUASET2 | CURRENCY-TABLE, FR-CURR-CODE, TO-CURR-CODE, COMPANY, SYSTEM | KeyChange | — |
Relations
One to one (11) — lookups and parents
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Curelat | CURELAT | Required | CUA-CURRENCY-TABLE → CRL-CURRENCY-TABLE (CRLSET1), CUA-FR-CURR-CODE → CRL-FR-CURR-CODE, CUA-TO-CURR-CODE → CRL-TO-CURR-CODE | |
| Gdt Real Gain | GLCHARTDTL | Required | GLS-CHART-NAME → GDT-CHART-NAME, CUA-REAL-GAIN-ACT → GDT-ACCOUNT, CUA-REAL-GAIN-ACS → GDT-SUB-ACCOUNT | |
| Gdt Real Loss | GLCHARTDTL | Required | GLS-CHART-NAME → GDT-CHART-NAME, CUA-REAL-LOSS-ACT → GDT-ACCOUNT, CUA-REAL-LOSS-ACS → GDT-SUB-ACCOUNT | |
| Gdt Unrl Gain | GLCHARTDTL | Required | GLS-CHART-NAME → GDT-CHART-NAME, CUA-UNRL-GAIN-ACT → GDT-ACCOUNT, CUA-UNRL-GAIN-ACS → GDT-SUB-ACCOUNT | |
| Gdt Unrl Loss | GLCHARTDTL | Required | GLS-CHART-NAME → GDT-CHART-NAME, CUA-UNRL-LOSS-ACT → GDT-ACCOUNT, CUA-UNRL-LOSS-ACS → GDT-SUB-ACCOUNT | |
| Glcodes | GLCODES | Required | When CUA-SYSTEM != Spaces | CUA-COMPANY → GCD-COMPANY, CUA-SYSTEM → GCD-SYSTEM |
| Glm Real Gain | GLMASTER | Required | CUA-COMPANY → GLM-COMPANY, CUA-REAL-GAIN-ACU → GLM-ACCT-UNIT, CUA-REAL-GAIN-ACT → GLM-ACCOUNT, CUA-REAL-GAIN-ACS → GLM-SUB-ACCOUNT | |
| Glm Real Loss | GLMASTER | Required | CUA-COMPANY → GLM-COMPANY, CUA-REAL-LOSS-ACU → GLM-ACCT-UNIT, CUA-REAL-LOSS-ACT → GLM-ACCOUNT, CUA-REAL-LOSS-ACS → GLM-SUB-ACCOUNT | |
| Glm Unrl Gain | GLMASTER | Required | CUA-COMPANY → GLM-COMPANY, CUA-UNRL-GAIN-ACU → GLM-ACCT-UNIT, CUA-UNRL-GAIN-ACT → GLM-ACCOUNT, CUA-UNRL-GAIN-ACS → GLM-SUB-ACCOUNT | |
| Glm Unrl Loss | GLMASTER | Required | CUA-COMPANY → GLM-COMPANY, CUA-UNRL-LOSS-ACU → GLM-ACCT-UNIT, CUA-UNRL-LOSS-ACT → GLM-ACCOUNT, CUA-UNRL-LOSS-ACS → GLM-SUB-ACCOUNT | |
| Glsystem | GLSYSTEM | Required | CUA-COMPANY → GLS-COMPANY |
Programs
Updated by (3)
Referenced by (122)
- AC191 Accounting Unit Balance Post
- AP125 Batch Release
- AP126 Mass Invoice Release
- AP170 Payment Closing
- AP180 Bill of Exchange Cashing Update
- AP181 Bill of Exchange Statement Update
- AP190 Invoice Reinstatement
- AP191 Unrealized Gain or Loss
- AP20.1 Basic Invoice
- AP20.2 Taxed Invoice
- AP20.3 Detail Invoice
- AP20.4 Invoice Line Detail
- AP20.5 Multiple Invoice
- AP20.7 Distributions
- AP21.1 View Distributions
- AP23.1 Transit Invoice Entry
- AP25.1 Batch Control
- AP25.2 Batch Review
- AP26.1 Invoice Release
- AP27.1 Single Invoice Release
- AP30.4 Invoice Cancel
- API1.1 Add Invoice
- API2.1 Add Invoice
- AR01.1 Company
- BR44.1 Mass Transaction Transfer
- CB145 EFT Extract Update
- CB222 Cash Position Reconciliation
- CU00.1 Currency Table
- CU01.1 Currency Code
- CU01.2 Currency Codes
- CU02.1 Currency Relationship
- CU02.2 Relationship Summary
- CU10.1 Exchange Rates
- CU10.2 Daily Rate Entry
- CU20.1 Currency Table Translation Rates
- CU20.2 Currency Table Period Rate Entry
- CU20.3 Company Translation Rates
- CU203 Company Currency Gain,Loss Accounts Listing
- DR100 Distribution Requirements Report
- FB45.1 Budget Journal Control
- GL00.2 Define Chart
- GL00.3 Detail Accounts
- GL00.6 Move Detail Account
- GL00.7 System Accounts
- GL00.9 Chart Copy
- GL02.1 Detail Subaccount Definition
- GL02.2 Multiple Detail Subaccount Definition
- GL02.3 Template Subaccount Definition
- GL02.6 Move Detail Account
- GL03.6 Posting Account System Restriction
- GL100 Mass Chart Account Change Delete
- GL111 Backposting Control Mass Upd
- GL120 Level Reorganization
- GL121 Mass Account Addition
- GL122 Mass Account Change Delete
- GL124 Mass Accounting Unit Addition
- GL125 Mass Accounting Unit Change
- GL135 Intercompany Chart Map Posting
- GL146 Batch Journal Control
- GL148 Zone Rebalancing
- GL160 Chart of Accounts Interface
- GL161 Accounting Unit Interface
- GL167 Balance Interface
- GL190 Journal Posting
- GL191 Currency Revaluation
- GL195 Translation Calculation
- GL196 Report Currency Translation
- GL197 Period, Year End GL Commitments Processing
- GL199 Period Closing
- GL20.1 Accounting Units - Accounts
- GL20.2 Posting Accounts
- GL20.4 Mass Add Accounts
- GL330 Undistributed Retained Earnings Rebuild
- GL40.1 Journal Entry
- GL40.2 Define Journal
- GL40.3 Speed Entry
- GL40.7 Totals
- GL40.8 Journal Entry
- GL44.1 Report Currency Entry
- GL45.1 Journal Control
- GL500 Fiscal Year Change
- IC141 Location Replenishment Report
- IC142 Replenishment by Requisition PO's
- IC222 Unreleased Documents
- IC83.1 Par Location Counts
- IFAC.1 General Ledger Account Edit
- IFCU.1 Currency Calculation
- MA180 Open Receipt Archive
- MA41.1 Add-On Cost Detail - Purchase Order
- MA41.2 Add On Cost Lookup
- MA41.4 Miscellaneous Add-On Cost
- MA41.7 AOC Approval Entry
- MA42.2 Memo Line AOC Detail
- MA43.2 Purchase Order Lookup
- MA44.1 Invoice Line Detail - Purchase Order
- MA44.2 Invoice Line Detail- Service
- MA61.1 Match Invoice Approval
- MAI1.1 Invoke for MAMATCH Object
- ML146 Batch Ledger Journal Control
- ML167 Ledger Balance Interface
- ML190 Ledger Journal Posting
- ML191 Ledger Currency Revaluation
- ML195 Ledger Translation Calculation
- ML196 Ledger Report Currency Translation
- ML199 Ledger Period Closing
- ML330 Ledger Undistributed RE Rebuil
- ML40.1 Ledger Journal Entry
- ML40.2 Define Ledger Journal
- ML40.3 Ledger Speed Entry
- ML40.7 Ledger Totals
- ML40.8 Ledger Journal Entry
- ML44.1 Ledger Report Currency Entry
- ML45.1 Ledger Journal Control
- RQ10.1 Requisition
- RQ10.3 Select and Copy
- RQ11.1 Kit Accessories
- RQ13.2 Direct Line Approval
- RQ35.1 Requisition Returns
- RQ500 Requisition Interface
- RQIB.1 RQRQHUPD Invoke Object
- RQIF.1 RQRLNUPD Invoke Object
- RQIJ.1 Requisition Copy