GLTWHDR – GL Transaction Writer Header

System
General Ledger (GL)
Prefix
GWH
Primary key
TW-NAME
Fields
30
Updated by
3 programs
Referenced by
1 program

GLTWHDR is the GL Transaction Writer Header table in Lawson General Ledger (prefix GWH). It is indexed by TW-NAME (GWHSET1); alternate indexes: GWHSET2. It is related 1:1 to GLCODES, GLCHART, GLCHARTSUM, GLNAMES, GLSYSTEM, MXLISTHDR and MXOBJCAT and 1:M to GLTWLAYOUT and GLTWSEL. It is updated by GL256, GL55.1 and GL55.2 and referenced by GL255. The table has 30 fields, 2 indexes and 9 documented relations.

About GLTWHDR

The General Ledger Transaction Writer file contains report parameters defined in GL55.1 (Transaction Writer) and inputs the parameters into GL256 (Transaction Writer Report) to process the report.

Fields (30)

Column = COBOL field name without the GWH- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.

Field / columnTypeDescription & valuesUpdated by
GWH-TW-NAME PK
TW_NAME
Alpha 12The name that identifies the report.GL55.1, GL55.2
GWH-COMPLETE-FLAG
COMPLETE_FLAG
Alpha 1Indicates if the record is complete.
  • Y Complete
  • N Incomplete
GL55.1
GWH-FOLDER-NAME
FOLDER_NAME
Alpha 12This is the name of a folder. Folders are defined in RW01.1 (Folder).GL55.1, GL55.2
GWH-DESCRIPTION
DESCRIPTION
Alpha 30 (Lower Case)The transaction writer report description.GL55.1, GL55.2
GWH-COLM-SPACING
COLM_SPACING
Numeric 2The default value used for creating spaces between columns. Valid values are 0-99.GL55.1
GWH-COLM-HEAD-OPT
COLM_HEAD_OPT
Alpha 1Determines whether the two column heading lines are controlled manually or by the system (automatic).
  • A Automatic
  • M Manual
GL55.1
GWH-CSV-OUTPUT
CSV_OUTPUT
Alpha 1A No value creates a 132-character wide report with up to two lines of detail per transaction. A Yes value creates a CSV file with two lines of detail strung into one line per transaction. The formatted heading line will be the first line of the CSV file.GL55.1
GWH-SEARCH-METHOD
SEARCH_METHOD
Alpha 1The method used for transaction selection. S (System Control) enables the program to choose the best path and file based on the entered parameters. A (Account) uses the company, accounting unit, and account parameters. Only use this method if there are few accounts to be considered. C (Analysis Codes) uses analysis codes to select transactions to be included. H (Journal Header) uses the journal header file to select transactions to be included.
  • S System Controlled
  • A Account
  • C User Attributes
  • H Journal Header
