ACHEADER – Cost Allocation Header
- System
- General Ledger (GL)
- Prefix
ALH- Primary key
ALLOC-CODE- Fields
- 4
- Updated by
- 3 programs
- Referenced by
- 67 programs
ACHEADER is the Cost Allocation Header table in Lawson General Ledger (prefix ALH). It is indexed by ALLOC-CODE (ALHSET1). It is related 1:1 to GLSYSTEM and 1:M to ACDETAIL and ACHEADERAU. It is updated by CA05.1, CA05.2 and CA160 and referenced by AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 and 59 more. The table has 4 fields, 1 index and 3 documented relations.
About ACHEADER
This file contains the allocation code header information.
Fields (4)
Column = COBOL field name without the ALH- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
ALH-ALLOC-CODE PKALLOC_CODE | Alpha 12 | The allocation code name as defined in CA05.1 (Allocation Code). | CA05.1, CA05.2, CA160 |
ALH-DESCRIPTIONDESCRIPTION | Alpha 30 (Lower Case) | The description of the allocation code. | CA05.2, CA160 |
ALH-TOTAL-VALUESTOTAL_VALUES | Numeric 13 | The total of all the values entered on the detail lines. | CA05.1, CA160 |
ALH-COMPANYCOMPANY | Numeric 4 | The company number assigned to an allocation code. The field is derived from the detail line company. If more than one company is represented in the detail, the value will not be populated. | CA05.1, CA160 |
Indexes (1)
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 |
|---|---|---|---|---|
ALHSET1 | ALLOC-CODE | Primary | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +22 more (list truncated in source) |
Relations
One to one (1) — lookups and parents
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Company | GLSYSTEM | Not Required | ALH-COMPANY → GLS-COMPANY |
One to many (2) — child tables
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Acdetail | ACDETAIL | Delete Cascades | ALH-ALLOC-CODE → ALD-ALLOC-CODE, → ALD-COMPANY, → ALD-ACCT-UNIT | |
| Acheaderau | ACHEADERAU | ALH-ALLOC-CODE → AHA-ALLOC-CODE, → AHA-ACTION, → AHA-DATE, → AHA-TIME, → AHA-UNIQUE-I-D |
Programs
Updated by (3)
Referenced by (67)
- AP125 Batch Release
- AP126 Mass Invoice Release
- 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.2 Distribution Adjustments
- AP30.4 Invoice Cancel
- CA00.1 Allocation Group
- CA00.2 Allocation Groups
- CA10.1 Allocation
- CA10.2 Define Allocation
- CA10.4 Line Copy
- CA10.6 Allocation Copy
- CA10.7 Allocation Detail
- CA110 Allocation Calculation
- CA15.1 Allocation Control
- CA15.2 Allocation Group Control
- CA205 Allocation Code Listing
- GL110 Company Copy Delete
- GL145 Journal Entry Hold Release
- GL146 Batch Journal Control
- GL148 Zone Rebalancing
- GL167 Balance Interface
- GL170 Recurring Journal Interface
- GL190 Journal Posting
- GL191 Currency Revaluation
- GL196 Report Currency Translation
- GL197 Period, Year End GL Commitments Processing
- GL199 Period Closing
- GL300 General Ledger History Delete
- GL40.1 Journal Entry
- GL40.2 Define Journal
- GL40.3 Speed Entry
- GL40.6 Journal Copy
- GL40.7 Totals
- GL40.8 Journal Entry
- GL41.4 Workflow Journal Entry Update
- GL44.1 Report Currency Entry
- GL45.1 Journal Control
- GL500 Fiscal Year Change
- GL70.1 Recurring Journal
- GL70.2 Define Recurring Journal
- GL70.3 Amounts Only
- GL70.6 Recurring Copy
- GL75.1 Recurring Journal Control
- IFGT.1 GLTRANS Interface
- 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
- MA70.1 Invoice Unmatch
- MA75.1 PO Invoice Cancel
- MAI1.1 Invoke for MAMATCH Object