REASON – Reason Code

System
Inventory Control (IC)
Prefix
REA
Primary key
COMPANY, REASON-CODE
Fields
8
Updated by
1 program
Referenced by
237 programs

REASON is the Reason Code table in Lawson Inventory Control (prefix REA). It is indexed by COMPANY, REASON-CODE (REASET1). It is related 1:1 to ICCOMPANY. It is updated by IC17.1 and referenced by AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 and 229 more. The table has 8 fields, 1 index and 1 documented relation.

About REASON

The Reason Code file contains the approved reasons that explain why inventory transactions were made. These reasons can also be used to explain physical inventory count variances.

Fields (8)

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

Field / columnTypeDescription & valuesUpdated by
REA-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.IC17.1
REA-REASON-CODE PK
REASON_CODE
Alpha 4This field contains the reason code that indicates the cause for credit memos. It is also allowed on debit memos, and used to indicate the reason for a return on a return to vendor.IC17.1
REA-DESCRIPTION
DESCRIPTION
Alpha 30 (Lower Case)This field contains the description of the reason code.IC17.1, IC22.2
REA-DESCRIPTION2
DESCRIPTION2
Alpha 30 (Lower Case)This field displays the description.IC17.1
REA-ACCOUNT
ACCOUNT
Numeric 6This field contains the general ledger account that defaults as the offset account number on inventory transactions when the reason code is entered on a transaction.IC17.1
REA-SUB-ACCOUNT
SUB_ACCOUNT
Numeric 4This field contains the general ledger subaccount that defaults as the offset subaccount number if the reason code is entered on an inventory transaction.IC17.1
REA-ACTIVE-STATUS
ACTIVE_STATUS
Alpha 1This field contains the status for the reason code to control the use of the code.
  • A Active
  • I Inactive
IC17.1
REA-REASON-TYPE
REASON_TYPE
Alpha 2This field identifies the class of the reason code. This classification is used in the Case Carts system for reporting. " " = None
  • 1 Waste
  • 2 Returns
IC17.1

Indexes (1)

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

IndexKeysFlagsConditionUsed in
REASET1COMPANY, REASON-CODEPrimaryAP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +22 more (list truncated in source)

Relations

One to one (1) — lookups and parents

RelationTableRulesConditionField map
CompanyICCOMPANYRequiredREA-COMPANYICC-COMPANY

Programs

Updated by (1)

Referenced by (237)