VRBT_ACCRSUM_VW

(SQL View)
Index Back

Supplier Rebate Accrual Detail

Supplier Rebate Accrual Detail

SELECT DISTINCT A.SETID , A.VRBT_ID , A.BUSINESS_UNIT_PO , A.PO_ID , A.PO_LINE_NBR , A.PO_SCHED_NBR , A.VRBT_TRANS_TYPE , A.BUSINESS_UNIT , A.DOC_ID , A.LINE_NBR , A.RECV_SHIP_SEQ , A.SEQ_NUM , D.VRBT_RULE_ID , D.VRBT_RULE_TYPE , A.VENDOR_SETID , A.VENDOR_ID , A.VNDR_LOC , A.VRBT_TRANS_STATUS , A.VRBT_ACCR_STATUS , A.TRANS_DATE , A.ITM_SETID , A.INV_ITEM_ID , A.CATEGORY_ID , A.TOTAL_CLAIM_AMT , A.TOTAL_CLAIMED_AMT , A.CURRENCY_CD , A.MERCHANDISE_AMT , D.REBATE_UNIT , D.RBTABLE_AMT , D.RBTABLE_QTY , D.UNIT_MEASURE_VRBT , D.REBATE_AMOUNT , A.BUSINESS_UNIT_RECV , A.RECEIVER_ID , A.RECV_LN_NBR , A.RECV_SHIP_SEQ_NBR , A.BUSINESS_UNIT_AP , A.VOUCHER_ID , A.VOUCHER_LINE_NUM , A.BUSINESS_UNIT_RTV , A.RTV_ID , A.RTV_LN_NBR , D.ACCEPTED_QTY_VRBT , A.CLAIM_ID FROM PS_VRBT_ACCR_HDR A , PS_VRBT_ACCR_DTL D WHERE A.SETID = D.SETID AND A.VRBT_ID = D.VRBT_ID AND A.BUSINESS_UNIT_PO = D.BUSINESS_UNIT_PO AND A.PO_ID = D.PO_ID AND A.PO_LINE_NBR = D.PO_LINE_NBR AND A.PO_SCHED_NBR = D.PO_SCHED_NBR AND A.VRBT_TRANS_TYPE = D.VRBT_TRANS_TYPE AND A.BUSINESS_UNIT = D.BUSINESS_UNIT AND A.DOC_ID = D.DOC_ID AND A.LINE_NBR = D.LINE_NBR AND A.RECV_SHIP_SEQ = D.RECV_SHIP_SEQ AND A.SEQ_NUM = D.SEQ_NUM AND A.VRBT_ACCR_STATUS IN ('C','I')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 VRBT_ID Character(25) VARCHAR2(25) NOT NULL Vendor Rebate ID
3 BUSINESS_UNIT_PO Character(5) VARCHAR2(5) NOT NULL PO Business Unit
4 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
5 PO_LINE_NBR Number(5,0) INTEGER NOT NULL Purchase Order Line Number
6 PO_SCHED_NBR Number(3,0) SMALLINT NOT NULL PO Schedule Number
7 VRBT_TRANS_TYPE Character(4) VARCHAR2(4) NOT NULL Transaction Type
PREV=Previous Period
RCV=Receipt
RTV=Return To Vendor (Supplier)
VCHR=Voucher
8 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
9 DOC_ID Character(50) VARCHAR2(50) NOT NULL ID
10 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
11 RECV_SHIP_SEQ Number(3,0) SMALLINT NOT NULL Receiver Shipping Sequence
12 SEQ_NUM Number(3,0) SMALLINT NOT NULL Sequence
13 VRBT_RULE_ID Number(5,0) INTEGER NOT NULL Vendor Rebate Agreement Rule ID
14 VRBT_RULE_TYPE Character(1) VARCHAR2(1) NOT NULL Vendor Rebate Agreement Rule Type: There are 5 types of Rebate Rules 1) Stepped/Standard, 2) Market Contribution, 3) Growth Bonus., 4) Flat Rebate,5) Retrospective
F=Flat Amount
G=Growth Bonus
M=Marketing Contribution
R=Retrospective
S=Stepped/Standard
15 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
16 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
17 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
18 VRBT_TRANS_STATUS Character(4) VARCHAR2(4) NOT NULL Vendor Rebate Accrual Status
RECV=Received
RTRN=Returned
VCHR=Vouchered
19 VRBT_ACCR_STATUS Character(1) VARCHAR2(1) NOT NULL Rebate Accrual Status
C=Complete
E=Error
I=In Process
20 TRANS_DATE Date(10) DATE Transaction Date
21 ITM_SETID Character(5) VARCHAR2(5) NOT NULL Item SetID
22 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
23 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
24 TOTAL_CLAIM_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Total Claim Amount
25 TOTAL_CLAIMED_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Total Claimed Amount
26 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
27 MERCHANDISE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label
28 REBATE_UNIT Character(1) VARCHAR2(1) NOT NULL Rebate Unit
A=Amount
Q=Quantity
29 RBTABLE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Rebateable Amount
30 RBTABLE_QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Rebateable Quantity
31 UNIT_MEASURE_VRBT Character(3) VARCHAR2(3) NOT NULL Vendor Rebate UOM
32 REBATE_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Rebate Amount
33 BUSINESS_UNIT_RECV Character(5) VARCHAR2(5) NOT NULL Receiving Business Unit
34 RECEIVER_ID Character(10) VARCHAR2(10) NOT NULL Receiver number
35 RECV_LN_NBR Number(5,0) INTEGER NOT NULL Receipt Line
36 RECV_SHIP_SEQ_NBR Number(3,0) SMALLINT NOT NULL Receiver Shipping Sequence
37 BUSINESS_UNIT_AP Character(5) VARCHAR2(5) NOT NULL AP Business Unit
38 VOUCHER_ID Character(8) VARCHAR2(8) NOT NULL Voucher ID
39 VOUCHER_LINE_NUM Number(5,0) INTEGER NOT NULL Voucher Line Number
40 BUSINESS_UNIT_RTV Character(5) VARCHAR2(5) NOT NULL RTV Business Unit
41 RTV_ID Character(10) VARCHAR2(10) NOT NULL Return To Vendor ID
42 RTV_LN_NBR Number(5,0) INTEGER NOT NULL Return To Vendor Line
43 ACCEPTED_QTY_VRBT Signed Number(17,4) DECIMAL(15,4) NOT NULL Accepted Quantity - Rebate UOM
44 CLAIM_ID Character(15) VARCHAR2(15) NOT NULL Claim ID