Oracle EBS OM Order is not eligible for booking

销售订单登记时,偶尔提示“Order is not eligible for booking. Check workflow status for this order.”
Oracle EBS OM Order is not eligible for booking_第1张图片

注意: 该订单类型“11内销.销售订单”的工作流已经验证,并且大多数该类型的订单都能登,验证工作流如下:
N:OM/SetUp/Transaction Types/Default
Oracle EBS OM Order is not eligible for booking_第2张图片
对应该订单类型分配的行工作流也是没有问题的,如下:
Oracle EBS OM Order is not eligible for booking_第3张图片

工作流程活动为空,如下
SOracle EBS OM Order is not eligible for booking_第4张图片

用Sysadmin用户查看对应订单的工作流状态:
Oracle EBS OM Order is not eligible for booking_第5张图片

点击“Child Workflows”/“Activity History”,提示待等登记
Oracle EBS OM Order is not eligible for booking_第6张图片
解决方法:

Declare
  v_HeaderId Number;
  Cursor Cr Is
    Select OEH.HEADER_ID
      From OE_ORDER_HEADERS_ALL OEH
     Where OEH.ORDER_NUMBER = '1110032940'; --销售订单编号
  l_ORG_ID Number := 114; --OU ID
BEGIN
  MO_GLOBAL.SET_POLICY_CONTEXT('S', l_ORG_ID);
  For Rs In Cr Loop
    v_HeaderId := Rs.HEADER_ID;
    APPS.WF_ENGINE.STARTPROCESS('OEOH', TO_CHAR(v_HeaderId));
  End Loop;
END;

执行以上代码以后,需求返回销售订单Form界面点“Book”按钮,就可以正常登记了

经查阅对应官方文档: OEXOEORD – 订单不能被登记工作流错误ORA-20001 (文档 ID 1595073.1)

 

你可能感兴趣的:(Oracle EBS OM Order is not eligible for booking)