ITEMSUB – Item Substitute

System
Inventory Control (IC)
Prefix
ITS
Primary key
ITEM-GROUP, ITEM, SUBTYPE, SUB-ITEM
Fields
7
Updated by
1 program
Referenced by
227 programs

ITEMSUB is the Item Substitute table in Lawson Inventory Control (prefix ITS). It is indexed by ITEM-GROUP, ITEM, SUBTYPE, SUB-ITEM (ITSSET1); alternate indexes: ITSSET2 and ITSSET3. It is related 1:1 to ITEMGROUP and ITEMMAST. It is updated by IC13.1 and referenced by AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 and 219 more. The table has 7 fields, 3 indexes and 4 documented relations.

About ITEMSUB

The Item Substitute file stores valid substitutes for an item.

Fields (7)

Column = COBOL field name without the ITS- 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
#ITS-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.IC13.1
#ITS-ITEM PK
ITEM
Alpha 32This field contains the item identifier.IC13.1
#ITS-SUBTYPE PK
SUBTYPE
Alpha 1—
  • C Companion
  • S Substitute
IC13.1
#ITS-SUB-ITEM PK
SUB_ITEM
Alpha 32This field contains a valid item number designated as a substitute item for the key item.IC13.1
#ITS-ITEM-CODE-USED
ITEM_CODE_USED
Derived——
#ITS-EFFECT-DT
EFFECT_DT
Numeric 8 (yyyymmdd)This is the first date that this item should be used as a Substitute / Complementary item.IC13.1
#ITS-EXPIRE-DT
EXPIRE_DT
Numeric 8 (yyyymmdd)This is the last date that this item should be used as a Substitute / Complementary item.IC13.1

Indexes (3)

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
ITSSET1
  1. ITEM-GROUP
  2. ITEM
  3. SUBTYPE
  4. SUB-ITEM
PrimaryAP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +22 more (list truncated in source)
ITSSET2
  1. ITEM-GROUP
  2. SUBTYPE
  3. ITEM
  4. SUB-ITEM
IC13.1, IC213
ITSSET3
  1. ITEM-GROUP
  2. SUB-ITEM
  3. ITEM
  4. SUBTYPE
IC11.1

Relations

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

One to one (4) — lookups and parents

RelationTableRulesConditionField map
ItemgroupITEMGROUPRequired
ITS-ITEM-GROUP→ITG-ITEM-GROUP
ItemmastITEMMASTRequired
ITS-ITEM-GROUP→ITE-ITEM-GROUP
ITS-ITEM→ITE-ITEM
ItemmasterITEMMASTRequired
ITS-ITEM-GROUP→ITE-ITEM-GROUP
ITS-ITEM→ITE-ITEM
SubitemmasterITEMMASTRequired
ITS-ITEM-GROUP→ITE-ITEM-GROUP
ITS-SUB-ITEM→ITE-ITEM

Programs

Updated by (1)

Referenced by (227)