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 / column | Type | Description & values | Updated by |
|---|---|---|---|
MH2-COMPANY PKCOMPANY | Numeric 4 | Identifies 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 PKPO_NUMBER | Alpha 14 (Right Justified) | This field contains the number representing the purchase order. | AP198 |
MH2-PO-RELEASE PKPO_RELEASE | Numeric 4 | Used to identify a purchase order release (created from a Blanket or Standing order). | AP198 |
MH2-PO-CODE PKPO_CODE | Alpha 4 | This is the purchase order code. | AP198 |
MH2-VENDOR PKVENDOR | 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 PKINVOICE | Alpha 22 | Used to identify the invoice. | AP115, AP198, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +17 more |
MH2-SUFFIX PKSUFFIX | Numeric 3 | This is the suffix for the invoice. | AP198 |
MH2-MATCH-REF-NBRMATCH_REF_NBR | Alpha 22 | — | AP198 |
MH2-TAX-CODETAX_CODE | Alpha 10 | This field contains a code representing specific tax information. This must be valid Tax Code. | AP198 |
MH2-LOCATIONLOCATION | Alpha 5 | This field contains a valid stocking location within the company inventory. | AP198 |
MH2-INVOICE-TYPEINVOICE_TYPE | Alpha 1 | THis 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.
| Index | Keys | Flags | Condition | Used in |
|---|---|---|---|---|
MH2SET1 | COMPANY, PO-NUMBER, PO-RELEASE, PO-CODE, VENDOR, INVOICE, SUFFIX | Primary | — | |
MH2SET2 | COMPANY, VENDOR, INVOICE, SUFFIX, PO-NUMBER, PO-RELEASE, PO-CODE | AP115, 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
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Apapihist | APAPIHIST | Required | MH2-COMPANY → AH1-COMPANY, MH2-VENDOR → AH1-VENDOR, MH2-INVOICE → AH1-INVOICE, MH2-SUFFIX → AH1-SUFFIX, Zeroes → AH1-CANCEL-SEQ | |
| Apcompany | APCOMPANY | Required | MH2-COMPANY → CPY-COMPANY | |
| Purchorder | PURCHORDER | Required | MH2-COMPANY → PCR-COMPANY, MH2-PO-CODE → PCR-PO-CODE, MH2-PO-NUMBER → PCR-PO-NUMBER, MH2-PO-RELEASE → PCR-PO-RELEASE | |
| Vendor | APVENMAST | Required | CPY-VENDOR-GROUP → VEN-VENDOR-GROUP, MH2-VENDOR → VEN-VENDOR |
One to many (3) — child tables
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Mamadhist | MAMADHIST | MH2-COMPANY → MH1-COMPANY, MH2-VENDOR → MH1-VENDOR, MH2-INVOICE → MH1-INVOICE, MH2-SUFFIX → MH1-SUFFIX, MH2-PO-NUMBER → MH1-PO-NUMBER, MH2-PO-RELEASE → MH1-PO-RELEASE, MH2-PO-CODE → MH1-PO-CODE, → MH1-LINE-NBR, → MH1-AOC-CODE, → MH1-SEQ-NBR | ||
| Mamadhist All | MAMADHIST | MH2-COMPANY → MH1-COMPANY, MH2-VENDOR → MH1-VENDOR, MH2-INVOICE → MH1-INVOICE, MH2-SUFFIX → MH1-SUFFIX, → MH1-PO-NUMBER, → MH1-PO-RELEASE, → MH1-PO-CODE, → MH1-LINE-NBR, → MH1-AOC-CODE, → MH1-SEQ-NBR | ||
| Popsphist | POPSPHIST | Delete Cascades | MH2-COMPANY → PH1-COMPANY, MH2-INVOICE → PH1-PO-NUMBER, → PH1-PO-RELEASE, → PH1-PO-CODE, → PH1-AOC-CODE, → PH1-INVOICE |
Programs
Updated by (32)
- AP115 Vendor Merge
- AP180 Bill of Exchange Cashing Update
- AP181 Bill of Exchange Statement Update
- AP190 Invoice Reinstatement
- AP198 Invoice Data Archival
- AP20.1 Basic Invoice
- AP20.2 Taxed Invoice
- AP20.3 Detail Invoice
- AP20.4 Invoice Line Detail
- AP20.5 Multiple Invoice
- AP20.7 Distributions
- AP21.1 View Distributions
- AP23.1 Transit Invoice Entry
- AP25.2 Batch Review
- AP26.1 Invoice Release
- AP27.1 Single Invoice Release
- AP28.1 Bill of Exchange Acceptance by Vendor
- AP28.2 Bill of Exchange Acceptance by Date
- AP30.4 Invoice Cancel
- AP300 Invoice and Vendor History Purge
- AP305 Accounts Payable Company Purge
- AP45.1 Reportable Income Adjustment
- MA41.1 Add-On Cost Detail - Purchase Order
- MA41.2 Add On Cost Lookup
- MA41.4 Miscellaneous Add-On Cost
- MA41.7 AOC Approval Entry
- MA42.2 Memo Line AOC Detail
- MA43.2 Purchase Order Lookup
- MA44.1 Invoice Line Detail - Purchase Order
- MA44.2 Invoice Line Detail- Service
- MA70.1 Invoice Unmatch
- MA75.1 PO Invoice Cancel