RATOTALS – Ratio Totals

System
General Ledger (GL)
Prefix
RAT
Primary key
FISCAL-YEAR, TOTAL-NAME, ACCT-UNIT
Fields
80
Updated by
128 programs
Referenced by
43 programs

RATOTALS is the Ratio Totals table in Lawson General Ledger (prefix RAT). It is indexed by FISCAL-YEAR, TOTAL-NAME, ACCT-UNIT (RATSET1); alternate indexes: RATSET2, RATSET3, RATSET4 and RATSET5. It is related 1:1 to RWHEADER, GLNAMES, GLSYSTEM, GLCODES, GLCHART, GLCHARTSUM, GLCPYGRP, RWGRPDET and 2 more and 1:M to RWGRPDET, RATOTALS, GLCGCPY, RATOTALAU and RWROWDET. It is updated by AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 and 120 more and referenced by AD120, AD20.1, AD220, FB01.1, FB01.2, FB141, GL292, GL293 and 35 more. The table has 80 fields, 5 indexes and 22 documented relations.

About RATOTALS

This file contains the ratio totals and all information used to define the range for the ratio (company and account ranges). Primary form is RW70.1 (Total Names).

Fields (80)

Column = COBOL field name without the RAT- 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
#RAT-FISCAL-YEAR PK
FISCAL_YEAR
Numeric 4This is the fiscal year for the total.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-TOTAL-NAME PK
TOTAL_NAME
Alpha 10The total name as defined in RW70.1 (Total Names).AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-ACCT-UNIT PK
ACCT_UNIT
Alpha 15The accounting unit is a shorthand notation representing the variable level number. When used in the General Ledger Account Master file, the accounting unit must be defined in the General Ledger Names file as a posting accounting unit.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-FOLDER-NAME SET2
FOLDER_NAME
Alpha 12This is the name of a folder defined in RW01.1 (Folder).AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-HEAD-NAME SET4
HEAD_NAME
Alpha 12Name of total range if ranges not specified on this record.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-DESCRIPTION
DESCRIPTION
Alpha 30 (Lower Case)The description of the total name.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-CALC-DATE
CALC_DATE
Numeric 8 (yyyymmdd)The date amounts were last calculated.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-CALC-TIME
CALC_TIME
Numeric 6 (hhmmss)AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-MAINT-DATE
MAINT_DATE
Numeric 8 (yyyymmdd)The date last changed.RW70.1
#RAT-MAINT-TIME
MAINT_TIME
Numeric 6 (hhmmss)RW70.1
#RAT-TRANS-TYPE
TRANS_TYPE
Alpha 1The transaction type that determines how totals are generated.
  • A Amounts
  • U Units
  • C Acct Currency
  • B Budget Amounts
  • N Budget Units
  • R Rpt Currency 1
  • S Rpt Currency 2
AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-BUDGET-NBR
BUDGET_NBR
Numeric 3This is the budget number if you are calculating a budget type total name.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-CURRENCY-CODE
CURRENCY_CODE
Alpha 5This field contains the company base currency code established in Company (GL10.1 ).AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-DB-BEG-BAL
DB_BEG_BAL
Signed 18.2AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-CR-BEG-BAL
CR_BEG_BAL
Signed 18.2AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-DB-AMOUNT
DB_AMOUNT
Signed 18.2 Occurs 13 Times ×13AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-CR-AMOUNT
CR_AMOUNT
Signed 18.2 Occurs 13 Times ×13AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-ACCT-ND
ACCT_ND
Numeric 1The number of decimals assigned to a particular account as determined by the account currency.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-COMPANY
COMPANY
Numeric 4The company number you are defining total name information for.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-OVD-ACCTUNIT
OVD_ACCTUNIT
Alpha 15 Occurs 4 Times ×4The accounting unit is a shorthand notation representing the variable level number. When used in the General Ledger Account Master file, the accounting unit must be defined in the General Ledger Names file as a posting accounting unit.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-FR-ACCOUNT
FR_ACCOUNT
Numeric 6This field along with the accounting unit and subaccount make up the location (account) where amounts and other account information is stored.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-TH-ACCOUNT
TH_ACCOUNT
Numeric 6This field along with the accounting unit and subaccount make up the location (account) where amounts and other account information is stored.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-FR-SUB-ACCT
FR_SUB_ACCT
Numeric 4This field contains the subaccount from your general ledger chart of accounts that was charged with the amount carried on this record.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-TH-SUB-ACCT
TH_SUB_ACCT
Numeric 4This field contains the subaccount from your general ledger chart of accounts that was charged with the amount carried on this record.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-LEVEL-GROUP
LEVEL_GROUP
Alpha 12This is a group of sequential or nonsequential level ranges as defined in RW40.1 (Level Group).AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-ACCOUNT-GROUP
ACCOUNT_GROUP
Alpha 12This is a group of sequential or nonsequential account ranges as defined in RW40.3 (Account Group).AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-SUB-ACCT-GRP
SUB_ACCT_GRP
Alpha 12This is a group of sequential or nonsequential subaccount ranges as defined in RW40.4 (Subaccount Group).AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-COMPANY-GROUP
COMPANY_GROUP
Alpha 12The company group name as defined in GL11.1 (Company Group).AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-MATRIX-LIST
MATRIX_LIST
Alpha 12The Accounting Unit List is one of the organizational parameter options and is defined in MX10 (List) for object type ACCTU.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-CHART-NAME
CHART_NAME
Alpha 12This is the name you assigned to the chart of accounts when you defined your company structure in the General Ledger system.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-SUMRY-ACCT-ID
SUMRY_ACCT_ID
Numeric 6The summary account name as defined in GL00.1 (Chart of Accounts).AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-ACCOUNT-LIST
ACCOUNT_LIST
Alpha 12The Account List is one of the Account parameter options and is defined in MX10 (List) for object type ACCNT.AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-LEDGER
LEDGER
Alpha 15The name that identifies the strategic ledger. The Ledger information is used to post Strategic ledger data using SL190 (Strategic Ledger Posting) or used for reporting in the OLAP environment using SL87 (Strategic Ledger Data Mart Setup).AC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +52 more (list truncated in source)
#RAT-COMPANY-TO-USE
COMPANY_TO_USE
DerivedThe company number as defined in GL10.1 (Company).
#RAT-CYBTOT
CYBTOT
DerivedThe current year beginning balance total.
#RAT-CPTOT-DR
CPTOT_DR
DerivedThe current period debit total.
#RAT-CPTOT-CR
CPTOT_CR
DerivedThe current period credit total.
#RAT-CPTOT
CPTOT
DerivedThe current period total.
#RAT-CUR-PD-SUM-DR
CUR_PD_SUM_DR
DerivedThe current period summary debit amount.
#RAT-CUR-PD-SUM-CR
CUR_PD_SUM_CR
DerivedThe current period summary credit amount.
#RAT-CYDTOT
CYDTOT
DerivedThe current year-to-date total.
#RAT-CYPTOT1-DR
CYPTOT1_DR
DerivedThe current year period 1 debit total.
#RAT-CYPTOT1-CR
CYPTOT1_CR
DerivedThe current year period 1 credit total.
#RAT-CYPTOT1
CYPTOT1
DerivedThe current year period 1 total.
#RAT-CYPTOT2-DR
CYPTOT2_DR
DerivedThe current year period 2 debit total.
#RAT-CYPTOT2-CR
CYPTOT2_CR
DerivedThe current year period 2 credit total.
#RAT-CYPTOT2
CYPTOT2
DerivedThe current year period 2 total.
#RAT-CYPTOT3-DR
CYPTOT3_DR
DerivedThe current year period 3 debit total.
#RAT-CYPTOT3-CR
CYPTOT3_CR
DerivedThe current year period 3 credit total.
#RAT-CYPTOT3
CYPTOT3
DerivedThe current year period 3 total.
#RAT-CYPTOT4-DR
CYPTOT4_DR
DerivedThe current year period 4 debit total.
#RAT-CYPTOT4-CR
CYPTOT4_CR
DerivedThe current year period 4 credit total.
#RAT-CYPTOT4
CYPTOT4
DerivedThe current year period 4 total.
#RAT-CYPTOT5-DR
CYPTOT5_DR
DerivedThe current year period 5 debit total.
#RAT-CYPTOT5-CR
CYPTOT5_CR
DerivedThe current year period 5 credit total.
#RAT-CYPTOT5
CYPTOT5
DerivedThe current year period 5 total.
#RAT-CYPTOT6-DR
CYPTOT6_DR
DerivedThe current year period 6 debit total.
#RAT-CYPTOT6-CR
CYPTOT6_CR
DerivedThe current year period 6 credit total.
#RAT-CYPTOT6
CYPTOT6
DerivedThe current year period 6 total.
#RAT-CYPTOT7-DR
CYPTOT7_DR
DerivedThe current year period 7 debit total.
#RAT-CYPTOT7-CR
CYPTOT7_CR
DerivedThe current year period 7 credit total.
#RAT-CYPTOT7
CYPTOT7
DerivedThe current year period 7 total.
#RAT-CYPTOT8-DR
CYPTOT8_DR
DerivedThe current year period 8 debit total.
#RAT-CYPTOT8-CR
CYPTOT8_CR
DerivedThe current year period 8 credit total.
#RAT-CYPTOT8
CYPTOT8
DerivedThe current year period 8 total.
#RAT-CYPTOT9-DR
CYPTOT9_DR
DerivedThe current year period 9 debit total.
#RAT-CYPTOT9-CR
CYPTOT9_CR
DerivedThe current year period 9 credit total.
#RAT-CYPTOT9
CYPTOT9
DerivedThe current year period 9 total.
#RAT-CYPTOT10-DR
CYPTOT10_DR
DerivedThe current year period 10 debit total.
#RAT-CYPTOT10-CR
CYPTOT10_CR
DerivedThe current year period 10 credit total.
#RAT-CYPTOT10
CYPTOT10
DerivedThe current year period 10 total.
#RAT-CYPTOT11-DR
CYPTOT11_DR
DerivedThe current year period 11 debit total.
#RAT-CYPTOT11-CR
CYPTOT11_CR
DerivedThe current year period 11 credit total.
#RAT-CYPTOT11
CYPTOT11
DerivedThe current year period 11 total.
#RAT-CYPTOT12-DR
CYPTOT12_DR
DerivedThe current year period 12 debit total.
#RAT-CYPTOT12-CR
CYPTOT12_CR
DerivedThe current year period 12 credit total.
#RAT-CYPTOT12
CYPTOT12
DerivedThe current year period 12 total.
#RAT-CYPTOT13-DR
CYPTOT13_DR
DerivedThe current year period 13 debit total.
#RAT-CYPTOT13-CR
CYPTOT13_CR
DerivedThe current year period 13 credit total.
#RAT-CYPTOT13
CYPTOT13
DerivedThe current year period 13 total.

