VCHR_RECV_PRO8

(SQL View)
Index Back

Voucher Recv Pro Number Prompt


SELECT DISTINCT B.BUSINESS_UNIT_PO , B.PO_ID , A.BUSINESS_UNIT , B.SHIPTO_ID , F.PRO_NUMBER , A.RECEIVER_ID , A.RECEIPT_DT , D.PO_DT , A.VENDOR_SETID , C.VENDOR_ID , C.NAME1 , A.ORIGIN FROM PS_RECV_HDR_FS A , PS_RECV_LN_SHIP_FS B , PS_VENDOR C , PS_PO_HDR_FS D , PS_RECV_LN_PRO F WHERE A.MATCH_STATUS_RECV IN ('T','P','N') AND A.ERS_FLAG = 'N' AND A.IN_PROCESS_FLG = 'N' AND A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.RECEIVER_ID = B.RECEIVER_ID AND A.BUSINESS_UNIT = F.BUSINESS_UNIT AND A.RECEIVER_ID = F.RECEIVER_ID AND B.LINE_NBR = F.RECV_LN_NBR AND A.VENDOR_SETID = C.SETID AND A.VENDOR_ID = C.VENDOR_ID AND B.RECV_LN_MATCH_OPT IN ('N','P') AND B.RECV_SHIP_STATUS IN ('R','O','M','C') AND B.BUSINESS_UNIT_PO = D.BUSINESS_UNIT AND B.PO_ID = D.PO_ID AND D.BUDGET_HDR_STATUS = 'V' AND D.BUDGET_HDR_STS_NP = 'V' AND D.CC_USE_FLAG IN ('N',' ') AND EXISTS ( SELECT 'X' FROM PS_PO_LINE_DIST_FS E WHERE E.BUSINESS_UNIT = B.BUSINESS_UNIT_PO AND E.PO_ID = B.PO_ID AND E.LINE_NBR = B.LINE_NBR AND E.DST_ACCT_TYPE = 'DST' AND E.KK_CLOSE_FLAG <> 'Y')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT_PO Character(5) VARCHAR2(5) NOT NULL PO Business Unit
2 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
3 BUSINESS_UNIT_RECV Character(5) VARCHAR2(5) NOT NULL Receiving Business Unit
4 SHIPTO_ID Character(10) VARCHAR2(10) NOT NULL Ship To Location
5 PRO_NUMBER Character(40) VARCHAR2(40) NOT NULL Pro Number
6 RECEIVER_ID Character(10) VARCHAR2(10) NOT NULL Receiver number
7 RECEIPT_DT Date(10) DATE Received Date
8 PO_DT Date(10) DATE Date
9 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
10 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
11 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
12 ORIGIN Character(3) VARCHAR2(3) NOT NULL Origin