ARSAPPLIED – Cash Application Select

System
Accounts Receivable (AR)
Prefix
ASG
Primary key
CR-COMPANY, CR-BATCH, CR-PYMNT-SEQ, COMPANY, TRANS-TYPE, INVOICE, PAYMENT-SEQ
Fields
15
Updated by
1 program
Referenced by
1 program

ARSAPPLIED is the Cash Application Select table in Lawson Accounts Receivable (prefix ASG). It is indexed by CR-COMPANY, CR-BATCH, CR-PYMNT-SEQ, COMPANY, TRANS-TYPE, INVOICE, PAYMENT-SEQ (ASGSET1); alternate indexes: ASGSET2 and ASGSET3. It is related 1:1 to AROITEMS and ARPAYMENT and 1:M to ARSADJUST. It is updated by CB06.2 and referenced by CB191. The table has 15 fields, 3 indexes and 3 documented relations.

About ARSAPPLIED

The Cash Application Select file contains the cash application select records that have been selected but not yet processed, thereby creating application records.

Fields (15)

Column = COBOL field name without the ASG- 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
#ASG-CR-COMPANY PK
CR_COMPANY
Numeric 4The number representing an AR company.—
#ASG-CR-BATCH PK
CR_BATCH
Numeric 6The batch of the payment.—
#ASG-CR-PYMNT-SEQ PK
CR_PYMNT_SEQ
Numeric 6The sequence number of the payment.—
#ASG-COMPANY PK
COMPANY
Numeric 4The company number of the transaction.—
#ASG-TRANS-TYPE PK
TRANS_TYPE
Alpha 1The transaction type associated with the selected application. Valid values are:
  • C Credit Memo
  • D Debit Memo
  • I Invoice
  • P Payment
—
#ASG-INVOICE PK
INVOICE
Alpha 22Used to identify the invoice.—
#ASG-PAYMENT-SEQ PK
PAYMENT_SEQ
Numeric 6A unique number assigned to each transaction to be interfaced into the Lawson system.—
#ASG-OPEN-AMT
OPEN_AMT
Signed 18.2The open amount of the transaction.—
#ASG-ORIG-OPEN-AMT
ORIG_OPEN_AMT
Signed 18.2The open amount in transaction currency.—
#ASG-CR-ORIG-AP-AMT
CR_ORIG_AP_AMT
Signed 18.2The amount of the application in the payment currency.—
#ASG-ADJ-SEQ
ADJ_SEQ
Numeric 3The sequence number of the adjustment.—
#ASG-GL-DATE
GL_DATE
Numeric 8 (yyyymmdd)This field contains the date the applications will be posted to the general ledger.—
#ASG-OPR-CODE
OPR_CODE
Alpha 10 (Lower Case)This field contains the operator code. This is the user ID of the person who last maintained this record.—
#ASG-EFT-FL
EFT_FL
Alpha 1Indicates if the open amount was selected for application during EFT processing. Valid values are: processing processing
  • Y Record was written from EFT
  • N Record was written from online
—
#ASG-SELECT-SEQ SET3
SELECT_SEQ
Numeric 6The payment application order.—

Indexes (3)

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
ASGSET1
  1. CR-COMPANY
  2. CR-BATCH
  3. CR-PYMNT-SEQ
  4. COMPANY
  5. TRANS-TYPE
  6. INVOICE
  7. PAYMENT-SEQ
PrimaryCB06.2, CB191
ASGSET2
  1. COMPANY
  2. TRANS-TYPE
  3. INVOICE
  4. PAYMENT-SEQ
—
ASGSET3
  1. CR-COMPANY
  2. CR-BATCH
  3. CR-PYMNT-SEQ
  4. SELECT-SEQ
—

Relations

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

One to one (2) — lookups and parents

RelationTableRulesConditionField map
AroitemsAROITEMSRequired
ASG-COMPANY→ARO-COMPANY (AROSET1)
ASG-TRANS-TYPE→ARO-TRANS-TYPE
ASG-INVOICE→ARO-INVOICE
ASG-PAYMENT-SEQ→ARO-PAYMENT-SEQ
ArpaymentARPAYMENTRequired
ASG-CR-COMPANY→APM-COMPANY
ASG-CR-BATCH→APM-BATCH-NBR
ASG-CR-PYMNT-SEQ→APM-PAYMENT-SEQ

One to many (1) — child tables

RelationTableRulesConditionField map
ArsadjustARSADJUSTDelete Cascades
ASG-COMPANY→ASJ-COMPANY
ASG-TRANS-TYPE→ASJ-TRANS-TYPE
ASG-INVOICE→ASJ-INVOICE
ASG-PAYMENT-SEQ→ASJ-PAYMENT-SEQ
Zeroes→ASJ-BATCH-NBR
—→ASJ-ADJ-SEQ

Programs

Updated by (1)

Referenced by (1)