No Sales Order Id Found in MTL_SALES_ORDERS (Datafix #23) (文档 ID 281836.1)Applies to:Oracle Inventory Management - Version 11.5.10.2 and laterInformation in this document applies to any platform. Signature: INV_MSO_SALES_ORDER_MISSING Datafix#23 create_mtl_sales_order.sql ident_missing_mtl_sales_order.sql Symptoms
The Pick Release Process (WSHPSGL) completes in Warning with the following error message.
IDENTIFICATION SCRIPT The following SQL could be used to help identify the issue on open sales orders with particular organization and item. SELECT distinct a.order_number, a.header_id, a.order_type_idFROM oe_order_headers_all a, oe_order_lines_all c WHERE c.INVENTORY_ITEM_ID = NVL('&EnterItemID', c.INVENTORY_ITEM_ID) AND c.SHIP_FROM_ORG_ID = NVL('&EnterOrgID', c.SHIP_FROM_ORG_ID) AND a.header_id = c.header_id and a.OPEN_FLAG = 'Y' and NOT EXISTS (SELECT 1 FROM mtl_sales_orders b WHERE b.segment1 = to_char(a.order_number)) STEPS This occurs for multiple orders and can be reproduced at will. 1. Create/book a sales order.
ERROR No Mtl_Sales_Order ID found for oe header LOG SNIPPET Here is a snippet from the log file: WSHPSGL module: Pick Selection List GenerationPick selection is completed with warning ... Process_Line after fetch wdd Process_Line after trans type [20-MAR-13 13:54:02] Inv_Pick_Release_PVT.Process_Line: No Mtl_Sales_Order ID found for oe header pick release No Mtl_Sales_Order ID found for oe header No Mtl_Sales_Order ID found for oe header [20-MAR-13 13:54:02] PICKREL: l_return_status from process_line is U CauseHere are two possible causes:
SolutionCase 1: Order Type is Mixed Case But Segment is UppercaseIn the first case, the Order Type is Mixed Case But Segment is Uppercase. To correct this issue, take the following steps:
3. Retest the issue.
SELECT distinct a.order_number, a.header_id, a.order_type_id
Case 2: Record Completely Missing from MTL_SALES_ORDERSIn the second case, the record is completely missing from the MTL_SALES_ORDERS. Take the following steps:
where segment1='&order_number'; 2. If no value exists in MTL_SALES_ORDERS, a datafix is required. If existing orders with this issue cannot be cancelled and recreated or if this issue can be reproduced, a data or code fix from Oracle Support is required. Please check for high priority patches that may already resolve the issue. If none are found, please log a Service Request to correct the data in MTL_SALES_ORDERS.
ReferencesBUG:22552042 - ORDERS WERE CREATED WHEN SEGMENT2 THAT WAS NOT USED IN SALES ORDERS KFFBUG:25930927 - DATA MISSING FROM MTL_SALES_ORDERS TABLE FOR MULTIPLE SALES ORDERS BUG:3829286 - DATAFIX: NO MTL_SALES_ORDER ID FOUND FOR OE HEADER |
|
|