SELECT DISTINCT a.vendor_setid , a.business_unit , c.vendor_id , c.vendor_name_short , c.name1 , c.name2 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 ('N','P') AND (a.ers_flag = 'N' OR a.ers_flag = ' ') 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 = 'N' 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
|