Professional Documents
Culture Documents
Posted on February 11th, 2008 by Sanjit Anand | Print This Post | Email This Post
The consultant life while working at client site is not easy during ERP
transformation projects, many times it's required to provide some adhoc query for extract
to ends users, therefore it is important to have a cheat sheet so that such untimely things
can be easily handled in sort span. Hope these query and tips useful to all Inhouse IT
personals who is part of Implementation Project team.
1. You need to list out all Internal Requisitions that do not have an associated Internal
Sales order.
2. You want to display what requisition and PO are linked(Relation with Requisition and
PO )
Requisition and PO
Cancel Requisition
4. You need to list those PR which havn't auto created to PO.(Purchase Requisition
without a Purchase Order)
PR without PO
5. You need to list all information form PR to PO ...as a requisition moved from different
stages till converting into PR. This query capture all details related to that PR to PO.
PR to PO
PO without Requisition
Here is link:
• PO_APPROVAL_LIST_HEADERS
• PO_APPROVAL_LIST_LINES
9. List all the PO's with there approval ,invoice and Payment Details
10.You need to know the link to GL_JE_LINES table for purchasing accrual and
budgetary control actions..
The budgetary (encumbrance) and accrual actions in the purchasing module generate
records that will be imported into GL for the corresponding accrual and budgetary
journals.
The following reference fields are used to capture and keep PO information in the
GL_JE_LINES table.
These reference fields are populated when the Journal source (JE_SOURCE in
GL_JE_HEADERS) is
Purchasing.
Take a note for Period end accruals, the REFERENCE_5 column is not used.
• Approved
• Cancelled
• In Process
• Incomplete
• Pre-Approved
• Rejected
and you should note: When we finally close the requisition from Requisition Summary
form the authorization_status of the requisition does not change. Instead it's closed_code
becomes 'FINALLY CLOSED'.
13. A standard Quotations one that you can tie back to a PO.
Navigate to RFQ -> Auto create -> enter a PO and reference it back.
Thats is possible, your PO get stuck somewhere, so what you have to do is to analyze
which stage it stucked.Get po_header_id first and run each query and then analyze the
data.For better understanding this is splited into 5 major stages.
Stage 1: PO Creation :
PO_HEADERS_ALL
po_lines_all
select * from po_lines_all where po_header_id =<po_header_id>;
po_line_locations_all
po_distributions_all
po_releases_all
RCV_SHIPMENT_HEADERS
RCV_SHIPMENT_LINES
RCV_TRANSACTIONS
RCV_ACCOUNTING_EVENTS
RCV_RECEIVING_SUB_LEDGER
RCV_SUB_LEDGER_DETAILS
select * from rcv_sub_ledger_details
where rcv_transaction_id in (select transaction_id from rcv_transactions where
po_header_id =<po_header_id>);
MTL_MATERIAL_TRANSACTIONS
MTL_TRANSACTION_ACCOUNTS
AP_INVOICE_DISTRIBUTIONS_ALL
AP_INVOICES_ALL
PA_EXPENDITURE_ITEMS_ALL
GL_INTERFACE
SELECT *
FROM GL_INTERFACE GLI
WHERE user_je_source_name ='Purchasing'
AND gl_sl_link_table ='RSL'
AND reference21='PO'
AND EXISTS
( SELECT 1
FROM rcv_receiving_sub_ledger RRSL
WHERE GLI.reference22 =RRSL.reference2
AND GLI.reference23 =RRSL.reference3
AND GLI.reference24 =RRSL.reference4
AND RRSL.rcv_transaction_id in
(select transaction_id from rcv_transactions
where po_header_id <po_header_id>));
GL_IMPORT_REFERENCES
SELECT *
FROM gl_import_references GLIR
WHERE reference_1='PO'
AND gl_sl_link_table ='RSL'
AND EXISTS
( SELECT 1
FROM rcv_receiving_sub_ledger RRSL
WHERE GLIR.reference_2 =RRSL.reference2
AND GLIR.reference_3 =RRSL.reference3
AND GLIR.reference_4 =RRSL.reference4
AND RRSL.rcv_transaction_id in
(select transaction_id from rcv_transactions
where po_header_id =<po_header_id>))
http://oracleebusinesssuite.wordpress.com/
Thanks Ahmad,
For correcting me some typo.I am really struggling with WordPress editor, which
seems there spell check does not working properly.