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. PK = primary key (present in every index); SETn = leading/alternate key of that index.

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 5—IC33.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 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
FACSET1
  1. ITEM-GROUP
  2. ST-FACILITY
  3. COMPANY
  4. FACILITY-LOC
PrimaryAP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +22 more (list truncated in source)

Relations

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

One to one (2) — lookups and parents

RelationTableRulesConditionField map
IclocationICLOCATIONNot RequiredValid When FAC-FAC-LOC-TYPE = Zeroes
FAC-COMPANY→ICL-COMPANY
FAC-FACILITY-LOC→ICL-LOCATION
RqlocRQLOCNot RequiredValid When FAC-FAC-LOC-TYPE = 1
FAC-COMPANY→RQL-COMPANY
FAC-FACILITY-LOC→RQL-REQ-LOCATION

One to many (1) — child tables

RelationTableRulesConditionField map
MfgshpfacMFGSHPFAC
FAC-ITEM-GROUP→MFG-ITEM-GROUP
FAC-ST-FACILITY→MFG-ST-FACILITY
—→MFG-MANUF-ID

Programs

Updated by (231)

Referenced by (3)