ACCTLGRPHD – Activity Control Group Header
- System
- Activity Management (AC)
- Prefix
CGH- Primary key
CONTROL-GROUP- Fields
- 11
- Updated by
- 8 programs
- Referenced by
- 3 programs
ACCTLGRPHD is the Activity Control Group Header table in Lawson Activity Management (prefix CGH). It is indexed by CONTROL-GROUP (CGHSET1); alternate indexes: CGHSET2. It is related 1:1 to GLSYSTEM and 1:M to ACTRANS. It is updated by AC40.1, AC40.4, AC41.1, AC41.4, AC45.4, BR41.1, BR41.4 and BR43.1 and referenced by AC240, AC256 and AC290. The table has 11 fields, 2 indexes and 2 documented relations.
About ACCTLGRPHD
This file contains header information about activity control groups from AC40.1 (Journal Entry) and AC41.1 (Resource Journal Entry).
Fields (11)
Column = COBOL field name without the CGH- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
CGH-TRANS-TYPETRANS_TYPE | Alpha 1 | Required key. This field determines if the transaction processes amounts or units.
| AC40.1, AC40.4, AC41.1, AC41.4, BR41.1, BR41.4, BR43.1 |
CGH-CONTROL-GROUP PKCONTROL_GROUP | Numeric 8 | Required key. This field contains the control group number used for process control of the journal entry detail. | AC40.1, AC40.4, AC41.1, AC41.4, BR41.1, BR41.4, BR43.1 |
CGH-DESCRIPTIONDESCRIPTION | Alpha 30 (Lower Case) | This is the control group description. | AC40.1, AC40.4, AC41.1, AC41.4, BR41.1, BR41.4, BR43.1 |
CGH-BATCH-DATEBATCH_DATE | Numeric 8 (yyyymmdd) | This is the date the batch of transactions for the control group was processed. | AC40.1, AC40.4, AC41.1, AC41.4, BR41.1, BR41.4, BR43.1 |
CGH-COMPANYCOMPANY | Numeric 4 | This is the responsible company. | AC40.1, AC40.4, AC41.1, AC41.4, BR41.1, BR41.4, BR43.1 |
CGH-BASE-NDBASE_ND | Numeric 1 | This is the number of decimal positions defined for the activity group currency. | AC40.1, AC40.4, AC41.1, AC41.4, BR41.1, BR41.4, BR43.1 |
CGH-DEBIT-TOTALDEBIT_TOTAL | Signed 18.2 | This is the total debit amount for this batch of transactions. The debit amount must equal the credit amount. | AC40.1, AC40.4, AC41.1, AC41.4, BR41.1, BR41.4, BR43.1 |
CGH-CREDIT-TOTALCREDIT_TOTAL | Signed 18.2 | This is the total credit amount for this batch of transactions. The credit amount must equal the debit amount. | AC40.1, AC40.4, AC41.1, AC41.4, BR41.1, BR41.4, BR43.1 |
CGH-UNIT-DEBITSUNIT_DEBITS | Signed 15.2 | This is the total of unit debits. | AC40.1, AC40.4, AC41.1, AC41.4, BR41.1, BR41.4, BR43.1 |
CGH-UNIT-CREDITSUNIT_CREDITS | Signed 15.2 | This is the total of unit credits. | AC40.1, AC40.4, AC41.1, AC41.4, BR41.1, BR41.4, BR43.1 |
CGH-LAST-REC-SEQLAST_REC_SEQ | Numeric 6 | This is the sequence number of the last record processed. | AC40.1, AC40.4, AC41.1, AC41.4, BR41.1, BR41.4, BR43.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 |
|---|---|---|---|---|
CGHSET1 | CONTROL-GROUP | Primary | AC240, AC256, AC290, AC40.1, AC40.3, AC40.4, AC40.6, AC41.1 +6 more | |
CGHSET2 | TRANS-TYPE, CONTROL-GROUP | KeyChange | AC40.1, AC40.3, AC40.4, AC40.6, AC41.1, AC41.3, AC41.4, AC41.6 +3 more |
Relations
One to one (1) — lookups and parents
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Glsystem | GLSYSTEM | Required | CGH-COMPANY → GLS-COMPANY |
One to many (1) — child tables
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Actrans | ACTRANS | CGH-CONTROL-GROUP → ATN-CONTROL-GROUP, → ATN-SEQUENCE-NBR, → ATN-TRAN-CURRENCY, → ATN-OBJ-ID, → ATN-ACTIVITY-GRP |
Programs
Updated by (8)
- AC40.1 Journal Entry (AC only)
- AC40.4 Journal Entry (AC and GL)
- AC41.1 Resource Time Entry (AC only)
- AC41.4 Resource Time Entry (AC and GL)
- AC45.4 Control Group Release
- BR41.1 Contract Adjustment (AC only)
- BR41.4 Contract Adjustment (AC and GL)
- BR43.1 Revenue Adjustment