You are on page 1of 1

select distinct

g.FULL_NAME,
b.NEED_BY_DATE,
a.authorization_status,
a.CREATION_DATE,
L.deliver_to_location,
a.segment1 Requisition_No,
a.description,
a.TYPE_LOOKUP_CODE,
b.LINE_NUM,
k.segment1||'.'||k.segment2,
b.ITEM_DESCRIPTION,
b.QUANTITY,
b.UNIT_MEAS_LOOKUP_CODE,
b.UNIT_PRICE,
(b.quantity * L.unit_price) amount,
b.QUANTITY_RECEIVED,
b.QUANTITY_DELIVERED,
i.QUANTITY_SHIPPED,
j.ORDER_NUMBER Internal_Order_No,
f.SEGMENT1 PO_Number,
e.RELEASE_NUM,
h.VENDOR_NAME
FROM po_requisition_headers_all a,
po_requisition_lines_all b,
PO_REQ_DISTRIBUTIONS_ALL c,
po_distributions_all d,
po_releases_all e,
po_headers_all f,
per_all_people_f g,
po_vendors h,
po_line_locations i,
oe_order_headers_all j,
mtl_system_items k,
po_req_distributions_inq_v L
WHERE a.requisition_header_id = b.requisition_header_id (+)
and b.requisition_line_id = c.requisition_line_id (+)
and c.DISTRIBUTION_ID = d.REQ_DISTRIBUTION_ID(+)
and d.PO_RELEASE_ID = e.PO_RELEASE_ID (+)
and d.PO_HEADER_ID = f.PO_HEADER_ID (+)
and a.PREPARER_ID = g.PERSON_ID (+)
and f.VENDOR_ID = h.VENDOR_ID (+)
AND I.LINE_LOCATION_ID = L.LINE_LOCATION_ID (+)
and d.LINE_LOCATION_ID = i.LINE_LOCATION_ID (+)
and a.SEGMENT1 = j.ORIG_SYS_DOCUMENT_REF(+)
and b.ITEM_ID = k.INVENTORY_ITEM_ID (+)

You might also like