CADETAIL – Allocation Detail

System
General Ledger (GL)
Prefix
CAD
Primary key
COMPANY, ALLOC-NAME, ALLOC-TYPE, LINE-NBR
Fields
44
Updated by
9 programs
Referenced by
66 programs

CADETAIL is the Allocation Detail table in Lawson General Ledger (prefix CAD). It is indexed by COMPANY, ALLOC-NAME, ALLOC-TYPE, LINE-NBR (CADSET1); alternate indexes: CADSET2, CADSET3 and CADSET4. It is related 1:1 to ACHEADER, CAHEADER, GLSYSTEM, CMPUTE, GLCHARTDTL, GLCHART, GLCHARTSUM, MXLISTHDR and 1 more and 1:M to RWGRPDET, ACDETAIL and CADETAILAU. It is updated by CA10.1, CA10.2, CA10.4, CA10.6, CA10.7, CA190, CA195, CA210 and 1 more and referenced by AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 and 58 more. The table has 44 fields, 4 indexes and 18 documented relations.

About CADETAIL

The Allocation Detail file contains the allocation detail information defined that is used to allocate amounts from a company accounting structure to another company accounting structure.

Fields (44)

Column = COBOL field name without the CAD- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored. PK = primary key (present in every index); SETn = leading/alternate key of that index.

Field / columnTypeDescription & valuesUpdated by
#CAD-COMPANY PK
COMPANY
Numeric 4The company number related to the allocation detail line.CA10.1, CA10.4, CA10.7, CA210, GL110, RW298
#CAD-ALLOC-NAME PK
ALLOC_NAME
Alpha 12The allocation name represents an allocation as defined in CA10.1 (Allocation).CA10.1, CA10.4, CA10.6, CA10.7, CA210, RW298
#CAD-ALLOC-TYPE PK
ALLOC_TYPE
Alpha 1This field defines where the allocation will take place. The values are:
  • A Actuals
  • C Currency Year Budget
  • N Next Year Budget
CA10.1, CA10.4, CA10.6, CA10.7, CA210, RW298
#CAD-ALLOC-TYPE-1
ALLOC_TYPE_1
DerivedThis field, used for drill around, displays the Allocation Type field values.—
#CAD-LINE-NBR PK
LINE_NBR
Numeric 6This field contains the allocation detail line number.CA10.1, CA10.4, CA10.7, CA15.1, CA15.2, CA210, RW298
#CAD-ALLOCATION-GRP SET4
ALLOCATION_GRP
Alpha 12The allocation group where an allocation is stored.CA10.1, CA10.2, CA10.4, CA10.6, CA10.7, CA210
#CAD-STEP SET2 SET3 SET4
STEP
Numeric 3This field determines when an allocation detail line will get processed. All lower steps are processed before processing higher steps.CA10.1, CA10.2, CA10.4, CA10.6, CA10.7, CA210
#CAD-TRANS-TYPE
TRANS_TYPE
Alpha 1The allocation type for each line. The default is Amount. To allocate units, the Post From and Post To accounts must allow units. You can verify this in GL20.1 (Chart of Accounts).
  • A Amounts
  • U Units
CA10.1, CA10.6, CA10.7, CA210
#CAD-TRANS-TYPE-1
TRANS_TYPE_1
DerivedThis field, used for drill around, displays the Transaction Type field values.—
#CAD-ALLOC-PERCENT
ALLOC_PERCENT
Signed 7.4The amount to be allocated. The percentage you define multiplied by the From Company account balance = the amount allocated. If you leave this field blank, 100 percent defaults.CA10.1, CA10.7, CA190, CA195, CA210
#CAD-AUTO-REV
AUTO_REV
Alpha 1If you select Yes in this field, GL 199 (Period Closing) creates an opposite entry for this transaction in the next period. The default is No.
  • Y Yes
  • N No
