MAAOIHIST – No description in the Lawson data dictionary

System
Matching (MA)
Prefix
MH2
Primary key
COMPANY, PO-NUMBER, PO-RELEASE, PO-CODE, VENDOR, INVOICE, SUFFIX
Fields
11
Updated by
32 programs
Referenced by
0 programs

MAAOIHIST is a Lawson Matching table (prefix MH2); no description in the lawson data dictionary. It is indexed by COMPANY, PO-NUMBER, PO-RELEASE, PO-CODE, VENDOR, INVOICE, SUFFIX (MH2SET1); alternate indexes: MH2SET2. It is related 1:1 to APAPIHIST, APCOMPANY, PURCHORDER and APVENMAST and 1:M to MAMADHIST and POPSPHIST. It is updated by AP115, AP180, AP181, AP190, AP198, AP20.1, AP20.2, AP20.3 and 24 more. The table has 11 fields, 2 indexes and 7 documented relations.

About MAAOIHIST

No description in the Lawson data dictionary.

Fields (11)

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

Field / columnTypeDescription & valuesUpdated by
MH2-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.AP198
MH2-PO-NUMBER PK
PO_NUMBER
Alpha 14 (Right Justified)This field contains the number representing the purchase order.AP198
MH2-PO-RELEASE PK
PO_RELEASE
Numeric 4Used to identify a purchase order release (created from a Blanket or Standing order).AP198
MH2-PO-CODE PK
PO_CODE
Alpha 4This is the purchase order code.AP198
MH2-VENDOR PK
VENDOR
Alpha 9 (Right Justified)The vendor's identification code.AP115, AP198, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +17 more
MH2-INVOICE PK
INVOICE
Alpha 22Used to identify the invoice.AP115, AP198, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +17 more
MH2-SUFFIX PK
SUFFIX
Numeric 3This is the suffix for the invoice.AP198
MH2-MATCH-REF-NBR
MATCH_REF_NBR
Alpha 22AP198
MH2-TAX-CODE
TAX_CODE
Alpha 10This field contains a code representing specific tax information. This must be valid Tax Code.AP198
MH2-LOCATION
LOCATION
Alpha 5This field contains a valid stocking location within the company inventory.AP198
MH2-INVOICE-TYPE
INVOICE_TYPE
Alpha 1THis field will be filled in from the Invoice based on PO number. This is a carrier for the field. The PORECEIVE file will have to be updated with this field.AP198

Indexes (2)

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

IndexKeysFlagsConditionUsed in
MH2SET1COMPANY, PO-NUMBER, PO-RELEASE, PO-CODE, VENDOR, INVOICE, SUFFIXPrimary
MH2SET2COMPANY, VENDOR, INVOICE, SUFFIX, PO-NUMBER, PO-RELEASE, PO-CODEAP115, AP180, AP181, AP190, AP20.1, AP20.2, AP20.3, AP20.4 +22 more (list truncated in source)

Relations

One to one (4) — lookups and parents

RelationTableRulesConditionField map
ApapihistAPAPIHISTRequiredMH2-COMPANYAH1-COMPANY, MH2-VENDORAH1-VENDOR, MH2-INVOICEAH1-INVOICE, MH2-SUFFIXAH1-SUFFIX, ZeroesAH1-CANCEL-SEQ
ApcompanyAPCOMPANYRequiredMH2-COMPANYCPY-COMPANY
PurchorderPURCHORDERRequiredMH2-COMPANYPCR-COMPANY, MH2-PO-CODEPCR-PO-CODE, MH2-PO-NUMBERPCR-PO-NUMBER, MH2-PO-RELEASEPCR-PO-RELEASE
VendorAPVENMASTRequiredCPY-VENDOR-GROUPVEN-VENDOR-GROUP, MH2-VENDORVEN-VENDOR

One to many (3) — child tables

RelationTableRulesConditionField map
MamadhistMAMADHISTMH2-COMPANYMH1-COMPANY, MH2-VENDORMH1-VENDOR, MH2-INVOICEMH1-INVOICE, MH2-SUFFIXMH1-SUFFIX, MH2-PO-NUMBERMH1-PO-NUMBER, MH2-PO-RELEASEMH1-PO-RELEASE, MH2-PO-CODEMH1-PO-CODE, MH1-LINE-NBR, MH1-AOC-CODE, MH1-SEQ-NBR
Mamadhist AllMAMADHISTMH2-COMPANYMH1-COMPANY, MH2-VENDORMH1-VENDOR, MH2-INVOICEMH1-INVOICE, MH2-SUFFIXMH1-SUFFIX, MH1-PO-NUMBER, MH1-PO-RELEASE, MH1-PO-CODE, MH1-LINE-NBR, MH1-AOC-CODE, MH1-SEQ-NBR
PopsphistPOPSPHISTDelete CascadesMH2-COMPANYPH1-COMPANY, MH2-INVOICEPH1-PO-NUMBER, PH1-PO-RELEASE, PH1-PO-CODE, PH1-AOC-CODE, PH1-INVOICE

Programs

Updated by (32)