VCHR_RECV_VW12

(SQL View)
Index Back

Voucher Recv Header Prompt


SELECT DISTINCT a.vendor_setid , c.vendor_id , b.business_unit_po , b.po_id , b.LINE_NBR , b.SCHED_NBR , a.business_unit , a.receiver_id , a.receipt_dt , d.po_dt , c.name1 , b.shipto_id , B.bill_of_lading , a.origin , d.currency_cd FROM ps_recv_hdr_fs a , ps_recv_ln_ship_fs b , ps_vendor c , PS_PO_HDR_FS d 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.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 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
2 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
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 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
6 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
7 BUSINESS_UNIT_RECV Character(5) VARCHAR2(5) NOT NULL Receiving Business Unit
8 RECEIVER_ID Character(10) VARCHAR2(10) NOT NULL Receiver number
9 RECEIPT_DT Date(10) DATE Received Date
10 PO_DT Date(10) DATE Date
11 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
12 SHIPTO_ID Character(10) VARCHAR2(10) NOT NULL Ship To Location
13 BILL_OF_LADING Character(30) VARCHAR2(30) NOT NULL Specifies a bill of lading number associated with a Receivables item.
14 ORIGIN Character(3) VARCHAR2(3) NOT NULL Origin
15 TXN_CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Transaction Currency