CA10.1, CA10.6, CA10.7, CA210
#CAD-AUTO-REV-1
AUTO_REV_1
DerivedThis field, used for drill around, displays the auto reversal sign.—
#CAD-ACTIVITY
ACTIVITY
Alpha 15The activity associated with the allocation. An activity is defined in Project Accounting (AC10.1)CA10.1, CA10.6, CA10.7, CA210
#CAD-ACCT-CATEGORY
ACCT_CATEGORY
Alpha 5The account category associated with the allocation. The Account category must exist in Activity Management and must be valid for the activity.CA10.1, CA10.4, CA10.6, CA10.7, CA210
#CAD-PT-COMPANY
PT_COMPANY
Numeric 4The company number to which the amounts are allocated. If you select a post-to company and accounting unit, leave the Allocation Code field blank.CA10.1, CA10.4, CA10.7, CA210, GL110
#CAD-PT-ACCT-UNIT
PT_ACCT_UNIT
Alpha 15The accounting unit to which the amounts are allocated If you select a post-to company and accounting unit, leave the Allocation Code field blank.CA10.1, CA10.7, CA210
#CAD-PT-ALLOC-CODE
PT_ALLOC_CODE
Alpha 12The allocation code used to allocate to multiple accounting units. You cannot use an allocation code with a compute statement.CA10.1, CA10.7, CA110, CA210
#CAD-PT-ACCOUNT
PT_ACCOUNT
Numeric 6The account number to which amounts are allocated. If you select an override account range and an error occurs when you run CA110 (Allocation Calculation), this account defaults. If this account is invalid, the system uses the company error suspense account.CA10.1, CA10.7, CA210
#CAD-PT-SUB-ACCT
PT_SUB_ACCT
Numeric 4The subaccount number to which amounts are allocated. If you select an override subaccount range and an error occurs when you run CA110 (Allocation Calculation), this subaccount defaults. If this subaccount is invalid, the system uses the company error suspense account.CA10.1, CA10.7, CA210
#CAD-PT-DETAIL-OPT
PT_DETAIL_OPT
Alpha 1Determines the Accounting Unit and Account allocation detail on the Post to side. The default is Consolidate. Select one of the following Post To options: Consolidate creates one transaction line for each variable in the From Accounting Unit and Account fields. Level Detail creates as many transaction lines as there are unique variable levels in the override information. The transaction contains the From Account and From Subaccount fields. Account Detail creates as many transaction lines as there are unique accounts and subaccounts in the override information. The transaction contains the To side accounting unit. Full Detail creates as many transaction lines as there are unique accounting unit, account, and subaccount combinations in the override information.
  • C Consolidate
  • L Level Detail
  • A Acct Detail
  • D Full Detail
CA10.1, CA10.7, CA210
#CAD-PT-DET-OPT-1
PT_DET_OPT_1
DerivedThis field, used for drill around, displays the Posting-To Detail Option field values.—
#CAD-PF-ACCT-UNIT
PF_ACCT_UNIT
Alpha 15The accounting unit from which the amounts are allocated. If you select override accounting unit information, the program overrides this field when determining the allocated amount.CA10.1, CA10.7, CA210
#CAD-PF-ACCOUNT
PF_ACCOUNT
Numeric 6The account number from which the amounts are allocated. If you select override account information, the program overrides this field when determining the allocated amount.CA10.1, CA10.7, CA210
#CAD-PF-SUB-ACCT
PF_SUB_ACCT
Numeric 4The subaccount number from which the amounts are allocated. If you select override subaccounts or a subaccount group, the program overrides this subaccount when determining the allocated amount.CA10.1, CA10.7, CA210
#CAD-PF-DETAIL-OPT
PF_DETAIL_OPT
Alpha 1The allocation amount that is created when you post. The default is Consolidate. Select one of the following Post From options: Consolidate creates one transaction line for each variable level in the From Accounting Unit and Account fields. Level Detail creates as many transaction lines as there are unique variable levels for the From Accounting Unit override fields. The transaction uses the account and subaccount in the From detail line. Account Detail creates as many transaction lines as there are unique accounts and subaccounts in the override information. The transaction uses the accounting unit on the From detail line. Full Detail creates as many transaction lines as there are unique accounting unit, account, and subaccount combinations in the override information.
  • C Consolidate
  • L Level Detail
  • A Acct Detail
  • D Full Detail
