ARCOMMENT – Customer Comments

System
Accounts Receivable (AR)
Prefix
CMT
Primary key
COMPANY, CUSTOMER, SEQ-NUMBER
Fields
11
Updated by
2 programs
Referenced by
3 programs

ARCOMMENT is the Customer Comments table in Lawson Accounts Receivable (prefix CMT). It is indexed by COMPANY, CUSTOMER, SEQ-NUMBER (CMTSET1); alternate indexes: CMTSET2, CMTSET3, CMTSET4 and CMTSET5. It is related 1:1 to ARCOMP, ARCUSTOMER, AROIHDR and CUSTDESC. It is updated by AR17.1 and AR301 and referenced by AR10.1, AR217 and BLI2.1. The table has 11 fields, 5 indexes and 4 documented relations.

About ARCOMMENT

The AR Customer Comments file contains comment records for customers and transactions identifiable by comment type.

Fields (11)

Column = COBOL field name without the CMT- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.

Field / columnTypeDescription & valuesUpdated by
CMT-COMPANY PK
COMPANY
Numeric 4The number representing an AR company.AR17.1
CMT-CUSTOMER PK
CUSTOMER
Alpha 9 (Right Justified)Customer number.AR17.1
CMT-SEQ-NUMBER PK
SEQ_NUMBER
Numeric 6A unique number assigned to each transaction to be interfaced into the Lawson system.AR17.1
CMT-CMMT-TYPE
CMMT_TYPE
Alpha 1Type of comment entered. Valid values are:
  • O Order Entry comment
  • C Customer comment
  • T Transaction comment
AR17.1
CMT-TRANS-TYPE
TRANS_TYPE
Alpha 1Identifies the type of transaction to which the comment belongs. Valid values are:
  • C Credit Memo
  • D Debit Memo
  • I Invoice
  • P Payment
  • M Mixed
AR17.1
CMT-INVOICE
INVOICE
Alpha 22Used to identify the invoice.AR17.1
CMT-BEG-DATE
BEG_DATE
Numeric 8 (yyyymmdd)Date at which time the comment becomes effective for online and report selection. Comments are accessible in AR17 (Comments), until they are deleted by AR17 or AR300 (Transaction Purge).AR17.1
CMT-END-DATE
END_DATE
Numeric 8 (yyyymmdd)Date at which time the comment becomes ineffective for online and report selection. Comments are accessible in AR17 (Comments), until they are deleted by AR17 Comments or by AR300 (Transaction Purge).AR17.1
CMT-PRINT-CODE
PRINT_CODE
Alpha 1The Print Code defines where the comment displays and/or prints. Valid values are:
  • B Both Display and Print
  • D Display
  • P Print
  • R Order Entry forms
AR17.1
CMT-SYS-DATE
SYS_DATE
Numeric 8 (yyyymmdd)System date that the comment was added to the system. Used to determine sequence of redisplay of comments.AR17.1
CMT-SYS-TIME
SYS_TIME
Numeric 6 (hhmmss)System time that the comment was added to the system. Used to determine sequence of redisplay of comments.AR17.1

Indexes (5)

Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
CMTSET1COMPANY, CUSTOMER, SEQ-NUMBERPrimaryAR10.1, AR17.1, AR217, AR301
CMTSET2COMPANY, CUSTOMER, CMMT-TYPE, TRANS-TYPE, INVOICE, BEG-DATE, SEQ-NUMBERSubsetWhere CMMT-TYPE = "T"AR17.1, AR217
CMTSET3COMPANY, CUSTOMER, SYS-DATE*, SYS-TIME*, SEQ-NUMBERSubsetWhere CMMT-TYPE = "C"AR17.1, AR217
CMTSET4COMPANY, CUSTOMER, SYS-DATE*, SYS-TIME*, SEQ-NUMBERSubsetWhere CMMT-TYPE = "C" And (PRINT-CODE = "B" Or PRINT-CODE = "D")
CMTSET5COMPANY, CUSTOMER, CMMT-TYPE, TRANS-TYPE, INVOICE, SEQ-NUMBERSubsetWhere CMMT-TYPE = "O"AR17.1, AR217, BLI2.1

Relations

One to one (4) — lookups and parents

RelationTableRulesConditionField map
ArcompARCOMPRequiredCMT-COMPANYACO-COMPANY
ArcustomerARCUSTOMERRequiredCMT-COMPANYACM-COMPANY, CMT-CUSTOMERACM-CUSTOMER
AroihdrAROIHDRRequiredCMT-COMPANYARH-COMPANY, CMT-CUSTOMERARH-CUSTOMER, CMT-TRANS-TYPEARH-TRANS-TYPE, CMT-INVOICEARH-INVOICE
CustdescCUSTDESCRequiredACO-CUST-GROUPCUD-CUST-GROUP, CMT-CUSTOMERCUD-CUSTOMER

Programs

Updated by (2)

Referenced by (3)