APDRFTDIST – Bill of Exchange Distribution
- System
- Accounts Payable (AP)
- Prefix
DDT- Primary key
BANK-INST-CODE,TRANS-IDENT,SEQ-NBR- Fields
- 32
- Updated by
- 18 programs
- Referenced by
- 2 programs
APDRFTDIST is the Bill of Exchange Distribution table in Lawson Accounts Payable (prefix DDT). It is indexed by BANK-INST-CODE, TRANS-IDENT, SEQ-NBR (DDTSET1); alternate indexes: DDTSET2. It is related 1:1 to APAPPHIST, APCOMPANY, APDRAFTS, APPAYMENT, APVENMAST, GLMASTER and GLSYSTEM. It is updated by AP125, AP126, AP151, AP180, AP181, AP185, AP195, AP25.1 and 10 more and referenced by AP136 and AP232. The table has 32 fields, 2 indexes and 9 documented relations.
About APDRFTDIST
The Bill of Exchange Distribution file contains distribution records associated with a bill of exchange payment.
Fields (32)
Column = COBOL field name without the DDT- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
DDT-COMPANYCOMPANY | Numeric 4 | The company associated with the bill of exchange. Must be a valid record in the Accounts Payable Company file. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-BANK-INST-CODE PKBANK_INST_CODE | Alpha 3 | The payment code assigned to the bill of exchange. Represents the type of bill of exchange payment. Must be a valid bill of exchange payment transaction code in the Bank Transaction Code file. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-TRANS-IDENT PKTRANS_IDENT | Numeric 10 | A unique system-generated identification value assigned to the transaction to make the record unique. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-SEQ-NBR PKSEQ_NBR | Numeric 4 | A unique sequence number assigned to the distribution record. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-PAY-GROUPPAY_GROUP | Alpha 4 | The pay group associated with the bill of exchange. A pay group is used for processing accounts payable payments. Must be a valid record in the Pay Group file. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-DIST-TYPEDIST_TYPE | Alpha 1 | The distribution type. Valid values are:
| AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-VENDORVENDOR | Alpha 9 (Right Justified) | The payment vendor number. Must be a valid record in the Vendor file. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-TRANS-NBRTRANS_NBR | Alpha 10 (Right Justified) | The bill of exchange number. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-SUFFIXSUFFIX | Numeric 3 | The bill of exchange suffix number. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-REC-STATUSREC_STATUS | Numeric 1 | The status of the bill of exchange distribution. Valid values are:
| AP125, AP126, AP151, AP180, AP181, AP185, AP25.1, AP25.2 +7 more |
DDT-INV-VENDORINV_VENDOR | Alpha 9 (Right Justified) | The invoiced vendor number. Must be a valid record in the Vendor file. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-INVOICEINVOICE | Alpha 22 | The invoice number applied to the bill of exchange payment. Must be a valid record in the Accounts Payable Invoice file. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-INV-SUFFIXINV_SUFFIX | Numeric 3 | The invoice suffix number applied to the bill of exchange payment. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-INV-CANCEL-SEQINV_CANCEL_SEQ | Numeric 4 | The sequence number assigned upon the cancellation of a distributed bill of exchange payment. The first sequence assigned is 9999. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-INV-SEQ-NBRINV_SEQ_NBR | Numeric 4 | The sequence number assigned to a bill of exchange payment application. | AP125, AP126, AP151, AP25.1, AP25.2, AP26.1, AP27.1, AP28.1 +4 more |
DDT-INV-VOID-SEQINV_VOID_SEQ | Numeric 4 | The sequence number assigned upon the voiding of a distributed bill of exchange payment. | AP125, AP126, AP151, AP25.1, AP25.2, AP26.1, AP27.1, AP28.1 +4 more |
DDT-TRAN-DIST-AMTTRAN_DIST_AMT | Signed 18.2 | The amount of the bill of exchange distribution in the currency of the bill of exchange. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-BASE-DIST-AMTBASE_DIST_AMT | Signed 18.2 | The amount of the bill of exchange distribution in the company base currency. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-TO-BASE-AMTTO_BASE_AMT | Signed 18.2 | The amount of the bill of exchange distribution in the distribution company base currency. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-TRAN-NDTRAN_ND | Numeric 1 | The number of decimal positions defined for the bill of exchange currency. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-BASE-NDBASE_ND | Numeric 1 | The number of decimals defined for the company base currency. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-CURRENCY-CODECURRENCY_CODE | Alpha 5 | The bill of exchange currency. Must be a valid record in the Currency Code file. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-ACCR-CODEACCR_CODE | Alpha 4 | The invoice accrual code associated with the bill of exchange payment distribution. Used to default a general ledger accrual account to an invoice. Must be a valid record in the Invoice Accrual Code file. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-ORIG-COMPANYORIG_COMPANY | Numeric 4 | The company associated with the bill of exchange. Must be a valid record in the Accounts Payable Company file. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-DIST-COMPANYDIST_COMPANY | Numeric 4 | The company used for posting the bill of exchange distribution. Must be a valid record in the General Ledger Company file and a valid relationship must exist in the Intercompany Relationship file. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-DST-ACCT-UNITDST_ACCT_UNIT | Alpha 15 | The general ledger distribution accounting unit assigned to the bill of exchange distribution. Must be a valid accounting unit in the Lawson General Ledger system. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-DST-ACCOUNTDST_ACCOUNT | Numeric 6 | The general ledger distribution account number assigned to the bill of exchange distribution. Must be a valid account in the Lawson General Ledger system. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-DST-SUB-ACCTDST_SUB_ACCT | Numeric 4 | The general ledger distribution subaccount number assigned to the bill of exchange distribution. Must be a valid subaccount in the Lawson General Ledger system. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-DRAFT-CODEDRAFT_CODE | Alpha 4 | The bill of exchange accrual code associated with the bill of exchange payment. Used to default an acceptance account to the bill of exchange. Must be a valid record in the Bill of Exchange Accrual Code file. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-POST-DATEPOST_DATE | Numeric 8 (yyyymmdd) | The date used for posting the cashed or dishonored bill of exchange payment distribution to the general ledger. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
DDT-GLT-OBJ-IDGLT_OBJ_ID | Numeric 12 | This is the object identifier. It is used to relate commitments or posted transactions back to the originating subsystems. Each subsystem record that is updated as a commitment or posted transaction is assigned an object identifier. The object identifier is maintained in the subsystem files and in the Activity Commitments Detail and Activity Transaction files. The object identifier is a unique key used to drill back from Activity Management to the subsystems. | AP185 |
DDT-JRNL-BOOK-NBRJRNL_BOOK_NBR | Alpha 12 | The journal book assigned to the transaction. | AP125, AP126, AP151, AP180, AP181, AP25.1, AP25.2, AP26.1 +6 more |
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 |
|---|---|---|---|---|
DDTSET1 | BANK-INST-CODE, TRANS-IDENT, SEQ-NBR | Primary | AP125, AP126, AP136, AP151, AP180, AP181, AP185, AP195 +12 more | |
DDTSET2 | DIST-COMPANY, DST-ACCT-UNIT, DST-ACCOUNT, DST-SUB-ACCT, POST-DATE, GLT-OBJ-ID, BANK-INST-CODE, TRANS-IDENT, SEQ-NBR | KeyChange | AP180, AP181, AP28.1, AP28.2 |
Relations
One to one (9) — lookups and parents
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Apapphist | APAPPHIST | Not Required | Valid When DDT-INVOICE != Spaces | DDT-DIST-COMPANY → AH3-COMPANY, DDT-INV-VENDOR → AH3-VENDOR, DDT-INVOICE → AH3-INVOICE, DDT-INV-SUFFIX → AH3-SUFFIX, DDT-INV-CANCEL-SEQ → AH3-CANCEL-SEQ, DDT-INV-SEQ-NBR → AH3-SEQ-NBR, DDT-INV-VOID-SEQ → AH3-VOID-SEQ |
| Apcompanydist | APCOMPANY | Required | DDT-DIST-COMPANY → CPY-COMPANY | |
| Apcompanyorig | APCOMPANY | Required | DDT-ORIG-COMPANY → CPY-COMPANY | |
| Apdrafts | APDRAFTS | Required | DDT-BANK-INST-CODE → APT-BANK-INST-CODE, DDT-TRANS-IDENT → APT-TRANS-IDENT | |
| Appayment | APPAYMENT | Not Required | Valid When DDT-INVOICE != Spaces | DDT-DIST-COMPANY → APP-COMPANY, DDT-INV-VENDOR → APP-VENDOR, DDT-INVOICE → APP-INVOICE, DDT-INV-SUFFIX → APP-SUFFIX, DDT-INV-CANCEL-SEQ → APP-CANCEL-SEQ, DDT-INV-SEQ-NBR → APP-SEQ-NBR, DDT-INV-VOID-SEQ → APP-VOID-SEQ |
| Apvenmast | APVENMAST | Not Required | CPY-VENDOR-GROUP → VEN-VENDOR-GROUP, DDT-VENDOR → VEN-VENDOR | |
| Glmaster | GLMASTER | Required | DDT-DIST-COMPANY → GLM-COMPANY, DDT-DST-ACCT-UNIT → GLM-ACCT-UNIT, DDT-DST-ACCOUNT → GLM-ACCOUNT, DDT-DST-SUB-ACCT → GLM-SUB-ACCOUNT | |
| Glsystem Orig | GLSYSTEM | Required | DDT-ORIG-COMPANY → GLS-COMPANY | |
| Glsystem To | GLSYSTEM | Required | DDT-DIST-COMPANY → GLS-COMPANY |
Programs
Updated by (18)
- AP125 Batch Release
- AP126 Mass Invoice Release
- AP151 Bill of Exchange Generation
- AP180 Bill of Exchange Cashing Update
- AP181 Bill of Exchange Statement Update
- AP185 Bill of Exchange Distribution Posting
- AP195 Period Closing
- AP25.1 Batch Control
- AP25.2 Batch Review
- AP26.1 Invoice Release
- AP27.1 Single Invoice Release
- AP28.1 Bill of Exchange Acceptance by Vendor
- AP28.2 Bill of Exchange Acceptance by Date
- AP305 Accounts Payable Company Purge
- AP56.1 Bill of Exchange Entry
- CB300 History Purge
- MA61.1 Match Invoice Approval
- MAI1.1 Invoke for MAMATCH Object