MAINVREF – No description in the Lawson data dictionary

System
Matching (MA)
Prefix
MRF
Primary key
COMPANY, VENDOR, API-INVOICE, API-SUFFIX, API-CANCEL-SEQ, REF-INV-NBR, REF-SUFFIX, REF-CANCEL-SEQ
Fields
8
Updated by
19 programs
Referenced by
1 program

MAINVREF is a Lawson Matching table (prefix MRF); no description in the lawson data dictionary. It is indexed by COMPANY, VENDOR, API-INVOICE, API-SUFFIX, API-CANCEL-SEQ, REF-INV-NBR, REF-SUFFIX, REF-CANCEL-SEQ (MRFSET1); alternate indexes: MRFSET2. It is related 1:1 to APINVOICE. It is updated by AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7, AP21.1, AP23.1 and 11 more and referenced by MAI1.1. The table has 8 fields, 2 indexes and 2 documented relations.

About MAINVREF

No description in the Lawson data dictionary.

Fields (8)

Column = COBOL field name without the MRF- 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
#MRF-COMPANY PK
COMPANY
Numeric 4—AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7, AP21.1, AP23.1 +9 more
#MRF-VENDOR PK
VENDOR
Alpha 9 (Right Justified)—AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7, AP21.1, AP23.1 +9 more
#MRF-API-INVOICE PK
API_INVOICE
Alpha 22—AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7, AP21.1, AP23.1 +9 more
#MRF-API-SUFFIX PK
API_SUFFIX
Numeric 3—AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7, AP21.1, AP23.1 +11 more
#MRF-API-CANCEL-SEQ PK
API_CANCEL_SEQ
Numeric 4—AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7, AP21.1, AP23.1 +11 more
#MRF-REF-INV-NBR PK
REF_INV_NBR
Alpha 22—AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7, AP21.1, AP23.1 +9 more
#MRF-REF-SUFFIX PK
REF_SUFFIX
Numeric 3—AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7, AP21.1, AP23.1 +9 more
#MRF-REF-CANCEL-SEQ PK
REF_CANCEL_SEQ
Numeric 4—AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7, AP21.1, AP23.1 +9 more

Indexes (2)

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
MRFSET1
  1. COMPANY
  2. VENDOR
  3. API-INVOICE
  4. API-SUFFIX
  5. API-CANCEL-SEQ
  6. REF-INV-NBR
  7. REF-SUFFIX
  8. REF-CANCEL-SEQ
PrimaryAP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7, AP21.1, AP23.1 +12 more
MRFSET2
  1. COMPANY
  2. VENDOR
  3. REF-INV-NBR
  4. REF-SUFFIX
  5. REF-CANCEL-SEQ
  6. API-INVOICE
  7. API-SUFFIX
  8. API-CANCEL-SEQ
MA42.1, MA70.1, MA75.1

Relations

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

One to one (2) — lookups and parents

RelationTableRulesConditionField map
Apinvoice1APINVOICERequired
MRF-COMPANY→API-COMPANY
MRF-VENDOR→API-VENDOR
MRF-API-INVOICE→API-INVOICE
MRF-API-SUFFIX→API-SUFFIX
MRF-API-CANCEL-SEQ→API-CANCEL-SEQ
Apinvoice2APINVOICERequired
MRF-COMPANY→API-COMPANY
MRF-VENDOR→API-VENDOR
MRF-REF-INV-NBR→API-INVOICE
MRF-REF-SUFFIX→API-SUFFIX
MRF-REF-CANCEL-SEQ→API-CANCEL-SEQ

Programs

Updated by (19)

Referenced by (1)