GLSRCCODE – General Ledger Source Code

System
General Ledger Setup (IF)
Prefix
GSR
Primary key
SOURCE-CODE
Fields
15
Updated by
7 programs
Referenced by
82 programs

GLSRCCODE is the General Ledger Source Code table in Lawson General Ledger Setup (prefix GSR). It is indexed by SOURCE-CODE (GSRSET1). It is related 1:1 to MXCATDEF and GLSCCAT and 1:M to GLSCCAT. It is updated by GL05.1, GL05.2, GL05.3, GL105, GL106, GL167 and ML167 and referenced by AC145, AC169, AC190, AC197, AC198, AC256, AC45.1, AC54.1 and 74 more. The table has 15 fields, 1 index and 7 documented relations.

About GLSRCCODE

This file contains the Lawson and user-defined source codes defined in GL05.1 (Source Code) and GL105 (System, Source Code Load).

Fields (15)

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

Field / columnTypeDescription & valuesUpdated by
GSR-SOURCE-CODE PK
SOURCE_CODE
Alpha 2A two-character code assigned to a transaction to identify where the transaction was created.GL05.1, GL05.2, GL105, GL167, ML167
GSR-DESCRIPTION
DESCRIPTION
Alpha 30 (Lower Case)The source code description.GL05.1, GL05.2, GL105, GL167, ML167
GSR-SOURCE-TYPE
SOURCE_TYPE
Alpha 1Indicates if the source code is Lawson or user-defined.
  • L Lawson
  • U User
GL05.1, GL05.2, GL105, GL167, ML167
GSR-EDIT-TYPE
EDIT_TYPE
Alpha 1Indicates the type of transaction to be edited.
  • S Subledger
  • G General Ledger
GL105, GL167, ML167
GSR-USED-FLAG
USED_FLAG
Alpha 1Indicates if the record has been accessed by some source after creation.GL05.1, GL05.2, GL105
GSR-LAST-SEQ
LAST_SEQ
Numeric 3The last sequence number.GL105
GSR-LAST-FIELD-NBR
LAST_FIELD_NBR
Numeric 3The last field number.GL05.3, GL105, GL106
GSR-PRIMARY-SYSTEM
PRIMARY_SYSTEM
Alpha 2The primary system associated with the source code.GL105
GSR-SOURCE-GROUP
SOURCE_GROUP
Alpha 5The application group associated with the source code. For example, Financials.GL105
GSR-GLSCCAT-SEQ1
GLSCCAT_SEQ1
DerivedThe attribute associated with a source code.
GSR-GLSCCAT-SEQ2
GLSCCAT_SEQ2
DerivedThe attribute associated with a source code.
GSR-GLSCCAT-SEQ3
GLSCCAT_SEQ3
DerivedThe attribute associated with a source code.
GSR-CAT1-DESC
CAT1_DESC
DerivedThe attribute category description.
GSR-CAT2-DESC
CAT2_DESC
DerivedThe attribute category description.
GSR-CAT3-DESC
CAT3_DESC
DerivedThe attribute category description.

Indexes (1)

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

IndexKeysFlagsConditionUsed in
GSRSET1SOURCE-CODEPrimaryAC145, AC169, AC190, AC197, AC198, AC256, AC45.1, AC54.1 +22 more (list truncated in source)

Relations

One to one (6) — lookups and parents

RelationTableRulesConditionField map
Cat1 DescMXCATDEFNot RequiredGSC-MATRIX-CATMXC-MATRIX-CAT
Cat2 DescMXCATDEFNot RequiredGSC-MATRIX-CATMXC-MATRIX-CAT
Cat3 DescMXCATDEFNot RequiredGSC-MATRIX-CATMXC-MATRIX-CAT
Glsccat Seq1GLSCCATNot RequiredGSR-SOURCE-CODEGSC-SOURCE-CODE, 1GSC-SEQ-NBR
Glsccat Seq2GLSCCATNot RequiredGSR-SOURCE-CODEGSC-SOURCE-CODE, 2GSC-SEQ-NBR
Glsccat Seq3GLSCCATNot RequiredGSR-SOURCE-CODEGSC-SOURCE-CODE, 3GSC-SEQ-NBR

One to many (1) — child tables

RelationTableRulesConditionField map
Src CategoryGLSCCATDelete CascadesGSR-SOURCE-CODEGSC-SOURCE-CODE, GSC-SEQ-NBR

Programs

Updated by (7)

Referenced by (82)