SALESREP – Accounts Receivables Sales Rep

System
Accounts Receivable (AR)
Prefix
SAW
Primary key
COMPANY, SALESMAN
Fields
7
Updated by
8 programs
Referenced by
6 programs

SALESREP is the Accounts Receivables Sales Rep table in Lawson Accounts Receivable (prefix SAW). It is indexed by COMPANY, SALESMAN (SAWSET1). It is related 1:1 to ARCOMP and TERITORY. It is updated by AR01.1, AR06.3, AR08.1, AR10.1, AR501, AR550, WH20.2 and WH20.7 and referenced by AR09.1, AR206, AR210, AR301, ARLL.1 and TX140. The table has 7 fields, 1 index and 2 documented relations.

About SALESREP

The AR Sales Representative file carries sales representative codes. Sale representative codes are added to a customer record, contained on transaction records, and are used for selection and reporting purposes.

Fields (7)

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

Field / columnTypeDescription & valuesUpdated by
SAW-COMPANY PK
COMPANY
Numeric 4The number representing an AR company.AR06.3
SAW-SALESMAN PK
SALESMAN
Numeric 4The sales representative number.AR06.3
SAW-NAME
NAME
Alpha 30 (Lower Case)The name of the sales representative.AR06.3
SAW-TERRITORY
TERRITORY
Alpha 4Sales Territory for the particular sales representative. Used by the Lawson Order Processing system.AR06.3
SAW-COMM-RATE
COMM_RATE
Percent 7.5 (Percent)Commission Rate for the sales representative. Used by the Lawson Order Processing system.AR06.3
SAW-USED-FL
USED_FL
Alpha 1Indicates whether or not the sales representative has been used. Valid values are:
  • N No
  • Y Yes
AR06.3, AR08.1, AR10.1, AR501, AR550, WH20.2, WH20.7
SAW-ACTIVE-STATUS
ACTIVE_STATUS
Alpha 1Determines the active status of the sales representative. Valid values are:
  • A Active
  • I Inactive
AR06.3

Indexes (1)

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

IndexKeysFlagsConditionUsed in
SAWSET1COMPANY, SALESMANPrimaryAR01.1, AR06.3, AR08.1, AR09.1, AR10.1, AR206, AR210, AR301 +6 more

Relations

One to one (2) — lookups and parents

RelationTableRulesConditionField map
ArcompARCOMPRequiredSAW-COMPANYACO-COMPANY
TerritoryTERITORYRequiredSAW-COMPANYTRY-COMPANY, SAW-TERRITORYTRY-TERRITORY

Programs

Updated by (8)

Referenced by (6)