MACRECHDR – MA Record Header
- System
- Matching (MA)
- Prefix
MRH- Primary key
COMPANY,REFERENCE-NO,SEQ-NBR- Fields
- 42
- Updated by
- 2 programs
- Referenced by
- 0 programs
MACRECHDR is the MA Record Header table in Lawson Matching (prefix MRH). It is indexed by COMPANY, REFERENCE-NO, SEQ-NBR (MRHSET1); alternate indexes: MRHSET2. It is related 1:M to MACRECAOC, MACRECERR and MACRECPOT. It is updated by MA53.1 and MA531. The table has 42 fields, 2 indexes and 3 documented relations.
About MACRECHDR
No description in the Lawson data dictionary.
Fields (42)
Column = COBOL field name without the MRH- 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 / column | Type | Description & values | Updated by |
|---|---|---|---|
#MRH-RUN-GROUP SET2RUN_GROUP | Alpha 15 | Run Group and Seq Number are the keys to the file. They should be used to group records together for interfacing. | MA53.1 |
#MRH-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. | MA53.1, MA531 |
#MRH-REFERENCE-NO PKREFERENCE_NO | Alpha 25 (Right Justified) | — | MA53.1, MA531 |
#MRH-SEQ-NBR PKSEQ_NBR | Numeric 4 | An automatically assigned sequence number. | MA53.1, MA531 |
#MRH-REC-NUMBERREC_NUMBER | Numeric 10 | The receiver number. Assigned when this receiving information was added. | MA531 |
#MRH-PO-NUMBERPO_NUMBER | Alpha 14 (Right Justified) | This field contains the number representing the purchase order. | MA53.1, MA531 |
#MRH-PO-RELEASEPO_RELEASE | Numeric 4 | Used to identify a purchase order release (created from a Blanket or Standing order). | MA53.1, MA531 |
#MRH-PO-CODEPO_CODE | Alpha 4 | This is the purchase order code. | MA53.1, MA531 |
#MRH-LOCATIONLOCATION | Alpha 5 | This field contains a valid stocking location within the company inventory. | MA53.1, MA531 |
#MRH-OPER-IDOPER_ID | Alpha 10 | This field is used to store the login id of the person who entered the record. | MA53.1, MA531 |
#MRH-BUYER-CODEBUYER_CODE | Alpha 3 | — | MA53.1, MA531 |
#MRH-BOL-NBRBOL_NBR | Alpha 22 | This field contains the Bill of Lading number. | MA53.1, MA531 |
#MRH-REC-DATEREC_DATE | Numeric 8 (yyyymmdd) | This field displays the system date when this was created. | MA53.1, MA531 |
#MRH-CARRIERCARRIER | Alpha 9 (Right Justified) | This is the carrier vendor number. It must be a valid vendor. | MA53.1, MA531 |
#MRH-VENDOR SET2VENDOR | Alpha 9 (Right Justified) | The vendor's identification code. | MA53.1, MA531 |
#MRH-PURCH-FR-LOCPURCH_FR_LOC | Alpha 4 | The vendor's purchase from location. | MA53.1 |
#MRH-REC-COMMENTSREC_COMMENTS | Alpha 100 (Lower Case) | — | MA53.1, MA531 |
#MRH-STATUSSTATUS | Numeric 1 | This field displays the status of the transaction. | MA53.1, MA531 |
#MRH-LOGGED-FLLOGGED_FL | Alpha 1 | —
| MA53.1, MA531 |
#MRH-ACTUAL-TIMEACTUAL_TIME | Numeric 4 | This field contains the actual time the receiver was entered into the system. This filed defaults to the system date if an actual time was not entered. | MA53.1, MA531 |
#MRH-ERS-COMMENTSERS_COMMENTS | Alpha 100 (Lower Case) | — | MA53.1, MA531 |
#MRH-ERS-STATUSERS_STATUS | Numeric 1 | The status of the receipt in the Evaluated Receipts Settlement process. | MA53.1, MA531 |
#MRH-INVOICEINVOICE | Alpha 22 | Used to identify the invoice. | MA53.1, MA531 |
#MRH-INVC-REF-TYPEINVC_REF_TYPE | Alpha 2 | Indicates the type of number the vendor is providing to reference the invoice. | MA53.1, MA531 |
#MRH-PRINT-CODEPRINT_CODE | Alpha 1 | This field contains the print code, which defines where comments are displayed or printed. | MA53.1, MA531 |
#MRH-MATCH-REF-NBRMATCH_REF_NBR | Alpha 22 | — | MA53.1, MA531 |
#MRH-CURRENCY-CODECURRENCY_CODE | Alpha 5 | This field contains the company base currency code established in Company (GL10.1 ). | MA53.1, MA531 |
#MRH-PROCESS-LEVELPROCESS_LEVEL | Alpha 5 | This field contains the process level, which is the reporting hierarchy below company. | MA53.1, MA531 |
#MRH-TERMS-CDTERMS_CD | Alpha 5 | A user-defined code representing a method of determining invoice due and discount dates. | MA53.1, MA531 |
#MRH-NOTESNOTES | Alpha 20 (Lower Case) | — | — |
#MRH-RECORD-ERROR SET2RECORD_ERROR | Alpha 1 | —
| MA53.1, MA531 |
#MRH-XREF-VENDORXREF_VENDOR | Alpha 9 (Right Justified) | This is a vendor that is supported on a system outside Lawson. When records are interfaces we will maintain this vendor on the file but we will use the Lawson vendor while in the lawson application. | — |
#MRH-SHIP-TO-ARRIVESHIP_TO_ARRIVE | Numeric 8 (yyyymmdd) | This field displays the system date when this was created. | MA531 |
#MRH-RETAIL-FLAGRETAIL_FLAG | Numeric 1 | — | MA53.1, MA531 |
#MRH-LOCATION-GLNLOCATION_GLN | Alpha 13 | — | — |
#MRH-BUYER-GLNBUYER_GLN | Alpha 13 | — | — |
#MRH-VENDOR-GLNVENDOR_GLN | Alpha 13 | — | — |
#MRH-FREIGHT-TOTFREIGHT_TOT | Signed 18.2 | — | — |
#MRH-INSURANCE-TOTINSURANCE_TOT | Signed 18.2 | — | — |
#MRH-CSTMS-TOTCSTMS_TOT | Signed 18.2 | — | — |
#MRH-OTHER-AOC-TOTOTHER_AOC_TOT | Signed 18.2 | — | — |
#MRH-GLBL-DOC-TYPEGLBL_DOC_TYPE | Alpha 10 | — | MA53.1 |
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.
| Index | Keys | Flags | Condition | Used in |
|---|---|---|---|---|
MRHSET1 |
| Primary | MA53.1, MA53.5, MA531 | |
MRHSET2 |
| KeyChange | MA531 |
Relations
One to many (3) — child tables
| Relation | Table | Rules | Condition | Field map | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Macrecaoc | MACRECAOC |
| |||||||||||||||||
| Macrecerr | MACRECERR |
| |||||||||||||||||
| Macrecpot | MACRECPOT |
|