MAJORCL – Major Class

System
Inventory Control (IC)
Prefix
MAJ
Primary key
ITEM-GROUP, CLASS-TYPE, MAJOR-CLASS
Fields
5
Updated by
4 programs
Referenced by
101 programs

MAJORCL is the Major Class table in Lawson Inventory Control (prefix MAJ). It is indexed by ITEM-GROUP, CLASS-TYPE, MAJOR-CLASS (MAJSET1). It is related 1:1 to ITEMGROUP and 1:M to ITEMMAST and MINORCL. It is updated by IC05.1, IC06.1, IC07.1 and IC39.1 and referenced by DR100, IC00.1, IC10.1, IC10.2, IC11.1, IC120, IC125, IC134 and 93 more. The table has 5 fields, 1 index and 4 documented relations.

About MAJORCL

The Major Class file contains the major class codes which are entered on Item Master records. There are three different types of major classes: inventory, sales, and purchasing.

Fields (5)

Column = COBOL field name without the MAJ- 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
#MAJ-ITEM-GROUP PK
ITEM_GROUP
Alpha 5This field contains the identifier for a group of items that can be shared by one or more companies.IC05.1, IC06.1, IC07.1, IC39.1
#MAJ-CLASS-TYPE PK
CLASS_TYPE
Alpha 1This field indicates which group of classes is assigned to this record.
  • I Inventory Class
  • P Purchasing Class
  • S Sales Class
  • F Freight Class
IC05.1, IC06.1, IC07.1, IC39.1
#MAJ-MAJOR-CLASS PK
MAJOR_CLASS
Alpha 4This field contains a classification for a group of items within the class type.IC05.1, IC06.1, IC07.1, IC39.1
#MAJ-DESCRIPTION
DESCRIPTION
Alpha 30 (Lower Case)This field contains the description of the major class.IC05.1, IC06.1, IC07.1, IC235, IC39.1
#MAJ-ACTIVE-STATUS
ACTIVE_STATUS
Alpha 1This field contains the status of the major class which controls the use of the major class.
  • A Active
  • I Inactive
IC05.1, IC06.1, IC07.1, IC39.1

Indexes (1)

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
MAJSET1
  1. ITEM-GROUP
  2. CLASS-TYPE
  3. MAJOR-CLASS
PrimaryDR100, IC00.1, IC05.1, IC06.1, IC07.1, IC10.1, IC10.2, IC11.1 +22 more (list truncated in source)

Relations

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

One to one (1) — lookups and parents

RelationTableRulesConditionField map
ItemgroupITEMGROUPRequired
MAJ-ITEM-GROUPITG-ITEM-GROUP

One to many (3) — child tables

RelationTableRulesConditionField map
ItemmastITEMMAST
MAJ-ITEM-GROUPITE-ITEM-GROUP
MAJ-MAJOR-CLASSITE-PURCH-MAJCL
ITE-PURCH-MINCL
ITE-ITEM
ItemsalesITEMMAST
MAJ-ITEM-GROUPITE-ITEM-GROUP
MAJ-MAJOR-CLASSITE-SALES-MAJCL
ITE-SALES-MINCL
ITE-ITEM
MinorclassMINORCLDelete Restricted
MAJ-ITEM-GROUPMIN-ITEM-GROUP
MAJ-CLASS-TYPEMIN-CLASS-TYPE
MAJ-MAJOR-CLASSMIN-MAJOR-CLASS
MIN-MINOR-CLASS

Programs

Updated by (4)

Referenced by (101)