ICHISTORY – Transaction History

System
Inventory Control (IC)
Prefix
ICH
Primary key
COMPANY, LOCATION, ITEM, YEAR, QUARTER
Fields
23
Updated by
224 programs
Referenced by
11 programs

ICHISTORY is the Transaction History table in Lawson Inventory Control (prefix ICH). It is indexed by COMPANY, LOCATION, ITEM, YEAR, QUARTER (ICHSET1); alternate indexes: ICHSET2. It is related 1:1 to ICCOMPANY, ICLOCATION, ITEMLOC and ITEMMAST. It is updated by AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 and 216 more and referenced by IC120, IC134, IC135, IC150, IC151, IC152, IC224, IC239 and 3 more. The table has 23 fields, 2 indexes and 4 documented relations.

About ICHISTORY

The Transaction History file contains the history of an item's inventory transactions summarized by transaction type and period or year. This history file is updated by the Order Entry, Purchase Order, and Inventory Control systems.

Fields (23)

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

Field / columnTypeDescription & valuesUpdated by
ICH-COMPANY PK
COMPANY
Numeric 4Identifies the AP company if the resource type = V. Identifies the HR company if the resource type = E. It is blank for type A, P or Q resources.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-LOCATION PK
LOCATION
Alpha 5This field contains a valid stocking location within the company inventory.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-ITEM PK
ITEM
Alpha 32This field contains the item identifier.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-YEAR PK
YEAR
Numeric 4This is the year as determined by the current year in the Company Parameter file.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-QUARTER PK
QUARTER
Numeric 1This field contains the quarter of the history. The quarter is used for weekly history.
  • 0 Monthly Company
  • 1 First Quarter
  • 2 Second Quarter
  • 3 Third Quarter
  • 4 Fourth Quarter
AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-BEG-SOH-QTY
BEG_SOH_QTY
Signed 13.4This field contains the beginning stock-on-hand quantity at the beginning of the year. It is updated when Closing (IC190) is run for year end closing.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-BEG-CLOSE-CST
BEG_CLOSE_CST
Signed 18.2This field contains the unit cost of the beginning stock-on-hand quantity when IC190 (Closing) is run.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-ISSUE-QTY
ISSUE_QTY
Signed 13.4 Occurs 14 Times ×14This field contains the total issued quantity for the period.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-ISSUE-COST
ISSUE_COST
Signed 18.2 Occurs 14 Times ×14This field contains the total cost of all issues for the period.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-SALES-QTY
SALES_QTY
Signed 13.4 Occurs 14 Times ×14This field contains the total sales quantity for the period.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-SALES-COST
SALES_COST
Signed 18.2 Occurs 14 Times ×14This field contains the total cost of all sales for the period.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-SALES-PRICE
SALES_PRICE
Signed 18.2 Occurs 14 Times ×14This field contains the total price of all sales for the period.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-ADJ-IN-QTY
ADJ_IN_QTY
Signed 13.4 Occurs 14 Times ×14This field contains the total quantity of all incoming adjustments for the period.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-ADJ-OUT-QTY
ADJ_OUT_QTY
Signed 13.4 Occurs 14 Times ×14This field contains the total quantity of all outgoing adjustments for the period.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-ADJ-OUT-COST
ADJ_OUT_COST
Signed 18.2 Occurs 14 Times ×14This field contains the total cost of all outgoing adjustments for the period.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-TRAN-IN-QTY
TRAN_IN_QTY
Signed 13.4 Occurs 14 Times ×14This field contains the total quantity of all incoming transfers for the period.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-TRAN-OUT-QTY
TRAN_OUT_QTY
Signed 13.4 Occurs 14 Times ×14This field contains the total quantity of all outgoing transfers for the period.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-TRAN-OUT-COST
TRAN_OUT_COST
Signed 18.2 Occurs 14 Times ×14This field contains the total cost of all outgoing transactions for the period.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-RECEIPT-QTY
RECEIPT_QTY
Signed 13.4 Occurs 14 Times ×14This field contains the total quantity of all receipts for the period.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
ICH-PER-END-QTY
PER_END_QTY
Signed 13.4 Occurs 14 Times ×14This field contains the stock-on-hand quantity at the time of the period close. This is updated when Closing (IC190) is run for period end closing.IC851
ICH-CLOSE-COST
CLOSE_COST
Signed 18.2 Occurs 14 Times ×14This field contains the cost of the item updated at the time of the period end closing (IC190).IC190, IC851
ICH-NDC-NBR
NDC_NBR
Alpha 15National Drug Code.
ICH-GRANT-NBR
GRANT_NBR
Alpha 12

Indexes (2)

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

IndexKeysFlagsConditionUsed in
ICHSET1COMPANY, LOCATION, ITEM, YEAR, QUARTERPrimaryAP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +22 more (list truncated in source)
ICHSET2COMPANY, LOCATION, ITEM, YEAR*, QUARTER*IC190, IC300, IC851

Relations

One to one (4) — lookups and parents

RelationTableRulesConditionField map
CompanyICCOMPANYRequiredICH-COMPANYICC-COMPANY
IclocationICLOCATIONRequiredICH-COMPANYICL-COMPANY, ICH-LOCATIONICL-LOCATION
ItemlocITEMLOCRequiredICH-COMPANYITL-COMPANY, ICH-LOCATIONITL-LOCATION, ICH-ITEMITL-ITEM
ItemmastITEMMASTRequiredICC-ITEM-GROUPITE-ITEM-GROUP, ICH-ITEMITE-ITEM

Programs

Updated by (224)

Referenced by (11)