CA10.1, CA10.7, CA210
#CAD-PF-DET-OPT-1
PF_DET_OPT_1
DerivedThis field, used for drill around, displays the Posting-From Detail Option field values.—
#CAD-COMPUTE-NAME
COMPUTE_NAME
Alpha 12The compute statement used to determine the percent allocated. You cannot select a compute statement if you selected an allocation code.CA10.1, CA10.7, CA210
#CAD-ACCT-UNIT
ACCT_UNIT
Alpha 15 Occurs 3 Times ×3The override accounting unit.CA10.1, CA10.7, CA210
#CAD-FR-ACCOUNT
FR_ACCOUNT
Numeric 6The override From account range If you select an account range, leave the Account Group field blank.CA10.1, CA10.7, CA210
#CAD-TH-ACCOUNT
TH_ACCOUNT
Numeric 6The override Through account range. If you leave this field blank, the from value defaults.CA10.1, CA10.7, CA210
#CAD-FR-SUB-ACCT
FR_SUB_ACCT
Numeric 4The override From subaccount range. You cannot select a subaccount range and a subaccount group.CA10.1, CA10.7, CA210
#CAD-TH-SUB-ACCT
TH_SUB_ACCT
Numeric 4The override through subaccount range. You cannot select a subaccount range and a subaccount group.CA10.1, CA10.7, CA210
#CAD-LEVEL-GROUP
LEVEL_GROUP
Alpha 12The override level group.CA10.1, CA10.7, CA210
#CAD-ACCOUNT-GROUP
ACCOUNT_GROUP
Alpha 12The override account group.CA10.1, CA10.7, CA210
#CAD-SUB-ACCT-GRP
SUB_ACCT_GRP
Alpha 12The override subaccount group. You cannot select a subaccount group and an override subaccount range.CA10.1, CA10.7, CA210
#CAD-JE-DESC
JE_DESC
Alpha 30You can type a journal entry description that identifies what journal entry number the allocation will post to.CA10.1, CA10.6, CA10.7, CA210
#CAD-MATRIX-LIST
MATRIX_LIST
Alpha 12The override accounting unit list.CA10.1, CA10.7, CA210
#CAD-CHART-NAME
CHART_NAME
Alpha 12The chart of accounts name. If you select a chart of accounts, select a summary account.CA10.1, CA10.7, CA210
#CAD-SUMRY-ACCT-ID
SUMRY_ACCT_ID
Numeric 6The identifier for the summary account.CA10.1, CA10.7, CA210
#CAD-SEGMENT-BLOCK
SEGMENT_BLOCK
Alpha 103This 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.CA10.1, CA10.7, CA210
#CAD-ACCOUNT-LIST
ACCOUNT_LIST
Alpha 12The override account List.CA10.1, CA10.7, CA210
#CAD-POOL-ACCT-UNIT
POOL_ACCT_UNIT
Alpha 15 Occurs 4 Times ×4The pool accounting unit can be used with a compute data name, such as CPAMT, when the source accounting unit amount is different than the post from accounting unit.CA10.1, CA10.7, CA210
#CAD-POOL-AU-LIST
POOL_AU_LIST
Alpha 12The pool accounting unit list can be used with a compute data name, such as CPAMT, when the source amount account units are different than the post from accounting units..CA10.1, CA10.7, CA210
#CAD-POOL-LVL-GRP
POOL_LVL_GRP
Alpha 12The pool level group can be used with a compute data name, such as CPAMT, when the source accounting units are different that the post from accounting units.CA10.1, CA10.7, CA210

Indexes (4)

Keys are listed in index order; ↓ marks a descending key. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
CADSET1
  1. COMPANY
  2. ALLOC-NAME
  3. ALLOC-TYPE
  4. LINE-NBR
PrimaryAP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +22 more (list truncated in source)
CADSET2
  1. COMPANY
  2. ALLOC-TYPE
  3. STEP
  4. ALLOC-NAME
  5. LINE-NBR
KeyChangeCA110
CADSET3
  1. COMPANY
  2. ALLOC-TYPE
  3. ALLOC-NAME
  4. STEP
  5. LINE-NBR
