APVENDIV – The APVENDIV file stores the diversity codes and their certification dates for the related vendor in APVENMAST
- System
- Accounts Payable (AP)
- Prefix
VDC- Primary key
VENDOR-GROUP,VENDOR,LOCATION-CODE,DIVERSE-CODE,DCERT-DATE- Fields
- 7
- Updated by
- 2 programs
- Referenced by
- 19 programs
APVENDIV is the The APVENDIV file stores the diversity codes and their certification dates for the related vendor in APVENMAST table in Lawson Accounts Payable (prefix VDC). It is indexed by VENDOR-GROUP, VENDOR, LOCATION-CODE, DIVERSE-CODE, DCERT-DATE (VDCSET1); alternate indexes: VDCSET2. It is related 1:1 to APDIVCODE, APVENLOC, APVENMAST and PROCUREGRP and 1:M to APINVOICE, APVENBAL and POVAGRMTHD. It is updated by AP14.4 and AP300 and referenced by AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7, AP21.1, AP23.1 and 11 more. The table has 7 fields, 2 indexes and 7 documented relations.
About APVENDIV
The APVENDIV file stores the diversity codes and their certification dates for the related vendor in APVENMAST
Fields (7)
Column = COBOL field name without the VDC- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
VDC-VENDOR-GROUP PKVENDOR_GROUP | Alpha 4 | A vendor group represents a group of vendors that can be shared by one or more companies. | AP14.4 |
VDC-VENDOR PKVENDOR | Alpha 9 (Right Justified) | The vendor's identification code. | AP14.4 |
VDC-LOCATION-CODE PKLOCATION_CODE | Alpha 4 | A user-defined code that represents an alternate purchasing or remittance location for the vendor. | AP14.4 |
VDC-DIVERSE-CODE PKDIVERSE_CODE | Alpha 5 | Diversity Code for Account Payable Vendors | AP14.4 |
VDC-CERT-DATECERT_DATE | Numeric 8 (yyyymmdd) | This is the date the vendor was certified for the diversity code | AP14.4 |
VDC-DCERT-DATE PKDCERT_DATE | Numeric 8 (yyyymmdd) | This is the date the expiration date for the diversity code of the vendor | AP14.4 |
VDC-REVIEW-DATEREVIEW_DATE | Numeric 8 (yyyymmdd) | This is the date the diversity code should be reviewed for certification | AP14.4 |
Indexes (2)
Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.
| Index | Keys | Flags | Condition | Used in |
|---|---|---|---|---|
VDCSET1 | VENDOR-GROUP, VENDOR, LOCATION-CODE, DIVERSE-CODE, DCERT-DATE | Primary | AP14.4, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7, AP21.1 +13 more | |
VDCSET2 | DIVERSE-CODE, VENDOR-GROUP, VENDOR, LOCATION-CODE, DCERT-DATE | — |
Relations
One to one (4) — lookups and parents
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Apdivcode | APDIVCODE | Required | VDC-DIVERSE-CODE → AVC-DIVERSE-CODE (AVCSET1) | |
| Apvenloc | APVENLOC | Required | VDC-VENDOR-GROUP → VLO-VENDOR-GROUP, VDC-VENDOR → VLO-VENDOR, VDC-LOCATION-CODE → VLO-LOCATION-CODE | |
| Apvenmast | APVENMAST | Required | VDC-VENDOR-GROUP → VEN-VENDOR-GROUP, VDC-VENDOR → VEN-VENDOR | |
| Procuregrp | PROCUREGRP | Required | VDC-VENDOR-GROUP → PCG-VENDOR-GROUP |
One to many (3) — child tables
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Apinvoice | APINVOICE | VDC-VENDOR-GROUP → API-VENDOR-GROUP, VDC-VENDOR → API-VENDOR, → API-INVOICE, → API-SUFFIX, → API-CANCEL-SEQ, → API-COMPANY | ||
| Apvenbal | APVENBAL | VDC-VENDOR-GROUP → VBA-VENDOR-GROUP, VDC-VENDOR → VBA-VENDOR, VDC-LOCATION-CODE → VBA-LOCATION-CODE, → VBA-COMPANY | ||
| Povagrmthd | POVAGRMTHD | PCG-PROCURE-GROUP → PVH-PROCURE-GROUP, VDC-VENDOR → PVH-VENDOR, VDC-LOCATION-CODE → PVH-PURCH-FR-LOC, → PVH-VEN-AGRMT-REF |
Programs
Updated by (2)
Referenced by (19)
- AP20.1 Basic Invoice
- AP20.2 Taxed Invoice
- AP20.3 Detail Invoice
- AP20.4 Invoice Line Detail
- AP20.5 Multiple Invoice
- AP20.7 Distributions
- AP21.1 View Distributions
- AP23.1 Transit Invoice Entry
- AP520 Invoice Interface
- API1.1 Add Invoice
- MA41.1 Add-On Cost Detail - Purchase Order
- MA41.2 Add On Cost Lookup
- MA41.4 Miscellaneous Add-On Cost
- MA41.7 AOC Approval Entry
- MA42.2 Memo Line AOC Detail
- MA43.2 Purchase Order Lookup
- MA44.1 Invoice Line Detail - Purchase Order
- MA44.2 Invoice Line Detail- Service
- MA540 Invoice Interface