POREBRECD – Contract Rebate Detail
- System
- Purchase Order (PO)
- Prefix
RRC- Primary key
CONTRACT-GROUP,CM-CONTRACT,REBATE-TYPE,DUE-DATE,REBATE-SEQ- Fields
- 20
- Updated by
- 36 programs
- Referenced by
- 0 programs
POREBRECD is the Contract Rebate Detail table in Lawson Purchase Order (prefix RRC). It is indexed by CONTRACT-GROUP, CM-CONTRACT, REBATE-TYPE, DUE-DATE, REBATE-SEQ (RRCSET1); alternate indexes: RRCSET2, RRCSET3 and RRCSET4. It is related 1:1 to POCONTGRP, POCONTRACT and POCONTREB and 1:M to POREBDIST. It is updated by AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 and 28 more. The table has 20 fields, 4 indexes and 4 documented relations.
About POREBRECD
No description in the Lawson data dictionary.
Fields (20)
Column = COBOL field name without the RRC- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
RRC-CONTRACT-GROUP PKCONTRACT_GROUP | Alpha 4 | This field contains the identifier for a group of contracts that can be shared by one or more companies. | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-CM-CONTRACT PKCM_CONTRACT | Numeric 15 | — | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-REBATE-TYPE PKREBATE_TYPE | Alpha 25 | — | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-DUE-DATE PKDUE_DATE | Numeric 8 (yyyymmdd) | The rebate due date for a CM contract. | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-REBATE-SEQ PKREBATE_SEQ | Numeric 6 | A unique sequence number for this rebate payment. | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-DOC-DATEDOC_DATE | Numeric 8 (yyyymmdd) | The document date for the rebate received. | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-COMPANYCOMPANY | Numeric 4 | The company assigned to the rebate payment. | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-AR-BATCH-NBRAR_BATCH_NBR | Numeric 6 | This identifies the batch to which the entered payments belong. | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-AR-INVOICEAR_INVOICE | Alpha 22 | This is used to identify the AR invoice. | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-API-OBJ-IDAPI_OBJ_ID | Numeric 12 | A unique identifier assigned to an APINVOICE table entry. | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-CB-CASH-CODECB_CASH_CODE | Alpha 4 | The cash code. Represents the bank account you are depositing cash receipt funds to. Must be a valid record in the Cash Code file. | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-CB-BANK-INSTCB_BANK_INST | Alpha 3 | The bank service transaction code. Represents a deposit for the cash code. Must be a valid bank service type transaction code record in the Bank Transaction Code file. | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-CB-TRANS-NBRCB_TRANS_NBR | Alpha 10 (Right Justified) | A unique number assigned to the deposit. | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-STATUSSTATUS | Numeric 1 | This field displays the status of the transaction.
| AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-TRANS-AMOUNTTRANS_AMOUNT | Signed 18.2 | Total rebate amount received in the transaction currency. | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-TRANS-CURRTRANS_CURR | Alpha 5 | Currency code for the transaction. | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-CONT-CURR-AMTCONT_CURR_AMT | Signed 18.2 | Total rebate amount received in the contract currency. | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-CURR-RATECURR_RATE | Signed 14.7 | The currency exchange rate applied to the transaction to convert from the transaction currency to the contract currency. | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +28 more |
RRC-PAYMENT-NBRPAYMENT_NBR | Alpha 10 (Right Justified) | This is the payment number for the transaction. This can be a check number, wire transfer number, or any other number that identifies the transaction. | — |
RRC-LAST-DIST-SEQLAST_DIST_SEQ | Numeric 6 | — | — |
Indexes (4)
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 |
|---|---|---|---|---|
RRCSET1 | CONTRACT-GROUP, CM-CONTRACT, REBATE-TYPE, DUE-DATE, REBATE-SEQ | Primary | AP125, AP126, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5, AP20.7 +22 more (list truncated in source) | |
RRCSET2 | API-OBJ-ID, CONTRACT-GROUP, CM-CONTRACT, REBATE-TYPE, DUE-DATE, REBATE-SEQ | Subset | Where API-OBJ-ID != Zeroes | AP30.1, AP30.2 |
RRCSET3 | COMPANY, AR-BATCH-NBR, AR-INVOICE, CONTRACT-GROUP, CM-CONTRACT, REBATE-TYPE, DUE-DATE, REBATE-SEQ | Subset | Where AR-INVOICE != Spaces | — |
RRCSET4 | CB-CASH-CODE, CB-BANK-INST, CB-TRANS-NBR, CONTRACT-GROUP, CM-CONTRACT, REBATE-TYPE, DUE-DATE, REBATE-SEQ | Subset | Where CB-TRANS-NBR != Spaces | — |
Relations
One to one (3) — lookups and parents
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Pocontgrp | POCONTGRP | Required | RRC-CONTRACT-GROUP → CNG-CONTRACT-GROUP (CNGSET1) | |
| Pocontract | POCONTRACT | Required | RRC-CONTRACT-GROUP → CMH-CONTRACT-GROUP, RRC-CM-CONTRACT → CMH-CM-CONTRACT | |
| Pocontreb | POCONTREB | Required | RRC-CONTRACT-GROUP → REB-CONTRACT-GROUP, RRC-CM-CONTRACT → REB-CM-CONTRACT, RRC-REBATE-TYPE → REB-REBATE-TYPE |
One to many (1) — child tables
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Porebdist | POREBDIST | RRC-CONTRACT-GROUP → RDS-CONTRACT-GROUP, RRC-CM-CONTRACT → RDS-CM-CONTRACT, RRC-REBATE-TYPE → RDS-REBATE-TYPE, RRC-DOC-DATE → RDS-DUE-DATE, RRC-REBATE-SEQ → RDS-REBATE-SEQ, → RDS-DIST-SEQ-NBR |
Programs
Updated by (36)
- AP125 Batch Release
- AP126 Mass Invoice Release
- 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
- AP25.1 Batch Control
- AP25.2 Batch Review
- AP26.1 Invoice Release
- AP27.1 Single Invoice Release
- AP30.1 Invoice Maintenance
- AP30.2 Distribution Adjustments
- AP30.4 Invoice Cancel
- API1.1 Add Invoice
- CB10.1 Cash Receipt Deposit
- CB10.5 Cash Receipt Detail Rebate Option
- CB150 Mass Release
- CB180 Cash Ledger Void Update
- CB191 Bank Statement Close
- CB43.1 Receipts Load Maintenance
- CB46.1 Returned Payment Entry
- CB543 Receipts Load
- CB544 Returned Payment Load
- 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