LMPAYDTL – Payment Schedule Detail

System
LM (LM)
Prefix
LPD
Primary key
COMPANY, LEASE, PMT-VENDOR, PMT-NBR, EXEC-CODE
Fields
47
Updated by
1 program
Referenced by
1 program

LMPAYDTL is the Payment Schedule Detail table in Lawson LM (prefix LPD). It is indexed by COMPANY, LEASE, PMT-VENDOR, PMT-NBR, EXEC-CODE (LPDSET1); alternate indexes: LPDSET2, LPDSET3, LPDSET5 and LPDSET6. It is related 1:1 to RWHEADER, GLSYSTEM, CMPUTE, GLCPYGRP, GLNAMES, LMLEASE and MXLISTHDR and 1:M to LMINVOICE. It is updated by AP30.4 and referenced by APCP.1. The table has 47 fields, 5 indexes and 9 documented relations.

About LMPAYDTL

This file stores detail information for lease payments.

Fields (47)

Column = COBOL field name without the LPD- 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
#LPD-COMPANY PK
COMPANY
Numeric 4This field contains the name of the lessor company; it must be a valid company in the Accounts Payable system.—
#LPD-LEASE PK
LEASE
Alpha 19This field contains the lease ID defined on Lease (LM21.1).—
#LPD-EXEC-CODE PK
EXEC_CODE
Alpha 6This field contains an executory cost code. Executory costs represent supplemental costs such as taxes. maintenance fees, or insurance. You can assign up to 5 executory cost codes to a lease.—
#LPD-PMT-VENDOR PK
PMT_VENDOR
Alpha 9 (Right Justified)The field contains the Accounts Payable vendor associated with the invoice.—
#LPD-PMT-NBR PK
PMT_NBR
Numeric 6——
#LPD-SUFFIX
SUFFIX
Numeric 3This is the suffix for the invoice.—
#LPD-DIST-SEQ-NBR
DIST_SEQ_NBR
Numeric 6A unique sequence number.—
#LPD-DESCRIPTION
DESCRIPTION
Alpha 30 (Lower Case)This field displays the description.—
#LPD-CURRENCY-CODE
CURRENCY_CODE
Alpha 5This field contains the code representing the currency used for the lease transactions.—
#LPD-CURR-ND
CURR_ND
Numeric 1This field contains the number of decimals defined for the currency used in the lease transaction.—
#LPD-RECUR-NBR SET6
RECUR_NBR
Numeric 6This field contains a unique number identifying a recurring invoice both in this file and in the LMPAYRECUR file.—
#LPD-AUTH-CODE
AUTH_CODE
Alpha 3This field contains the authority code of the person responsible for releasing the invoice for payment.—
#LPD-DUE-DATE SET3
DUE_DATE
Numeric 8 (yyyymmdd)This field contains the due date for the payment.—
#LPD-PAYMENT-AMT
PAYMENT_AMT
Signed 18.2This lease contains the payment amount in the lease transaction currency. If you do not enter a payment amount, you must enter a compute name in the COMPUTE-NAME field to let the system calculate the payment amount.—
#LPD-COMPUTE-NAME
COMPUTE_NAME
Alpha 12This field contains a compute name used to calculate the payment amount. A compute name represents an arithmetic equation (also called compute statement) consisting of data dictionary items and operation symbols. The compute name must be defined using Compute Statement (RW50.1). A compute name is required if the PAYMENT-AMT field is blank.—
#LPD-COMPUTE-CO
COMPUTE_CO
Numeric 4This field contains the company from which the compute parameters pull their data.—
#LPD-COMPANY-GROUP
COMPANY_GROUP
Alpha 12This field contains the company group from which the compute parameters pull their data.—
#LPD-AU-MATRIX-LIST
AU_MATRIX_LIST
Alpha 12This field contains the matrix list from which the compute parameters pull their data.—
#LPD-ACCT-UNIT
ACCT_UNIT
Alpha 15This field contains the accounting unit from which the compute parameters pull their data.—
#LPD-FR-ACCOUNT
FR_ACCOUNT
Numeric 6This field contains the first account in a range of accounts from which the compute parameters pull their data.—
#LPD-TH-ACCOUNT
TH_ACCOUNT
Numeric 6This field contains the last account in a range of accounts from which the compute parameters pull their data.—
#LPD-FR-SUB-ACCT
FR_SUB_ACCT
Numeric 4This field contains the first sub-account in a range of accounts from which the compute parameters pull their data.—
#LPD-TH-SUB-ACCT
TH_SUB_ACCT
Numeric 4This field contains the last sub-account in a range of accounts from which the compute parameters pull their data.—
#LPD-ACCOUNT-GROUP
ACCOUNT_GROUP
Alpha 12This field contains the account group from which the compute parameters pull their data.—
#LPD-SUB-ACCT-GRP
SUB_ACCT_GRP
Alpha 12This field contains the sub-account group from which the compute parameters pull their data.—
#LPD-GL-BUDGET-NBR
GL_BUDGET_NBR
Numeric 3This field contains the budget number associated with the compute parameters.—
#LPD-VENDOR-INV-NBR
VENDOR_INV_NBR
Alpha 22This field contains the vendor-defined invoice number.—
#LPD-RELEASED-FL
RELEASED_FL
Alpha 1This flag indicates whether this payment schedule record has been released to the Accounts Payable system. Valid values are:
  • Y Yes
  • N No
  • T Terminated
