Join the OracleApps88 Telegram group @OracleApps88to get more information on Oracle EBS R12/Oracle Fusion applications.

If you are facing any issues while copying the Code/Script or any issues with Posts, Please send a mail to OracleApp88@Yahoo.com or message me at @apps88 or +91 905 957 4321 in telegram.

Tuesday, June 21, 2011

SO PO Requesition Query

SELECT oh.order_number
,oh.header_id
,ol.line_id
,prh.requisition_header_id
,prh.segment1 req_number
,prl.requisition_line_id
,pl.po_line_id
,poh.po_header_id
,poh.segment1 po_number
FROM oe_order_headers_all oh
,oe_order_lines_all ol
,po_requisition_headers_all prh
,po_requisition_lines_all prl
,po_line_locations_all pol
,po_headers_all poh
,po_lines_all pl
WHERE ol.header_id = oh.header_id
AND prh.interface_source_line_id = ol.line_id
AND prh.interface_source_code = 'CTO'
AND prh.requisition_header_id = prl.requisition_header_id
AND prl.line_location_id = pol.line_location_id
AND pol.po_header_id = poh.po_header_id
AND pol.po_line_id = pl.po_line_id
AND ol.line_id = &sales_order_line_id;

No comments:

Post a Comment

If you are facing any issues while copying the Code/Script or any issues with Posts, Please send a mail to OracleApp88@Yahoo.com or message me at @apps88 or +91 905 957 4321 in telegram.
Best Blogger TipsGet Flower Effect