0% found this document useful (0 votes)
12 views1 page

Find PR and PO Transaction

The document contains a SQL query that retrieves purchase order details including the purchase order number, line number, item description, quantity, and requester information. It joins multiple tables related to purchase orders, items, and requisitions based on specific conditions. The query filters results based on organization and requisition number parameters.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

Find PR and PO Transaction

The document contains a SQL query that retrieves purchase order details including the purchase order number, line number, item description, quantity, and requester information. It joins multiple tables related to purchase orders, items, and requisitions based on specific conditions. The query filters results based on organization and requisition number parameters.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

SELECT poh.segment1 po_number, pol.line_num, pol.

item_description,
ploc.quantity, mtl.segment1 || ',' || mtl.segment2 po_item,
prh.segment1 req_num, fnd.user_name requestor, prl.need_by_date
FROM po_line_locations_all ploc,
po_lines_all pol,
po_headers_all poh,
mtl_system_items_b mtl,
po_requisition_lines_all prl,
po_requisition_headers_all prh,
fnd_user fnd
WHERE poh.po_header_id = pol.po_header_id
AND pol.po_line_id = ploc.po_line_id
AND pol.item_id = mtl.inventory_item_id
AND ploc.line_location_id = prl.line_location_id
AND prl.requisition_header_id = prh.requisition_header_id
AND prh.preparer_id = fnd.employee_id
AND prh.segment1 is not null
AND mtl.organization_id = :your_org
AND prh.segment1 = :your_pr_num

You might also like