The Internal Requisition

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

转载于:http://blog.itpub.net/25164132/viewspace-763142/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值