AROPIVOT – National Account Trans
- System
- Accounts Receivable (AR)
- Prefix
PVT- Primary key
NAT-COMPANY,NAT-CUSTOMER,TRANS-TYPE,INVOICE,PAYMENT-SEQ,COMPANY,CUSTOMER- Fields
- 40
- Updated by
- 4 programs
- Referenced by
- 0 programs
AROPIVOT is the National Account Trans table in Lawson Accounts Receivable (prefix PVT). It is indexed by NAT-COMPANY, NAT-CUSTOMER, TRANS-TYPE, INVOICE, PAYMENT-SEQ, COMPANY, CUSTOMER (PVTSET1); alternate indexes: PVTSET10, PVTSET11, PVTSET12, PVTSET13, PVTSET14, PVTSET2, PVTSET3, PVTSET4 and 5 more. It is related 1:1 to AROIHDR, AROITEMS, ARSAPPLIED and CBBANKINST and 1:M to ARAPPLIED. It is updated by AR12.1, AR12.2, ARLL.1 and CB06.2. The table has 40 fields, 14 indexes and 5 documented relations.
About AROPIVOT
No description in the Lawson data dictionary.
Fields (40)
Column = COBOL field name without the PVT- 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 / column | Type | Description & values | Updated by |
|---|---|---|---|
#PVT-NAT-COMPANY PKNAT_COMPANY | Numeric 4 | The national account number representing an AR company. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-NAT-CUSTOMER PKNAT_CUSTOMER | Alpha 9 (Right Justified) | The national account customer number. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-COMPANY PKCOMPANY | Numeric 4 | The number representing an AR company. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-CUSTOMER PKCUSTOMER | Alpha 9 (Right Justified) | This field contains the number that represents a customer. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-CUST-PO-NBR SET14 SET7CUST_PO_NBR | Alpha 22 | The purchase order number of the related transaction. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-TRANS-TYPE PKTRANS_TYPE | Alpha 1 | The transaction type of the related transaction.
| AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-INVOICE PKINVOICE | Alpha 22 | Used to identify the invoice. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-TRANS-DATETRANS_DATE | Numeric 8 (yyyymmdd) | The date of the related transaction. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-DUE-DATE SET2 SET9DUE_DATE | Numeric 8 (yyyymmdd) | The related transaction due date. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-DISC-DATEDISC_DATE | Numeric 8 (yyyymmdd) Occurs 3 Times ×3 | The related transaction discount date. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-DISC-PCTDISC_PCT | Percent 7.5 (Percent) Occurs 3 Times ×3 | The related transaction discount percent. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-PROCESS-LEVEL SET11 SET4PROCESS_LEVEL | Alpha 5 | This field contains the process level, or the related transaction. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-ACTIVITY SET13 SET6ACTIVITY | Alpha 15 | The Activity value of the related transaction. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-BASE-AMTBASE_AMT | Signed 18.2 | This is the amount of the related transaction in the company base amount. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-TRAN-AMTTRAN_AMT | Signed 18.2 | The amount of the related transaction in transaction currency. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-OPEN-BASEOPEN_BASE | Signed 18.2 | The unapplied amount of the related transaction in company base currency. | AR12.1, AR12.2, CB06.2 |
#PVT-OPEN-TRANOPEN_TRAN | Signed 18.2 | The unapplied amount of the related transaction in transaction currency. | AR12.1, AR12.2, CB06.2 |
#PVT-SORT-AMOUNT SET10 SET3SORT_AMOUNT | Numeric 17 | The unapplied amount of the related transaction used for sorting purposes. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-TRANS-USER1 SET12 SET5TRANS_USER1 | Alpha 10 | The related transaction's User 1 field. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-XREF-TYPEXREF_TYPE | Alpha 1 | The related transaction's cross reference type field. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-XREF-NBRXREF_NBR | Alpha 22 | The related transaction's cross reference number field. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-PAYMENT-SEQ PKPAYMENT_SEQ | Numeric 6 | This is the related transaction's generated sequence number to separate individual invoice payment requirements. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-ORIG-CURRENCYORIG_CURRENCY | Alpha 5 | The related transaction's currency. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-ORIG-NDORIG_ND | Numeric 1 | The related transaction's currency decimal indicator. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-ORIG-RATEORIG_RATE | Signed 14.7 | The related transaction's currency exchange rate. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-CURR-MUDVCURR_MUDV | Alpha 1 | The related transaction's currency multiply or divide indicator. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-SUM-LINESUM_LINE | Alpha 1 | The related transaction's sum line indicator. Valid values are:
| AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-NAT-FLAGNAT_FLAG | Alpha 1 | The related customer's national account orientation. Valid values are:
| AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-APPLIED-SEQAPPLIED_SEQ | Numeric 7 | The related transction's applied sequence number. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-BANK-INST-CODEBANK_INST_CODE | Alpha 3 | The related transaction's payment code representing a type of cash payment (with atributes for either receiving AP payments, or creating EFT payments), bill of exchange payment, or bank service transaction. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-BANK-INST-TYPEBANK_INST_TYPE | Alpha 1 | This categorizes the type of bank instrument.
| AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-ALT-TYPEALT_TYPE | Alpha 1 | The related transaction's alternate transaction type used to access the transaction header record.
| AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-ORIG-DISC-AMTORIG_DISC_AMT | Signed 18.2 Occurs 3 Times ×3 | — | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-MAJ-CLASSMAJ_CLASS | Alpha 4 | — | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-MIN-CLASSMIN_CLASS | Alpha 4 | — | — |
#PVT-RISK-CDRISK_CD | Alpha 1 | — | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-SALESMANSALESMAN | Numeric 4 | This field contains the code that represents the primary salesrep of this line. If left blank, this defaults from the order header. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-TERMS-CDTERMS_CD | Alpha 5 | A user-defined code representing a method of determining invoice due and discount dates. | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-AC-CUSTOMER-IDAC_CUSTOMER_ID | Alpha 5 | — | AR12.1, AR12.2, ARLL.1, CB06.2 |
#PVT-BATCH-NBRBATCH_NBR | Numeric 6 | — | AR12.1, AR12.2, ARLL.1, CB06.2 |
Indexes (14)
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.
| Index | Keys | Flags | Condition | Used in |
|---|---|---|---|---|
PVTSET1 |
| Primary | AR12.1, AR12.2, ARLL.1, CB06.2 | |
PVTSET10 |
| KeyChange, Subset | Where NAT-FLAG = "I" | — |
PVTSET11 |
| Subset | Where NAT-FLAG = "I" | — |
PVTSET12 |
| Subset | Where NAT-FLAG = "I" | — |
PVTSET13 |
| Subset | Where NAT-FLAG = "I" | AR12.2 |
PVTSET14 |
| Subset | Where NAT-FLAG = "I" | — |
PVTSET2 |
| — | ||
PVTSET3 |
| KeyChange | — | |
PVTSET4 |
| — | ||
PVTSET5 |
| — | ||
PVTSET6 |
| — | ||
PVTSET7 |
| — | ||
PVTSET8 |
| Subset | Where NAT-FLAG = "I" | AR12.1, AR12.2 |
PVTSET9 |
| Subset | Where NAT-FLAG = "I" | — |
Relations
One to one (4) — lookups and parents
| Relation | Table | Rules | Condition | Field map | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Aroihdr | AROIHDR | Required |
| |||||||||||||
| Aroitems | AROITEMS | Required |
| |||||||||||||
| Arsapplied | ARSAPPLIED | Not Required |
| |||||||||||||
| Cbbankinst | CBBANKINST | Required |
|
One to many (1) — child tables
| Relation | Table | Rules | Condition | Field map | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Arapplied | ARAPPLIED |
|