ITPub博客

首页 > Linux操作系统 > Linux操作系统 > The Internal Requisition

The Internal Requisition

原创 Linux操作系统 作者:774256182 时间:2013-06-05 16:28:53 0 删除 编辑

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:

SELECT  transferred_to_oe_flag   
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.

SELECT orig_sys_document_ref  
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:

SELECT 'Exists in OM main'  
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.
 

SELECT porh.segment1 purchase_req, ooh.order_number sales_order, 
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博客 ” ,链接:https://blog.itpub.net/25164132/viewspace-763142/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-03-16

  • 博文量
    64
  • 访问量
    290212