Indexes (5)

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
RATSET1
  1. FISCAL-YEAR
  2. TOTAL-NAME
  3. ACCT-UNIT
PrimaryAC121, AC123, AC130, AC20.1, AC20.2, AC20.3, AC20.4, AC20.5 +22 more (list truncated in source)
RATSET2
  1. FOLDER-NAME
  2. FISCAL-YEAR
  3. TOTAL-NAME
  4. ACCT-UNIT
KeyChangeRW01.1, RW01.2, RW201, RW270
RATSET3
  1. TOTAL-NAME
  2. FISCAL-YEAR
  3. ACCT-UNIT
AD120, AD20.1, AD220, RW230, RW270, RW30.1, RW50.1
RATSET4
  1. HEAD-NAME
  2. TOTAL-NAME
  3. FISCAL-YEAR
  4. ACCT-UNIT
KeyChangeRW60.2
RATSET5
  1. FISCAL-YEAR
  2. TOTAL-NAME
SubsetWhere ACCT-UNIT = SpacesRW270, RW70.1, RW70.2

Relations

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

One to one (15) — lookups and parents

RelationTableRulesConditionField map
Account GroupRWHEADERNot RequiredValid When RAT-ACCOUNT-GROUP != Spaces
"G"RWH-HEAD-TYPE
RAT-ACCOUNT-GROUPRWH-HEAD-NAME
"A"RWH-RECORD-TYPE
Acct UnitGLNAMESNot Required
RAT-COMPANYGLN-COMPANY
RAT-ACCT-UNITGLN-ACCT-UNIT
CompanyGLSYSTEMNot Required
RAT-COMPANYGLS-COMPANY
FolderGLCODESRequired
"F"GCD-RECORD-TYPE
RAT-FOLDER-NAMEGCD-FOLDER-NAME
SpacesGCD-PROCESS-GROUP
SpacesGCD-SYSTEM
ZeroesGCD-COMPANY
GlchartGLCHARTNot Required
RAT-CHART-NAMEGCH-CHART-NAME
GlchartsumGLCHARTSUMNot Required
RAT-CHART-NAMEGCS-CHART-NAME
RAT-SUMRY-ACCT-IDGCS-SUMRY-ACCT-ID
GlcpygrpGLCPYGRPNot Required
RAT-COMPANY-GROUPGCG-COMPANY-GROUP
Level GroupRWHEADERNot RequiredValid When RAT-LEVEL-GROUP != Spaces
"G"RWH-HEAD-TYPE
RAT-LEVEL-GROUPRWH-HEAD-NAME
"L"RWH-RECORD-TYPE
Level Group CoRWGRPDETNot Required
"L"RGD-RECORD-TYPE
RAT-LEVEL-GROUPRGD-HEAD-NAME
1RGD-RANGE-NUMBER
Lvl Grp Tot RnRWGRPDETNot Required
"L"RGD-RECORD-TYPE
RRD-LEVEL-GROUPRGD-HEAD-NAME
1RGD-RANGE-NUMBER
MxlisthdrMXLISTHDRNot Required
"ACCTU"MLH-OBJ-TYPE
RAT-MATRIX-LISTMLH-MATRIX-LIST
Ovd Acct UnitGLNAMESNot Required
RAT-COMPANYGLN-COMPANY
RAT-OVD-ACCTUNITGLN-ACCT-UNIT
Subacct GroupRWHEADERNot RequiredValid When RAT-SUB-ACCT-GRP != Spaces
"G"RWH-HEAD-TYPE
RAT-SUB-ACCT-GRPRWH-HEAD-NAME
"S"RWH-RECORD-TYPE
Total RangeRWHEADERNot Required
"T"RWH-HEAD-TYPE
RAT-HEAD-NAMERWH-HEAD-NAME
"R"RWH-RECORD-TYPE
Total Range CoRWROWDETNot Required
"R"RRD-RECORD-TYPE
RAT-HEAD-NAMERRD-HEAD-NAME
1RRD-LINE-NBR

