How To Create Internal Requisition From Sales Order [ID 1363518.1]
FAQ: Purchasing Create Internal Requisition / Sales Order [ID 223858.1]
Internal Sales Order Cycle In Order Management [ID 744481.1]
FAQ - Understanding the ATP Results and the Availability Window of the Sales Order Form. [ID 436771.1]
After running Create Internal Sales Order - POCISO, How to determine whether the Sales Order information was sent to Order Entry?
Fix
1- To check if POCISO transferred information to Order Entry, run the following query:
FROM po_requisition_headers_all
WHERE segment1= &requisition_number;
If the Value is Y, the requisition was processed by POCISO.
2- Next run the following queries to determine if the Sales Order is still in the OE Interface tables.
FROM oe_headers_iface_all
WHERE order_source_id = 10
AND orig_sys_document_ref IN( SELECT requisition_header_id
FROM po_requisition_headers_all
WHERE segment1= &requisition_number);
SELECT orig_sys_document_ref
FROM oe_lines_iface_all
WHERE order_source_id = 10
AND orig_sys_document_ref IN( SELECT requisition_header_id
FROM po_requisition_headers_all
WHERE segment1= &requisition_number);
3- To check whether the Sales Order was imported already, the following query can be used:
FROM oe_order_headers_all
WHERE order_source_id =10
and source_document_id in ( SELECT requisition_header_id
FROM po_requisition_headers_all
WHERE segment1= &requisition_number);
4- Following SQL can be used to find requisition number,sales order number and
order line number by passing Purchase requisition number.
This can also be used to confirm that all the lines in requisitions are populated into
sales order after order import.
ool.line_number so_line_no, porl.line_num pur_req_line_no
FROM oe_order_headers_all ooh,
po_requisition_headers_all porh,
po_requisition_lines_all porl,
po_req_distributions_all pord,
oe_order_lines_all ool,
po_system_parameters_all posp
WHERE ooh.order_source_id = posp.order_source_id
AND porh.org_id = posp.org_id
AND porh.requisition_header_id = ool.source_document_id
AND porl.requisition_line_id = ool.source_document_line_id
AND porh.requisition_header_id = porl.requisition_header_id
AND porl.requisition_line_id = pord.requisition_line_id
AND ooh.org_id = posp.org_id
AND ool.header_id = ooh.header_id
AND ool.orig_sys_line_ref not like '%OE_ORDER_LINES_ALL%'
AND ool.source_document_line_id is not null
and porh.segment1 = '&purchase requisition_number';
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25164132/viewspace-763142/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/25164132/viewspace-763142/