MLRPTDEF – Multi Ledger Report Definition

System
Multi-Ledger (ML)
Prefix
MLR
Primary key
LEDGER, COMPANY, REPORT-NAME
Fields
16
Updated by
6 programs
Referenced by
1 program

MLRPTDEF is the Multi Ledger Report Definition table in Lawson Multi-Ledger (prefix MLR). It is indexed by LEDGER, COMPANY, REPORT-NAME (MLRSET1). It is related 1:1 to GLSYSTEM and MLCOLEDGER and 1:M to MLRPTSEL. It is updated by ML110, ML290, ML50.1, ML50.2, ML50.4 and ML50.5 and referenced by ML250. The table has 16 fields, 1 index and 3 documented relations.

About MLRPTDEF

This file contains report parameters defined in Ledger Report Setup (ML50.1) and inputs the parameters into Ledger Report (ML290) for report processing.

Fields (16)

Column = COBOL field name without the MLR- 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
#MLR-LEDGER PK
LEDGER
Alpha 15The ledger for which the report is defined.ML110, ML50.1, ML50.2, ML50.5
#MLR-COMPANY PK
COMPANY
Numeric 4The company for which the report is defined.ML50.1, ML50.2, ML50.5
#MLR-REPORT-NAME PK
REPORT_NAME
Alpha 20The name that identifies the report.ML50.1, ML50.2, ML50.5
#MLR-DESCRIPTION
DESCRIPTION
Alpha 30 (Lower Case)The report description.ML50.2, ML50.5
#MLR-CREATOR
CREATOR
Alpha 15The ID for the person that created the report.ML50.2, ML50.5
#MLR-LAST-RUN-DATE
LAST_RUN_DATE
Numeric 8 (yyyymmdd)The last date the report was run.ML290, ML50.5
#MLR-PRIMARY-SORT
PRIMARY_SORT
Numeric 1The primary report sort order.ML50.2
#MLR-TRANS-TYPE
TRANS_TYPE
Alpha 1Determines if amounts or units are processed in each transaction.ML290, ML50.2
#MLR-ACCT-ACTIVITY
ACCT_ACTIVITY
Alpha 1Determines the type of account activity to be included in the report.ML50.2
#MLR-COMPLETE-FLAG
COMPLETE_FLAG
Alpha 1Indicates if the record is complete.ML50.1
#MLR-LAST-ITEM-SEQ
LAST_ITEM_SEQ
Numeric 4The last item sequence number.ML50.4
#MLR-TRN-DTL-SLECT
TRN_DTL_SLECT
Numeric 2 Occurs 31 Times ×31Indicates the order that transaction detail is selected.ML50.1
#MLR-SORT-ORDER
SORT_ORDER
Numeric 1 Occurs 4 Times ×4The report sort order.ML50.1, ML50.2
#MLR-PRT-TOTAL-FLG
PRT_TOTAL_FLG
Alpha 1 Occurs 3 Times ×3Indicates if totals are printed in the report.ML50.1
#MLR-PG-BREAK-FLAG
PG_BREAK_FLAG
Alpha 1 Occurs 2 Times ×2Indicates if page breaks occur at the variable or account level.ML50.1
#MLR-RUNNING-BAL
RUNNING_BAL
Alpha 1Indicates if running balances are included in the report.ML50.2

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
MLRSET1
  1. LEDGER
  2. COMPANY
  3. REPORT-NAME
PrimaryML110, ML250, ML290, ML50.1, ML50.2, ML50.4, ML50.5

Relations

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

One to one (2) — lookups and parents

RelationTableRulesConditionField map
CompanyGLSYSTEMRequired
MLR-COMPANY→GLS-COMPANY
LedgerMLCOLEDGERRequired
MLR-COMPANY→MLE-COMPANY
MLR-LEDGER→MLE-LEDGER

One to many (1) — child tables

RelationTableRulesConditionField map
SelectionMLRPTSEL
MLR-LEDGER→MRS-LEDGER
MLR-COMPANY→MRS-COMPANY
MLR-REPORT-NAME→MRS-REPORT-NAME
—→MRS-OR-GROUP
—→MRS-ITEM-NUMBER
—→MRS-SEQUENCE-NBR

Programs

Updated by (6)

Referenced by (1)