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.

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
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
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 marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
LPDSET1COMPANY, LEASE, PMT-VENDOR, PMT-NBR, EXEC-CODEPrimaryAP30.4, APCP.1
LPDSET2COMPANY, LEASE, PMT-VENDOR, PMT-NBR*, EXEC-CODEKeyChange
LPDSET3COMPANY, LEASE, DUE-DATE, PMT-VENDOR, PMT-NBR, EXEC-CODEKeyChange
LPDSET5COMPANY, LEASE, EXEC-CODE, PMT-VENDOR, PMT-NBRKeyChange
LPDSET6COMPANY, LEASE, PMT-VENDOR, RECUR-NBR, PMT-NBR, EXEC-CODE

Relations

One to one (8) — lookups and parents

RelationTableRulesConditionField map
Acct RwheaderRWHEADERNot Required"G"RWH-HEAD-TYPE (RWHSET1), LPD-ACCOUNT-GROUPRWH-HEAD-NAME, "A"RWH-RECORD-TYPE
Cmp GlsystemGLSYSTEMNot RequiredLPD-COMPUTE-COGLS-COMPANY
CmputeCMPUTENot RequiredLPD-COMPUTE-NAMECMP-COMPUTE-NAME
GlcpygrpGLCPYGRPNot RequiredLPD-COMPANY-GROUPGCG-COMPANY-GROUP
GlnamesGLNAMESNot RequiredLPD-COMPUTE-COGLN-COMPANY, LPD-ACCT-UNITGLN-ACCT-UNIT
LmleaseLMLEASERequiredLPD-COMPANYLSE-COMPANY, LPD-LEASELSE-LEASE
MxlisthdrMXLISTHDRNot Required"ACCTU"MLH-OBJ-TYPE, LPD-AU-MATRIX-LISTMLH-MATRIX-LIST
Sub RwheaderRWHEADERNot Required"G"RWH-HEAD-TYPE, LPD-SUB-ACCT-GRPRWH-HEAD-NAME, "S"RWH-RECORD-TYPE

One to many (1) — child tables

RelationTableRulesConditionField map
LminvoiceLMINVOICELPD-COMPANYINV-COMPANY, LPD-LEASEINV-LEASE, LPD-PMT-NBRINV-PMT-NBR, LPD-PMT-VENDORINV-PMT-VENDOR, INV-CANCEL-SEQ

Programs

Updated by (1)

Referenced by (1)