GL55.1
GWH-LAST-RUN-DATE
LAST_RUN_DATE
Numeric 8 (yyyymmdd)The last date the record was processed.GL256, GL55.1, GL55.2
GWH-LAST-RUN-TIME
LAST_RUN_TIME
Numeric 6 (hhmmss)The last time the record was processed.GL256, GL55.1, GL55.2
GWH-COMPANY
COMPANY
Numeric 4The company number as defined in GL10.1 (Company).GL55.1
GWH-ACCT-UNIT
ACCT_UNIT
Alpha 15The valid accounting unit used in conjunction with the company field.GL55.1
GWH-COMPANY-GROUP
COMPANY_GROUP
Alpha 12A valid company group. All accounting units within each of the companies in the group are included.GL55.1
GWH-MATRIX-LIST
MATRIX_LIST
Alpha 12The Accounting unit list is one of the organizational parameter options as defined in MX10 (List) for object type ACCTU.GL55.1
GWH-FR-ACCOUNT
FR_ACCOUNT
Numeric 6The beginning account for a range of accounts.GL55.1
GWH-TH-ACCOUNT
TH_ACCOUNT
Numeric 6The ending account for a range of accounts.GL55.1
GWH-ACCT-GROUP
ACCT_GROUP
Alpha 12An account group as defined in RW40.3 (Account Group).GL55.1
GWH-CHART-NAME
CHART_NAME
Alpha 12The name assigned to the chart of accounts when you defined your company structure in the General Ledger system.GL55.1
GWH-SUMMARY-ACCT
SUMMARY_ACCT
Alpha 12The summary account used in conjunction with the chart name.GL55.1
GWH-FR-SUB-ACCT
FR_SUB_ACCT
Numeric 4The beginning subaccount for a range of subaccounts.GL55.1
GWH-TH-SUB-ACCT
TH_SUB_ACCT
Numeric 4The ending subaccount for a range of subaccounts.GL55.1
GWH-SUB-ACCT-GRP
SUB_ACCT_GRP
Alpha 12A subaccount group as defined in RW40.4 (Subaccount Group).GL55.1
GWH-LAST-SEQ-NBR
LAST_SEQ_NBR
Numeric 6The last transaction sequence number.GL55.1
GWH-SORT-MX-CAT
SORT_MX_CAT
Alpha 12 Occurs 8 Times ×8There are up to eight matrix attributes for sorting the selected objects. It does not have to be a selection category to be a sort category. The sort is in ascending order.GL55.1
GWH-HEAD-LAYOUT-1
HEAD_LAYOUT_1
Alpha 132 (Lower Case)The Header Layout line one.GL55.1
GWH-HEAD-LAYOUT-2
HEAD_LAYOUT_2
Alpha 132 (Lower Case)The header layout line two.GL55.1
GWH-CURRENCY-CODE
CURRENCY_CODE
Alpha 5This field contains the company base currency code established in Company (GL10.1 ).GL55.1
GWH-ACCOUNT-LIST
ACCOUNT_LIST
Alpha 12The Account List is one of the Account parameter options as defined in MX10 (List) for object type ACCNT.GL55.1
GWH-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).
GWH-LEVEL-GROUP
LEVEL_GROUP
Alpha 12The Level Group is one of the organizational parameter options as defined in RW40.1 (Level Group).GL55.1

Indexes (2)

Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
GWHSET1TW-NAMEPrimaryGL255, GL256, GL55.1, GL55.2
GWHSET2FOLDER-NAME, TW-NAMEKeyChangeGL255

Relations

One to one (7) — lookups and parents

RelationTableRulesConditionField map
FolderGLCODESRequired"F"GCD-RECORD-TYPE, GWH-FOLDER-NAMEGCD-FOLDER-NAME, SpacesGCD-PROCESS-GROUP, SpacesGCD-SYSTEM, ZeroesGCD-COMPANY
GlchartGLCHARTNot RequiredGWH-CHART-NAMEGCH-CHART-NAME
GlchartsumGLCHARTSUMNot RequiredGWH-CHART-NAMEGCS-CHART-NAME, GWH-SUMMARY-ACCTGCS-SUMMARY-ACCT
GlnamesGLNAMESNot RequiredGWH-COMPANYGLN-COMPANY, GWH-ACCT-UNITGLN-ACCT-UNIT
GlsystemGLSYSTEMNot RequiredGWH-COMPANYGLS-COMPANY
MxlisthdrMXLISTHDRNot Required"ACCTU"MLH-OBJ-TYPE, GWH-MATRIX-LISTMLH-MATRIX-LIST
MxobjcatMXOBJCATNot Required"GLTRN"MOC-OBJ-TYPE, GWH-SORT-MX-CATMOC-MATRIX-CAT

One to many (2) — child tables

RelationTableRulesConditionField map
GltwlayoutGLTWLAYOUTDelete CascadesGWH-TW-NAMEGWL-TW-NAME, GWL-LINE, GWL-COLM-NBR
GltwselGLTWSELDelete CascadesGWH-TW-NAMEGWS-TW-NAME, GWS-OR-GROUP, GWS-MATRIX-CAT, GWS-SEQ-NUMBER

Programs

Updated by (3)

Referenced by (1)