1 Reply Latest reply: Aug 7, 2012 3:33 AM by siakhooi-2029222 RSS

    API to backorder "Staged/Pick Confirm" order lines

    siakhooi-2029222
      Hi, I would like to know how to use API to backorder the Staged/Pick Confirm order lines.

      we have a project to automate the cancellation of sales order lines regardless the status, and we are manage to find out these:

      for order status=entered, pending approval, booked
      we can use 'OE_ORDER_PUB.PROCESS_ORDER' to cancel the lines.

      if the order status=released,
      then we need to use 'inv_mo_backorder_pvt.backorder' to backorder the line, and thus 'OE_ORDER_PUB.PROCESS_ORDER' to cancel the lines.

      however, if the order status=Staged/Pick Confirm, what can we do?

      wsh_deliveries_pub.delivery_action ?
      or
      wsh_deliveries_pub.Update_Shipping_Attributes?

      i tried wsh_deliveries_pub.delivery_action using p_action_code => 'CONFIRM', and p_sc_action_flag => 'B', but is not working.
      any examples that i can refer to?