APDISTCODE – Distribution Code Detail
- System
- Accounts Payable (AP)
- Prefix
DTC- Primary key
COMPANY,DIST-CODE,SEQ-NBR- Fields
- 33
- Updated by
- 11 programs
- Referenced by
- 42 programs
APDISTCODE is the Distribution Code Detail table in Lawson Accounts Payable (prefix DTC). It is indexed by COMPANY, DIST-CODE, SEQ-NBR (DTCSET1). It is related 1:1 to APCOMPANY, APDISTHDR and GLMASTER. It is updated by AP05.3, AP305, PO150, PO25.6, PO25.7, PO26.2, PO26.4, PO26.5 and 3 more and referenced by AP00.4, AP00.5, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 and 34 more. The table has 33 fields, 1 index and 3 documented relations.
About APDISTCODE
The Distribution Code Detail file contains distribution code detail records. A distribution code detail record represents default information for one line of expense distribution. Each distribution code detail record is related to one record in the Distribution Code Header file. More than one detail record can be associated with the same header record. Distribution codes are used to automatically create expense distributions or expense distribution "shells" for invoices or to split invoice distributions into multiple distribution lines.
Fields (33)
Column = COBOL field name without the DTC- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
DTC-COMPANY PKCOMPANY | Numeric 4 | The company number. Must be a valid company in the Accounts Payable Company file. | AP05.3 |
DTC-DIST-CODE PKDIST_CODE | Alpha 9 | A user-defined code used to automatically create expense distributions or expense distribution "shells" for invoices or to split an invoice distribution into multiple distributions. Must be a valid record in the Distribution Code Header file. | AP05.3 |
DTC-SEQ-NBR PKSEQ_NBR | Numeric 4 | A system-assigned sequence number used to identify the distribution code detail record. | AP05.3 |
DTC-DIST-COMPANYDIST_COMPANY | Numeric 4 | The company the expense distribution should be posted to. Must be a valid record in the General Ledger Company file and a valid relationship must exist in the Intercompany Relationship file. If left blank, the company defaults. | AP05.3 |
DTC-DIS-ACCT-UNITDIS_ACCT_UNIT | Alpha 15 | The general ledger distribution accounting unit used for posting the expense distribution. Must be a valid accounting unit in the Lawson General Ledger system. | AP05.3 |
DTC-DIS-ACCOUNTDIS_ACCOUNT | Numeric 6 | The general ledger distribution account number used for posting the expense distribution. Must be a valid account number in the Lawson General Ledger system. | AP05.3 |
DTC-DIS-SUB-ACCTDIS_SUB_ACCT | Numeric 4 | The general ledger distribution subaccount number used for posting the expense distribution. Must be a valid subaccount in General Ledger. | AP05.3 |
DTC-TRAN-DIST-AMTTRAN_DIST_AMT | Signed 18.2 | The transaction amount for the distribution. If entered, the Allocation Percentage and Unit Amount fields must be blank. | AP05.3 |
DTC-DIST-RATEDIST_RATE | Signed 6.3 | The percent of the invoice amount that should be allocated to the distribution. If entered, the Distribution Amount and Unit Amount fields must be blank. | AP05.3 |
DTC-ASSET-DESCASSET_DESC | Alpha 30 (Lower Case) | A description of the asset assigned to the distribution, if assigned. | AP05.3 |
DTC-TAG-NBRTAG_NBR | Alpha 12 | The tag number associated with the distribution. Represents a short name for a part of an asset. | AP05.3 |
DTC-ITEM-NBRITEM_NBR | Alpha 32 | The item number assigned to the distribution. Represents one element of an asset that is made up of multiple elements, but is depreciated as a common asset unit. If assigned, an Asset Template must also be assigned to the distribution. | AP05.3 |
DTC-ITEM-DESCITEM_DESC | Alpha 30 | The item description. | AP05.3 |
DTC-ITEM-QUANTITYITEM_QUANTITY | Numeric 8 | The number of units that make up the asset item. Each unit of an item is exactly the same as every other unit of the item. | AP05.3 |
DTC-ASSET-TEMPLATEASSET_TEMPLATE | Alpha 10 | The asset template assigned to the distribution. Represents asset information used to create a record in the Lawson Asset Management system. If assigned, the Asset number field must be blank. | AP05.3 |
DTC-MODEL-NUMBERMODEL_NUMBER | Alpha 30 | The model number assigned to the distribution. Used in conjunction with the Asset Template field. If assigned, an asset template must also be assigned to the distribution. | AP05.3 |
DTC-SERIAL-NUMBERSERIAL_NUMBER | Alpha 30 | The serial number assigned to the distribution. Represents the serial number of an asset. Used in conjunction with the Asset Template field. If assigned, an asset template must also be assigned to the distribution. | AP05.3 |
DTC-HOLD-AMHOLD_AM | Alpha 1 | This field indicates whether to hold the asset in the Asset Interface file. Being held keeps items from becoming assets until they are released from hold. Valid values are:
| AP05.3 |
DTC-ASSETASSET | Numeric 10 | The asset number assigned to the distribution. Represents an asset belonging to the company. If assigned, the Asset Template, Model, Serial, Tag, and Item fields must be blank. | AP05.3 |
DTC-ACTIVITYACTIVITY | Alpha 15 | The activity assigned to the distribution. Used to group expense distribution amounts to track costs for projects, jobs, construction, and so on, without having to define additional general ledger account numbers. Must be a valid activity in the Lawson Activity Management system. | AP05.3, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7, AP21.1 +9 more |
DTC-DST-REFERENCEDST_REFERENCE | Alpha 10 | The reference value assigned to the distribution. If left blank, the default reference value defined for the company defaults. | AP05.3 |
DTC-DESCRIPTIONDESCRIPTION | Alpha 30 (Lower Case) | The distribution description. If left blank, the vendor number and name defaults on the distribution during invoice entry. | AP05.3 |
DTC-ACCT-CATEGORYACCT_CATEGORY | Alpha 5 | The account categories assigned to the distribution. Used with the Activity field. | AP05.3, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7, AP21.1 +9 more |
DTC-BILL-CATEGORYBILL_CATEGORY | Alpha 32 | — | — |
DTC-UNT-AMOUNTUNT_AMOUNT | Signed 18.2 | The total units for the distribution. If entered, the Distribution Amount and Allocation Percentage fields must be blank. | AP05.3 |
DTC-COMBINECOMBINE | Alpha 10 | This field indicates whether to combine items as one asset. | AP05.3 |
DTC-ASSET-GROUPASSET_GROUP | Alpha 10 | The asset group assigned to the distribution. | AP05.3 |
DTC-ACCT-UNITACCT_UNIT | Alpha 15 | The accounting unit assigned to the distribution, if assigned. Must be a valid record in the Lawson General Ledger system. | — |
DTC-LOCATION-NAMELOCATION_NAME | Alpha 15 | A user-defined location name which represents where an asset is physically located. Locations are used to report asset information. | AP05.3 |
DTC-DIVISIONDIVISION | Alpha 15 | A user-defined division which is used for reporting assets. | AP05.3 |
DTC-AU-GROUPAU_GROUP | Alpha 10 | Accounting unit groups group and identify the accounting units to use when you create journal entries for adding, adjusting, transferring, or disposing of assets. Changes to accounting unit groups are dynamic, affecting all assets using the accounting unit group. Accounting unit group names are user-definable, and accounting unit groups are set up by company. | AP05.3 |
DTC-BAR-CODEBAR_CODE | Alpha 30 | — | AP05.3 |
DTC-ITEM-LOC-DTLITEM_LOC_DTL | Alpha 14 | — | AP05.3 |
Indexes (1)
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 |
|---|---|---|---|---|
DTCSET1 | COMPANY, DIST-CODE, SEQ-NBR | Primary | AP00.4, AP00.5, AP05.3, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +22 more (list truncated in source) |
Relations
One to one (3) — lookups and parents
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Apcompany | APCOMPANY | Required | DTC-COMPANY → CPY-COMPANY | |
| Apdisthdr | APDISTHDR | Required | DTC-COMPANY → HDR-COMPANY, DTC-DIST-CODE → HDR-DIST-CODE | |
| Glmaster | GLMASTER | Required | When DTC-DIS-ACCT-UNIT != Spaces Or DTC-DIS-ACCOUNT != Zeroes | DTC-COMPANY → GLM-COMPANY, DTC-DIS-ACCT-UNIT → GLM-ACCT-UNIT, DTC-DIS-ACCOUNT → GLM-ACCOUNT, DTC-DIS-SUB-ACCT → GLM-SUB-ACCOUNT |
Programs
Updated by (11)
- AP05.3 Distribution Code
- AP305 Accounts Payable Company Purge
- PO150 Bid Load to Contract or Catalog
- PO25.6 Vendor Agreement Line
- PO25.7 Service Agreement Line
- PO26.2 Vendor Agreement Line Distributions
- PO26.4 Vendor Agreement Line Price Breaks
- PO26.5 Vendor Agreement Line Price Breaks
- PO28.2 Vendor Agreement Line Detail List
- PO36.2 Vendor Agreement Import Manual Input
- PO536 Vendor Price Agreement Load
Referenced by (42)
- AP00.4 Company
- AP00.5 Process Level
- AP20.1 Basic Invoice
- AP20.2 Taxed Invoice
- AP20.3 Detail Invoice
- AP20.4 Invoice Line Detail
- AP20.5 Multiple Invoice
- AP20.7 Distributions
- AP205 Accounts Payable Codes Listing
- AP21.1 View Distributions
- AP23.1 Transit Invoice Entry
- AP236 Invoice Payment Approval Edit
- AP520 Invoice Interface
- DR100 Distribution Requirements Report
- IC141 Location Replenishment Report
- IC142 Replenishment by Requisition PO's
- IC83.1 Par Location Counts
- 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
- MA43.7 GL Distribution
- MA44.1 Invoice Line Detail - Purchase Order
- MA44.2 Invoice Line Detail- Service
- PD22.1 P-Card Charge Accounts
- PD570 P-Card Charge Import
- PO21.3 Account Distribution
- PO32.1 GL distribution for returns
- PO520 Purchase Order Interface from Non Lawson
- RQ10.1 Requisition
- RQ10.2 Account Distribution
- RQ10.3 Select and Copy
- RQ10.4 Requisition Line Entry Detail
- RQ10.5 Substitutes
- RQ11.1 Kit Accessories
- RQ35.1 Requisition Returns
- RQ500 Requisition Interface
- RQID.1 RQRQHUPD Invoke Object
- RQIF.1 RQRLNUPD Invoke Object
- RQIJ.1 Requisition Copy