Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

1 select * from PO_HEADERS_ALL where segment1 ='&enter_the_purchase_order_number'

2 SELECT * FROM PO_DISTRIBUTIONS_ALL WHERE PO_HEADER_ID in


(select PO_HEADER_ID from PO_HEADERS_ALL where segment1
='&enter_the_purchase_order_number')

3 select * from rcv_transactions where po_distribution_id in (select


po_distribution_id from po_distributions_all
where PO_HEADER_ID in (select PO_HEADER_ID from PO_HEADERS_ALL where segment1
='&enter_the_purchase_order_number'))

4 SELECT * FROM RCV_RECEIVING_SUB_LEDGER WHERE RCV_TRANSACTION_ID IN (SELECT


TRANSACTION_ID FROM RCV_TRANSACTIONS
where po_distribution_id in (select po_distribution_id from po_distributions_all
where PO_HEADER_ID in (select PO_HEADER_ID from PO_HEADERS_ALL where segment1
='&enter_the_purchase_order_number')))

5 SELECT * FROM AP_INVOICE_DISTRIBUTIONS_ALL WHERE PO_DISTRIBUTION_ID IN


(SELECT PO_DISTRIBUTION_ID FROM PO_DISTRIBUTIONS_ALL WHERE PO_HEADER_ID in
(select PO_HEADER_ID from PO_HEADERS_ALL where segment1
='&enter_the_purchase_order_number'))

6 select * from pa_cost_distribution_lines_all where system_reference2 in


(select PO_HEADER_ID from PO_HEADERS_ALL where segment1
='&enter_the_purchase_order_number')

7 select * from pa_expenditure_items_all where expenditure_item_id in


(select expenditure_item_id from pa_cost_distribution_lines_all where
system_reference2 in
(select PO_HEADER_ID from PO_HEADERS_ALL where segment1
='&enter_the_purchase_order_number'))

8 select * from pa_expenditure_items_all where expenditure_item_id in


(select expenditure_item_id from pa_cost_distribution_lines_all where
system_reference2 in
(SELECT invoice_id FROM AP_INVOICE_DISTRIBUTIONS_ALL WHERE PO_DISTRIBUTION_ID IN
(SELECT PO_DISTRIBUTION_ID FROM PO_DISTRIBUTIONS_ALL WHERE PO_HEADER_ID in
(select PO_HEADER_ID from PO_HEADERS_ALL where segment1
='&enter_the_purchase_order_number'))))

9 select * from pa_commitment_txns where project_id in (select project_id from


pa_projects_all where segment1 = 'enter the proejct number')

10 select * from pa_commitment_txns_v where project_id in (select project_id from


pa_projects_all where segment1 = 'enter the proejct number')

11 select * from PA_PROJ_PO_DISTRIBUTIONS where PO_NUMBER


='&enter_the_purchase_order_number'

You might also like