KeyChangeCA110
CADSET4
  1. ALLOCATION-GRP
  2. COMPANY
  3. ALLOC-TYPE
  4. STEP
  5. ALLOC-NAME
  6. LINE-NBR
KeyChangeCA110, CA190

Relations

Relationship map — 1:1 lookups/parents on the left, 1:M children on the right (up to 14 each)
ACHEADERCAHEADERGLSYSTEMCMPUTEGLCHARTDTLGLCHARTGLCHARTSUMMXLISTHDRGLNAMESRWGRPDETACDETAILCADETAILAUCADETAIL

One to one (13) — lookups and parents

RelationTableRulesConditionField map
All Cod HdrACHEADERNot Required
CAD-PT-ALLOC-CODE→ALH-ALLOC-CODE
AllocationCAHEADERRequired
CAD-COMPANY→CAH-COMPANY
CAD-ALLOC-NAME→CAH-ALLOC-NAME
CAD-ALLOC-TYPE→CAH-ALLOC-TYPE
CompanyGLSYSTEMRequired
CAD-COMPANY→GLS-COMPANY
ComputeCMPUTENot Required
CAD-COMPUTE-NAME→CMP-COMPUTE-NAME
From Chart DtlGLCHARTDTLNot Required
GLS-CHART-NAME→GDT-CHART-NAME
CAD-PF-ACCOUNT→GDT-ACCOUNT
CAD-PF-SUB-ACCT→GDT-SUB-ACCOUNT
GlchartGLCHARTNot Required
CAD-CHART-NAME→GCH-CHART-NAME
GlchartsumGLCHARTSUMNot Required
CAD-CHART-NAME→GCS-CHART-NAME
CAD-SUMRY-ACCT-ID→GCS-SUMRY-ACCT-ID
MxlisthdrMXLISTHDRNot Required
"ACCTU"→MLH-OBJ-TYPE
CAD-MATRIX-LIST→MLH-MATRIX-LIST
Post Fr AuGLNAMESRequired
CAD-COMPANY→GLN-COMPANY
CAD-PF-ACCT-UNIT→GLN-ACCT-UNIT
Post To AuGLNAMESNot Required
CAD-PT-COMPANY→GLN-COMPANY
CAD-PT-ACCT-UNIT→GLN-ACCT-UNIT
Post To CompGLSYSTEMNot Required
CAD-PT-COMPANY→GLS-COMPANY
Pst To CompanyGLSYSTEMNot Required
CAD-PT-COMPANY→GLS-COMPANY
To Chart DtlGLCHARTDTLNot Required
GLS-CHART-NAME→GDT-CHART-NAME
CAD-PT-ACCOUNT→GDT-ACCOUNT
CAD-PT-SUB-ACCT→GDT-SUB-ACCOUNT

One to many (5) — child tables

RelationTableRulesConditionField map
Acct Grp DetRWGRPDET
"A"→RGD-RECORD-TYPE
CAD-ACCOUNT-GROUP→RGD-HEAD-NAME
—→RGD-RANGE-NUMBER
All Cod DetACDETAIL
CAD-PT-ALLOC-CODE→ALD-ALLOC-CODE
—→ALD-COMPANY
—→ALD-ACCT-UNIT
CadetailauCADETAILAU
CAD-COMPANY→CIT-COMPANY
CAD-ALLOC-NAME→CIT-ALLOC-NAME
CAD-ALLOC-TYPE→CIT-ALLOC-TYPE
CAD-LINE-NBR→CIT-LINE-NBR
—→CIT-ACTION
—→CIT-DATE
—→CIT-TIME
—→CIT-UNIQUE-I-D
Lvl Grp DetRWGRPDET
"L"→RGD-RECORD-TYPE
CAD-LEVEL-GROUP→RGD-HEAD-NAME
—→RGD-RANGE-NUMBER
Sub Grp DetRWGRPDET
"S"→RGD-RECORD-TYPE
CAD-SUB-ACCT-GRP→RGD-HEAD-NAME
—→RGD-RANGE-NUMBER

Programs

Updated by (9)

Referenced by (66)