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.

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 marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
ITSSET1ITEM-GROUP, ITEM, SUBTYPE, SUB-ITEMPrimaryAP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +22 more (list truncated in source)
ITSSET2ITEM-GROUP, SUBTYPE, ITEM, SUB-ITEMIC13.1, IC213
ITSSET3ITEM-GROUP, SUB-ITEM, ITEM, SUBTYPEIC11.1

Relations

One to one (4) — lookups and parents

RelationTableRulesConditionField map
ItemgroupITEMGROUPRequiredITS-ITEM-GROUPITG-ITEM-GROUP
ItemmastITEMMASTRequiredITS-ITEM-GROUPITE-ITEM-GROUP, ITS-ITEMITE-ITEM
ItemmasterITEMMASTRequiredITS-ITEM-GROUPITE-ITEM-GROUP, ITS-ITEMITE-ITEM
SubitemmasterITEMMASTRequiredITS-ITEM-GROUPITE-ITEM-GROUP, ITS-SUB-ITEMITE-ITEM

Programs

Updated by (1)

Referenced by (227)