VCHR_LOG_LN_VW

(SQL View)
Index Back

Match Log Exceptions


SELECT A.BUSINESS_UNIT , A.VOUCHER_ID , A.VOUCHER_LINE_NUM , A.BUSINESS_UNIT_PO , A.PO_ID , A.LINE_NBR , A.SCHED_NBR , A.BUSINESS_UNIT_RECV , A.RECEIVER_ID , A.RECV_LN_NBR , A.RECV_SHIP_SEQ_NBR , A.VENDOR_ID , A.VENDOR_PO , A.VENDOR_RECV , A.PYMNT_TERMS_CD , A.PYMNT_TERMS_CD_PO , A.INV_ITEM_ID , A.INV_ITEM_ID_PO , A.INV_ITEM_ID_RECV , A.QTY_PO , A.QTY_RECEIVED_CNVT , A.QTY_VCHR_CNVT , A.QTY_ACCEPTED_CNVT , A.QTY_INSPECTED_CNVT , A.PRICE_PO , A.UNIT_PRICE_CNVT , C.MATCH_STATUS_VCHR , A.BUYER_ID , A.ASSTN_NAME , A.ALGTHM_BEHAVIOR ,B.MATCH_RULE_ID ,B.SETID ,B.MATCH_CNTRL_ID ,B.PROCESS_INSTANCE FROM PS_VCHR_MTCH_DETLS A , PS_AP_MTCH_EXCPTN B , PS_VOUCHER C WHERE A.PROCESS_INSTANCE = B.PROCESS_INSTANCE AND A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.VOUCHER_ID = B.VOUCHER_ID AND A.VOUCHER_LINE_NUM = B.VOUCHER_LINE_NUM AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.VOUCHER_ID = C.VOUCHER_ID AND C.MATCH_STATUS_VCHR IN ('E', 'O', 'D') AND A.PROCESS_INSTANCE IN ( SELECT DISTINCT MAX(PROCESS_INSTANCE) FROM PS_VCHR_MTCH_DETLS WHERE BUSINESS_UNIT = A.BUSINESS_UNIT AND VOUCHER_ID = A.VOUCHER_ID AND VOUCHER_LINE_NUM = A.VOUCHER_LINE_NUM AND BUSINESS_UNIT_PO = A.BUSINESS_UNIT_PO AND PO_ID = A.PO_ID AND LINE_NBR = A.LINE_NBR AND SCHED_NBR = A.SCHED_NBR AND BUSINESS_UNIT_RECV = A.BUSINESS_UNIT_RECV AND RECEIVER_ID = A.RECEIVER_ID AND RECV_LN_NBR = A.RECV_LN_NBR AND RECV_SHIP_SEQ_NBR = A.RECV_SHIP_SEQ_NBR GROUP BY BUSINESS_UNIT, VOUCHER_ID, VOUCHER_LINE_NUM) UNION SELECT A.BUSINESS_UNIT , A.VOUCHER_ID , A.VOUCHER_LINE_NUM , B.BUSINESS_UNIT_PO , B.PO_ID , 0 , 0 , ' ' , ' ' , 0 , 0 , B.VENDOR_ID , ' ' , ' ' , B.PYMNT_TERMS_CD , ' ' , ' ' , ' ' , ' ' , 0 , 0 , 0 , 0 , 0 , 0 , 0 , B.MATCH_STATUS_VCHR , C.BUYER_ID , ' ' , ' ' , A.MATCH_RULE_ID , A.SETID , A.MATCH_CNTRL_ID , A.PROCESS_INSTANCE FROM PS_AP_MTCH_EXCPTN A , PS_VOUCHER B , PS_PO_HDR C , PS_VOUCHER_LINE D WHERE A.VOUCHER_LINE_NUM = 0 AND A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.VOUCHER_ID = B.VOUCHER_ID AND B.MATCH_STATUS_VCHR IN ('E', 'O', 'D') AND B.BUSINESS_UNIT = D.BUSINESS_UNIT AND B.VOUCHER_ID = D.VOUCHER_ID AND C.BUSINESS_UNIT = D.BUSINESS_UNIT_PO AND C.PO_ID = D.PO_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 VOUCHER_ID Character(8) VARCHAR2(8) NOT NULL Voucher ID
3 VOUCHER_LINE_NUM Number(5,0) INTEGER NOT NULL Voucher Line Number
4 BUSINESS_UNIT_PO Character(5) VARCHAR2(5) NOT NULL PO Business Unit
5 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
6 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
7 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
8 BUSINESS_UNIT_RECV Character(5) VARCHAR2(5) NOT NULL Receiving Business Unit
9 RECEIVER_ID Character(10) VARCHAR2(10) NOT NULL Receiver number
10 RECV_LN_NBR Number(5,0) INTEGER NOT NULL Receipt Line
11 RECV_SHIP_SEQ_NBR Number(3,0) SMALLINT NOT NULL Receiver Shipping Sequence
12 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
13 VENDOR_PO Character(10) VARCHAR2(10) NOT NULL Supplier ID PO
14 VENDOR_RECV Character(10) VARCHAR2(10) NOT NULL Supplier ID
15 PYMNT_TERMS_CD Character(5) VARCHAR2(5) NOT NULL Specifies how the payment due date and discount due date are calculated. A payment terms code is associated with various business units bill-to customers vendors as well as sales orders purchase orders and vouchers.
16 PYMNT_TERMS_CD_PO Character(5) VARCHAR2(5) NOT NULL PO Payment Terms
17 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
18 INV_ITEM_ID_PO Character(18) VARCHAR2(18) NOT NULL Item Number PO
19 INV_ITEM_ID_RECV Character(18) VARCHAR2(18) NOT NULL Item Number
20 QTY_PO Number(16,4) DECIMAL(15,4) NOT NULL Purchase Order Quantity
21 QTY_RECEIVED_CNVT Number(16,4) DECIMAL(15,4) NOT NULL Received Qty Converted
22 QTY_VCHR_CNVT Signed Number(17,4) DECIMAL(15,4) NOT NULL Voucher Qty Converted
23 QTY_ACCEPTED_CNVT Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Accepted Cnvt
24 QTY_INSPD_CNVT Number(16,4) DECIMAL(15,4) NOT NULL Inspected Qty in Supplier UOM
25 PRICE_PO Signed Number(17,5) DECIMAL(15,5) NOT NULL Purchase Order Price
26 UNIT_PRICE_CNVT Number(16,5) DECIMAL(15,5) NOT NULL Unit Price Converted
27 MATCH_STATUS_VCHR Character(1) VARCHAR2(1) NOT NULL Match Status
C=Overridden - Credit Note
D=Match Dispute
E=Match Exceptions Exist
M=Matched
N=Not Applicable
O=Manually Overridden
T=To Be Matched
28 BUYER_ID Character(30) VARCHAR2(30) NOT NULL Buyer
29 ASSTN_NAME Character(30) VARCHAR2(30) NOT NULL Association Name
30 ALGTHM_BEHAVIOR Character(4) VARCHAR2(4) NOT NULL Rule
CAIF=Select All
EQSM=Equal Sum
EXCT=Equal
MTVQ=Sum Up To
SLON=Select If One
USER=User Criteria
31 MATCH_RULE_ID Character(10) VARCHAR2(10) NOT NULL Match Rule ID
32 SETID Character(5) VARCHAR2(5) NOT NULL SetID
33 MATCH_CNTRL_ID Character(10) VARCHAR2(10) NOT NULL Match Rule
34 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance