ICFACILITY – Ship To Facility

System
Inventory Control (IC)
Prefix
FAC
Primary key
ITEM-GROUP, ST-FACILITY, COMPANY, FACILITY-LOC
Fields
6
Updated by
231 programs
Referenced by
3 programs

ICFACILITY is the Ship To Facility table in Lawson Inventory Control (prefix FAC). It is indexed by ITEM-GROUP, ST-FACILITY, COMPANY, FACILITY-LOC (FACSET1). It is related 1:1 to ICLOCATION and RQLOC and 1:M to MFGSHPFAC. It is updated by AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 and 223 more and referenced by IC153, IC34.1 and PO00.1. The table has 6 fields, 1 index and 3 documented relations.

About ICFACILITY

The purpose of this table is to group Inventory and requesting locations as a single facility sucha as a hospital or clinic for reporting purposes.

Fields (6)

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

Field / columnTypeDescription & valuesUpdated by
FAC-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.IC33.1
FAC-ST-FACILITY PK
ST_FACILITY
Alpha 15A unique identifier for a ship to facility.IC33.1
FAC-NAME
NAME
Alpha 30 (Lower Case)Displays the company description.IC33.1
FAC-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.IC33.1
FAC-FACILITY-LOC PK
FACILITY_LOC
Alpha 5IC33.1
FAC-FAC-LOC-TYPE
FAC_LOC_TYPE
Numeric 1Identifies a location as an inventory or requesting location.
  • 0 IC Location
  • 1 Requesting Location
IC33.1

Indexes (1)

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

IndexKeysFlagsConditionUsed in
FACSET1ITEM-GROUP, ST-FACILITY, COMPANY, FACILITY-LOCPrimaryAP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +22 more (list truncated in source)

Relations

One to one (2) — lookups and parents

RelationTableRulesConditionField map
IclocationICLOCATIONNot RequiredValid When FAC-FAC-LOC-TYPE = ZeroesFAC-COMPANYICL-COMPANY, FAC-FACILITY-LOCICL-LOCATION
RqlocRQLOCNot RequiredValid When FAC-FAC-LOC-TYPE = 1FAC-COMPANYRQL-COMPANY, FAC-FACILITY-LOCRQL-REQ-LOCATION

One to many (1) — child tables

RelationTableRulesConditionField map
MfgshpfacMFGSHPFACFAC-ITEM-GROUPMFG-ITEM-GROUP, FAC-ST-FACILITYMFG-ST-FACILITY, MFG-MANUF-ID

Programs

Updated by (231)

Referenced by (3)