One to many (7) — child tables

RelationTableRulesConditionField map
Acct Grp DetRWGRPDETValid When RAT-ACCOUNT-GROUP != Spaces
"A"RGD-RECORD-TYPE
RAT-ACCOUNT-GROUPRGD-HEAD-NAME
RGD-RANGE-NUMBER
Acct Unit AmtsRATOTALSDelete Cascades
RAT-FISCAL-YEARRAT-FISCAL-YEAR
RAT-TOTAL-NAMERAT-TOTAL-NAME
RAT-ACCT-UNIT
GlcgcpyGLCGCPY
RAT-COMPANY-GROUPGCC-COMPANY-GROUP
GCC-COMPANY
Lvl Grp DetRWGRPDETValid When RAT-LEVEL-GROUP != Spaces
"L"RGD-RECORD-TYPE
RAT-LEVEL-GROUPRGD-HEAD-NAME
RGD-RANGE-NUMBER
RatotalauRATOTALAU
RAT-TOTAL-NAMERTA-TOTAL-NAME
RAT-FISCAL-YEARRTA-FISCAL-YEAR
RTA-ACTION
RTA-DATE
RTA-TIME
RTA-UNIQUE-I-D
Sub Grp DetRWGRPDETValid When RAT-SUB-ACCT-GRP != Spaces
"S"RGD-RECORD-TYPE
RAT-SUB-ACCT-GRPRGD-HEAD-NAME
RGD-RANGE-NUMBER
Tot Rng DetRWROWDETValid When RRD- = RAT-
"R"RRD-RECORD-TYPE
RAT-HEAD-NAMERRD-HEAD-NAME
RRD-LINE-NBR

Programs

Updated by (128)

Referenced by (43)