AP30.4
#LPD-BASE-CURRENCY
BASE_CURRENCY
Alpha 5The company base currency.—
#LPD-BASE-PMT-AMT
BASE_PMT_AMT
Signed 18.2——
#LPD-BASE-CURR-RATE
BASE_CURR_RATE
Signed 14.7This field contain the currency exchange rate for the lease company base currency.—
#LPD-BASE-ND
BASE_ND
Numeric 1The number of decimal positions defined for the company base currency.—
#LPD-CMP-PMT-AMT
CMP_PMT_AMT
Signed 18.2——
#LPD-MAXIMUM-PMT
MAXIMUM_PMT
Signed 18.2——
#LPD-COMPUTE-OPT
COMPUTE_OPT
Alpha 6——
#LPD-ACCRUE-FLAG
ACCRUE_FLAG
Alpha 1——
#LPD-ACCRUE-RVRS
ACCRUE_RVRS
Alpha 1——
#LPD-PERIOD
PERIOD
Numeric 2This is the current accounting period. This field is updated by GL199 (Period Closing).—
#LPD-YEAR
YEAR
Numeric 4Contains the fiscal year for the data stored on this record.—
#LPD-TAXABLE-FLAG
TAXABLE_FLAG
Alpha 1Defines if Taxable.—
#LPD-TAX-CODE
TAX_CODE
Alpha 10This field contains a code representing specific tax information. This must be valid Tax Code.—
#LPD-TAX-USAGE-CD
TAX_USAGE_CD
Alpha 10The tax usage coe for the vendor. This filed is required if the AP Company inidcates that VAT reporting required.—
#LPD-PCNT-TAXABLE
PCNT_TAXABLE
Signed 7.3The percentage determines how much retention is held. It can either be a percentage of each invoice, or it can be a percentage of a total.—
#LPD-BASE-TAXABLE
BASE_TAXABLE
Signed 18.2——
#LPD-TRAN-TAXABLE
TRAN_TAXABLE
Signed 18.2——
#LPD-BASE-LAND-TAX
BASE_LAND_TAX
Signed 18.2——
#LPD-TRAN-LAND-TAX
TRAN_LAND_TAX
Signed 18.2——

Indexes (5)

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
LPDSET1
  1. COMPANY
  2. LEASE
  3. PMT-VENDOR
  4. PMT-NBR
  5. EXEC-CODE
PrimaryAP30.4, APCP.1
LPDSET2
  1. COMPANY
  2. LEASE
  3. PMT-VENDOR
  4. PMT-NBR ↓
  5. EXEC-CODE
KeyChange—
LPDSET3
  1. COMPANY
  2. LEASE
  3. DUE-DATE
  4. PMT-VENDOR
  5. PMT-NBR
  6. EXEC-CODE
KeyChange—
LPDSET5
  1. COMPANY
  2. LEASE
  3. EXEC-CODE
  4. PMT-VENDOR
  5. PMT-NBR
KeyChange—
LPDSET6
  1. COMPANY
  2. LEASE
  3. PMT-VENDOR
  4. RECUR-NBR
  5. PMT-NBR
  6. EXEC-CODE
—

Relations

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

One to one (8) — lookups and parents

RelationTableRulesConditionField map
Acct RwheaderRWHEADERNot Required
"G"→RWH-HEAD-TYPE (RWHSET1)
LPD-ACCOUNT-GROUP→RWH-HEAD-NAME
"A"→RWH-RECORD-TYPE
Cmp GlsystemGLSYSTEMNot Required
LPD-COMPUTE-CO→GLS-COMPANY
CmputeCMPUTENot Required
LPD-COMPUTE-NAME→CMP-COMPUTE-NAME
GlcpygrpGLCPYGRPNot Required
LPD-COMPANY-GROUP→GCG-COMPANY-GROUP
GlnamesGLNAMESNot Required
LPD-COMPUTE-CO→GLN-COMPANY
LPD-ACCT-UNIT→GLN-ACCT-UNIT
LmleaseLMLEASERequired
LPD-COMPANY→LSE-COMPANY
LPD-LEASE→LSE-LEASE
MxlisthdrMXLISTHDRNot Required
"ACCTU"→MLH-OBJ-TYPE
LPD-AU-MATRIX-LIST→MLH-MATRIX-LIST
Sub RwheaderRWHEADERNot Required
"G"→RWH-HEAD-TYPE
LPD-SUB-ACCT-GRP→RWH-HEAD-NAME
"S"→RWH-RECORD-TYPE

One to many (1) — child tables

RelationTableRulesConditionField map
LminvoiceLMINVOICE
LPD-COMPANY→INV-COMPANY
LPD-LEASE→INV-LEASE
LPD-PMT-NBR→INV-PMT-NBR
LPD-PMT-VENDOR→INV-PMT-VENDOR
—→INV-CANCEL-SEQ

Programs

Updated by (1)

Referenced by (1)