-- Open PO Receipts.
SELECT h.receipt_num
,h.shipment_header_id
,l.SHIPMENT_LINE_STATUS_CODE
,pha.segment1 PO_NUM
,PHA.po_header_id
FROM rcv_shipment_headers h
,rcv_shipment_lines l
,po_headers_all pha
WHERE h.shipment_header_id = l.shipment_header_id
AND l.source_document_code = 'PO'
AND pha.type_lookup_code NOT IN ('RFQ','QUOTATION')
AND pha.po_header_id = L.PO_HEADER_ID
AND L.SHIPMENT_LINE_STATUS_CODE not in ('FULLY RECEIVED');
SELECT h.receipt_num
,h.shipment_header_id
,l.SHIPMENT_LINE_STATUS_CODE
,pha.segment1 PO_NUM
,PHA.po_header_id
FROM rcv_shipment_headers h
,rcv_shipment_lines l
,po_headers_all pha
WHERE h.shipment_header_id = l.shipment_header_id
AND l.source_document_code = 'PO'
AND pha.type_lookup_code NOT IN ('RFQ','QUOTATION')
AND pha.po_header_id = L.PO_HEADER_ID
AND L.SHIPMENT_LINE_STATUS_CODE not in ('FULLY RECEIVED');
Can I be helped for the oracle apps querry for suppliers with no PO , no payment in last 3 months. And suppliers should be excluded that was created in last 3months.
ReplyDelete