CAHEADER – Allocation Header
- System
- General Ledger (GL)
- Prefix
CAH- Primary key
COMPANY,ALLOC-NAME,ALLOC-TYPE- Fields
- 46
- Updated by
- 12 programs
- Referenced by
- 66 programs
CAHEADER is the Allocation Header table in Lawson General Ledger (prefix CAH). It is indexed by COMPANY, ALLOC-NAME, ALLOC-TYPE (CAHSET1); alternate indexes: CAHSET2, CAHSET3, CAHSET4, CAHSET5, CAHSET6 and CAHSET7. It is related 1:1 to CAALLOCGRP, GLSYSTEM, GLMASTER and GLCODES and 1:M to CADETAIL, CAHEADERAU and FBHEADER. It is updated by CA10.1, CA10.2, CA10.4, CA10.6, CA10.7, CA15.1, CA15.2, CA190 and 4 more and referenced by AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 and 58 more. The table has 46 fields, 7 indexes and 7 documented relations.
About CAHEADER
The Allocation Header file contains allocation control information used to process allocation detail records.
Fields (46)
Column = COBOL field name without the CAH- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
CAH-COMPANY PKCOMPANY | Numeric 4 | The company number defined the allocations. | CA10.2, CA10.6, GL110, GLCC.1 |
CAH-ALLOC-NAME PKALLOC_NAME | Alpha 12 | The allocation name represents an allocation as defined in CA10.1 (Allocation). | CA10.2, CA10.6, GLCC.1 |
CAH-ALLOC-TYPE PKALLOC_TYPE | Alpha 1 | The allocation type determines where funds are allocated to. The default is Actual. You can select Current Year budget or Next Year budget.
| CA10.2, CA10.6, GLCC.1 |
CAH-ALLOC-TYPE-1ALLOC_TYPE_1 | Derived | This field, used for drill around, displays the Allocation Type field values. | — |
CAH-ALLOCATION-GRPALLOCATION_GRP | Alpha 12 | The allocation group where an allocation is stored. | CA10.2, CA10.6 |
CAH-STEPSTEP | Numeric 3 | This field determines when an allocation detail line will get processed. All lower steps are processed before processing higher steps. 001 999
| CA10.2, CA10.6 |
CAH-DESCRIPTIONDESCRIPTION | Alpha 30 (Lower Case) | The description of the allocation. | CA10.2, CA10.6 |
CAH-OPERATOROPERATOR | Alpha 10 | This field is used to store the login ID of the person who entered the record. | CA10.2, CA10.6 |
CAH-AUTO-ZEROAUTO_ZERO | Alpha 1 | This field is used to determine if amounts are to be zeroed out after processing.
| CA10.2, CA10.6 |
CAH-AUTO-ZERO-1AUTO_ZERO_1 | Derived | This field, used for drill around, displays the Auto Zero field values. | — |
CAH-BEG-PERIODBEG_PERIOD | Numeric 2 | The beginning period you want to post transactions in.
| CA10.2, CA10.6 |
CAH-BEG-YEARBEG_YEAR | Numeric 4 | The beginning year you want to post transactions in. | CA10.2, CA10.6 |
CAH-END-PERIODEND_PERIOD | Numeric 2 | The last period you want to post transactions in.
| CA10.2, CA10.6 |
CAH-END-YEAREND_YEAR | Numeric 4 | The last year you want to post transactions in. | CA10.2, CA10.6 |
CAH-STATUSSTATUS | Numeric 1 | This field indicates the transaction status: Released or Unreleased.
| CA10.1, CA10.2, CA10.7, CA15.1, CA15.2, CA190 |
CAH-POST-PERIODPOST_PERIOD | Alpha 1 Occurs 13 Times ×13 | The periods you want the allocation to be processed in. | CA10.2, CA10.6 |
CAH-DAYDAY | Numeric 2 | The day you want to post transactions. If you leave this field blank, the period end date defined for the company in GL10.1 (Company) defaults. | CA10.2, CA10.6 |
CAH-LP-PERIODLP_PERIOD | Numeric 2 | This is the last-processed period for the allocation. | CA190, CA195, GL500 |
CAH-LP-YEARLP_YEAR | Numeric 4 | This is the last-processed year for the allocation. | CA190, CA195, GL500 |
CAH-MAINT-DATEMAINT_DATE | Numeric 8 (yyyymmdd) | This is the date the allocation was most recently changed. | CA10.1, CA10.2, CA10.4, CA10.6, CA10.7, CA15.1, CA15.2 |
CAH-JE-NBRJE_NBR | Numeric 8 | The journal entry number assigned in GL40.1 (Journal Entry) assigned to the allocation. | CA10.2, CA10.6 |
CAH-JE-TYPEJE_TYPE | Alpha 1 | The type of journal entry associated with the allocation: Normal or Intercompany. | CA10.2, CA10.6 |
CAH-JE-TYPE-1JE_TYPE_1 | Derived | This field, used for drill around, displays the Journal Entry Type field values. | — |
CAH-BKPST-JE-NBRBKPST_JE_NBR | Numeric 8 | This is the journal entry number to be used for back-posting this allocation. | CA15.1, CA15.2, CA190 |
CAH-BKPST-PERIODBKPST_PERIOD | Numeric 2 | The period you want to back-post the allocation to. The period must be open for back-posting in the General Ledger system. | CA15.1, CA15.2, CA190 |
CAH-BKPST-YEARBKPST_YEAR | Numeric 4 | The year you want to back-post the allocation to. | CA15.1, CA15.2, CA190 |
CAH-SOURCE-CODESOURCE_CODE | Alpha 2 | A two character code assigned to a transaction to identify where the transaction was created. | CA10.2, CA10.6 |
CAH-REFERENCEREFERENCE | Alpha 10 (Lower Case) | Reference is a user-defined field used to track transactions. For example, type a purchase order number for audit purposes. | CA10.2, CA10.6 |
CAH-BASE-ZONEBASE_ZONE | Alpha 15 | A zone identifies a group of accounting units that stay in balance when transactions pass between defined zone areas. | CA10.2, CA10.6 |
CAH-BUDGET-NBRBUDGET_NBR | Numeric 3 | If you select Current Year or Next Year Budget in the Type field, type or select the budget number you want to allocate from. The budget must exist in FB20.1 (Period Budget, Rate). | CA10.2, CA10.6 |
CAH-CTRA-AUCTRA_AU | Alpha 15 | You can use a contra account to retain the integrity of your original data. The accounting unit you type here will replace the data in the From Accounting Unit field when you run CA110 (Allocation Calculation). If you use a contra account, the amount will appear on the Journal Entry for audit purposes. For example: If you want to allocate 50 percent from account 41000's balance of $5000, you can use contra account 42000 to allocate $2500 while keeping the integrity of account 41000's original balance. | CA10.2, CA10.6 |
CAH-CTRA-ACCOUNTCTRA_ACCOUNT | Numeric 6 | You can use a contra account to retain the integrity of your original data. The account you type here will replace the data in the From Account field when you run CA110 (Allocation Calculation). If you use a contra account, the amount will appear on the Journal Entry for audit purposes. For example: If you want to allocate 50 percent from account 41000's balance of $5000, you can use contra account 42000 to allocate $25000 while keeping the integrity of account 41000's original balance. | CA10.2, CA10.6 |
CAH-CTRA-SUB-ACCTCTRA_SUB_ACCT | Numeric 4 | You can use a contra subaccount to retain the integrity of you original data. The subaccount you type here will replace the data in the From Subaccount field when you run CA110 (Allocation Calculation). If you use a contra account, the amount will appear on the Journal Entry for audit purposes. For example: If you want to allocate 50 percent from account 41000's balance of $5000, you can use contra account 42000 to allocate $2500 while keeping the integrity of account 41000's original balance. | CA10.2, CA10.6 |
CAH-TOTAL-PCTTOTAL_PCT | Signed 11.4 | This field displays the total percentage for all allocation detail lines. | CA10.1, CA10.4, CA10.6, CA10.7, CA190, CA195 |
CAH-LAST-CMT-SEQLAST_CMT_SEQ | Numeric 4 | This is the sequence number of the last comment for the transaction. | — |
CAH-LAST-LINE-NBRLAST_LINE_NBR | Numeric 6 | This is the number of the last line item added to the transaction. It is used to determine the number for the next line added to the transaction. | CA10.1, CA10.4, CA10.6, CA10.7, CA210 |
CAH-NBR-LINESNBR_LINES | Numeric 6 | This is the number of detail lines. | CA10.1, CA10.4, CA10.6, CA10.7 |
CAH-NBR-CMT-LINESNBR_CMT_LINES | Numeric 6 | This is the number of comment lines for the transaction. | — |
CAH-AUTO-REVAUTO_REV | Alpha 1 | If you select Yes in this field, the Lawson General Ledger Closing program GL199 creates an opposite entry for this transaction in the next period. The default is No. | CA10.2, CA10.6 |
CAH-AUTO-REV-1AUTO_REV_1 | Derived | This field, used for drill around, displays the auto reversal sign. | — |
CAH-JRNL-BOOK-NBRJRNL_BOOK_NBR | Alpha 12 | The journal book assigned to the transaction. | CA10.2, CA10.6 |
CAH-MX-VALUE-APPLYMX_VALUE_APPLY | Alpha 1 | You can select the type of account the activity (from the Activity Management system) applies to. When you post, the program creates transactions in the Activity Management and General Ledger systems.
| CA10.2 |
CAH-MX-VALUEMX_VALUE | Alpha 32 Occurs 3 Times ×3 | This is a transaction matrix value associated with the allocation transaction. You can assign a matrix value for each matrix category assigned to the source code. You can define up to three categories for each source code using GL05.1. | CA10.2, CA10.6 |
CAH-ACTIVITY-APPLYACTIVITY_APPLY | Alpha 1 | This field determines the transaction type applied to the activity. You can select Both Sides of the Allocation, Post To Accounts, and Post From Accounts. When you post, the system creates transaction in the Activity Management and General Ledger systems.
| CA10.2, CA10.6 |
CAH-SEGMENT-APPLYSEGMENT_APPLY | Alpha 1 | This field determines where the user analysis values are applied for an allocation.
| CA10.2 |
CAH-SEGMENT-BLOCKSEGMENT_BLOCK | Alpha 103 | This field identifies the user analysis values included in the transaction. You can either type up to four values or use Define (F6) to open the User Analysis Entry subform. Use this subform to select the user analysis values you want to include in the transaction. If you choose to type values, use commas to separate them. For example: value1,value2,value3,value4 There are three conditions that affect how you can select user analysis values. See the User Analysis Entry form help or the Strategic Ledger procedures manual for additional information. | — |
Indexes (7)
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 |
|---|---|---|---|---|
CAHSET1 | COMPANY, ALLOC-NAME, ALLOC-TYPE | Primary | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +22 more (list truncated in source) | |
CAHSET2 | COMPANY, JE-NBR, JE-TYPE, ALLOC-NAME, ALLOC-TYPE | KeyChange | CA10.2, CA10.6 | |
CAHSET3 | COMPANY, BKPST-JE-NBR, JE-TYPE, ALLOC-NAME, ALLOC-TYPE | KeyChange, Subset | Where BKPST-JE-NBR != Zeroes | CA10.2, CA10.6, CA15.1, CA15.2 |
CAHSET4 | COMPANY, ALLOC-TYPE, ALLOC-NAME | CA10.1, CA10.2, CA10.4, CA10.6, CA10.7, CA110, CA15.1, CA15.2 +2 more | ||
CAHSET5 | COMPANY, STEP, ALLOC-NAME, ALLOC-TYPE | KeyChange | CA15.1, CA215 | |
CAHSET6 | ALLOCATION-GRP, ALLOC-TYPE, COMPANY, ALLOC-NAME | KeyChange | CA00.1, CA00.2, CA110, CA15.2, CA200 | |
CAHSET7 | ALLOCATION-GRP, STEP, COMPANY, ALLOC-NAME, ALLOC-TYPE | KeyChange | CA15.2, CA215 |
Relations
One to one (4) — lookups and parents
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Allocation Grp | CAALLOCGRP | Not Required | CAH-ALLOCATION-GRP → CAG-ALLOCATION-GRP | |
| Company | GLSYSTEM | Required | CAH-COMPANY → GLS-COMPANY | |
| Glmaster | GLMASTER | Not Required | CAH-COMPANY → GLM-COMPANY, CAH-CTRA-AU → GLM-ACCT-UNIT, CAH-CTRA-ACCOUNT → GLM-ACCOUNT, CAH-CTRA-SUB-ACCT → GLM-SUB-ACCOUNT | |
| Source Code | GLCODES | Not Required | CAH-SOURCE-CODE → GCD-SOURCE-CODE |
One to many (3) — child tables
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Alloc Detail | CADETAIL | Delete Restricted | CAH-COMPANY → CAD-COMPANY, CAH-ALLOC-NAME → CAD-ALLOC-NAME, CAH-ALLOC-TYPE → CAD-ALLOC-TYPE, → CAD-LINE-NBR | |
| Caheaderau | CAHEADERAU | CAH-COMPANY → CHA-COMPANY, CAH-ALLOC-NAME → CHA-ALLOC-NAME, CAH-ALLOC-TYPE → CHA-ALLOC-TYPE, → CHA-ACTION, → CHA-DATE, → CHA-TIME, → CHA-UNIQUE-I-D | ||
| Fbheader | FBHEADER | CAH-COMPANY → FBH-COMPANY, CAH-BUDGET-NBR → FBH-BUDGET-NBR, → FBH-FISCAL-YEAR |
Programs
Updated by (12)
- CA10.1 Allocation
- CA10.2 Define Allocation
- CA10.4 Line Copy
- CA10.6 Allocation Copy
- CA10.7 Allocation Detail
- CA15.1 Allocation Control
- CA15.2 Allocation Group Control
- CA190 Allocation Interface
- CA195 Budget Allocation Interface
- CA210 Allocation Edit Listing
- GL110 Company Copy Delete
- GL500 Fiscal Year Change
Referenced by (66)
- 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
- CA05.1 Allocation Code
- CA05.2 Define Allocation Code
- CA110 Allocation Calculation
- CA160 Allocation Code Interface
- CA199 Allocation Closing
- CA200 Allocation Group Listing
- CA215 Allocation Control Listing
- CA240 Allocation Comparison
- 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
- GL70.1 Recurring Journal
- GL70.2 Define Recurring Journal
- GL70.3 Amounts Only
- GL70.6 Recurring Copy
- GL75.1 Recurring Journal Control
- GLCC.1 Print interface for Glp65pd
- 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
- MLIT.1 General Ledger Account Edit