通过PO, 找点收单号:

select rsh.receipt_num

from po_headers_all poh,

rcv_shipment_headers rsh,

rcv_shipment_lines rsl,

po_lines_all pol,

po_line_locations_all poll

where

poh.segment1='20600021'

and

poh.po_header_id=pol.po_header_id

and

pol.po_line_id=poll.po_line_id

and

poll.line_location_id=rsl.po_line_location_id

and

rsh.SHIPMENT_HEADER_ID=rsl.shipment_header_id

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/226700/viewspace-833511/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/226700/viewspace-833511/

你可能感兴趣的:(通过PO, 找点收单号:)