VCHR_RECV_PRO12(SQL View) |
Index Back |
---|---|
Voucher Recv Pro Number 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 , F.PRO_NUMBER , a.receiver_id , a.receipt_dt , d.po_dt , c.name1 , b.shipto_id , 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') 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 | 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 | PRO_NUMBER | Character(40) | VARCHAR2(40) NOT NULL | Pro Number |
9 | RECEIVER_ID | Character(10) | VARCHAR2(10) NOT NULL | Receiver number |
10 | RECEIPT_DT | Date(10) | DATE | Received Date |
11 | PO_DT | Date(10) | DATE | Date |
12 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
13 | SHIPTO_ID | Character(10) | VARCHAR2(10) NOT NULL | Ship To Location |
14 | ORIGIN | Character(3) | VARCHAR2(3) NOT NULL | Origin |