知识大全 销售订单单行状态不对订单不关闭的处理

Posted 订单

篇首语:人非生而知之,孰能无惑?惑而不从师,其为惑也,终不解矣。本文由小常识网(cha138.com)小编为大家整理,主要介绍了知识大全 销售订单单行状态不对订单不关闭的处理相关的知识,希望对你有一定的参考价值。

  销售订单行booked后 挑库到待发库 突然决定不再发货 对订单行作backordered 但是订单行的状态没有变为cancle 仍然是picked 导致整个订单无法关闭!    具体操作步骤     ### Steps to Reproduce ###   )om/order anizer /new sale order i create an sale order entry order line ordered item:C BT G J   qty: is    ) om/ship transaction/pick release reserved and transer to satged subinventory DFK    ) later i don t want to ship it to custmer in ship transaction form i do backordered delivery is clos  ed but order line status is  picked in ship transaction form query it line pick status is staged reserved is not released     Souliton:    Dwon the script from Metalink    REM $Header: single sql / / : : ysinha noship $    WHENEVER SQLERROR EXIT FAILURE ROLLBACK;    set ver off    set feed off    set serveroutput on size     Prompt    accept order_line_id number prompt Enter LINE_ID of the Line to Cancel :     spool &order_line_id    col dtime format a heading Script run at Date/Time ;    select to_char(sysdate DD MON YYYY HH:MI:SS ) dtime from dual;    Declare    l_line_id  number := &order_line_id;    l_user_id  number;    l_resp_id  number;    l_resp_appl_id number;    l_wf_exists varchar ( ) := Y ;    Begin    update oe_order_lines_all    set  ordered_quantity  =         cancelled_quantity = nvl(cancelled_quantity ) + ordered_quantity        cancelled_flag   = Y         open_flag     = N         flow_status_code  = CANCELLED         last_updated_by  =         last_update_date  = sysdate    where line_id      = l_line_id;    Begin    select number_value    into  l_user_id    from  wf_item_attribute_values    where item_type = OEOL     and  item_key = to_char(l_line_id)    and  name   = USER_ID ;    select number_value    into  l_resp_id    from  wf_item_attribute_values    where item_type = OEOL     and  item_key = to_char(l_line_id)    and  name   = RESPONSIBILITY_ID ;    select number_value    into  l_resp_appl_id    from  wf_item_attribute_values    where item_type = OEOL     and  item_key = to_char(l_line_id)    and  name   = APPLICATION_ID ;    Exception    When No_Data_Found Then    l_wf_exists := N ;    End;    If l_wf_exists = Y Then    fnd_global apps_initialize(l_user_id l_resp_id l_resp_appl_id);    wf_engine handleerror( OE_Globals G_WFI_LIN     to_char(l_line_id)     CLOSE_LINE      RETRY      CANCEL     );    End If;    update wsh_delivery_assignments    set  delivery_id        = null        parent_delivery_detail_id = null        last_updated_by      =         last_update_date     = sysdate    where delivery_detail_id    in    (select wdd delivery_detail_id    from  wsh_delivery_details wdd oe_order_lines_all oel    where wdd source_line_id  = l_line_id    and  wdd source_code   = OE     and  oel open_flag    = N     and  oel shipped_quantity is null    and  oel ordered_quantity =     and  released_status   <> D );    update wsh_delivery_details    set  released_status    = D         src_requested_quantity =         requested_quantity   =         shipped_quantity    =         cycle_count_quantity  =         cancelled_quantity   = decode(requested_quantity cancelled_quantity requested_quantity)        subinventory      = null        locator_id       = null        lot_number       = null        serial_number     = null        revision        = null        ship_set_id      = null        inv_interfaced_flag  = X         oe_interfaced_flag   = X         last_updated_by    =         last_update_date    = sysdate    where delivery_detail_id    in    (select wdd delivery_detail_id    from  wsh_delivery_details wdd oe_order_lines_all oel    where wdd source_line_id  = l_line_id    and  wdd source_code   = OE     and  oel open_flag    = N     and  oel shipped_quantity is null    and  oel ordered_quantity =     and  released_status   <> D );    Exception    when others then    rollback;    dbms_output put_line(substr(sqlerrm ));    End;    /    Prompt    Prompt ===========================================================    Prompt You must enter MIT to Save changes or ROLLBACK to Revert    Prompt ===========================================================    spool off    ……………………………………………………………………………………    $ sqlplus apps/apps @single sql    SQL*Plus: Release Production on Sat Aug : :     (c) Copyright Oracle Corporation  All rights reserved     Connected to:    Oracle i Enterprise Edition Release Production    With the Partitioning option    JServer Release Production    Enter LINE_ID of the Line to Cancel :     Script run at Date/Time          AUG : :     ===========================================================    You must enter MIT to Save changes or ROLLBACK to Revert    ===========================================================    SQL> mit;    SQL>    <span lang= EN US style= FONT SIZE: pt; FONT FAMILY: 宋体; mso font kerning: pt; mso hansi font family: Times New Roman ; mso bidi f cha138/Article/program/Oracle/201311/18413

相关参考

知识大全 京东处理订单要处理多久

京东处理订单要处理多久?购买商品从下订单到商品出库可以在半天内完成(现货的情况下)然后发货的话,当天上午的订单的通常是当天下午发货,下午的订单通常在第二天发货。至于到货时间得看具体的收货地点了。发货地

知识大全 电子商务--订单

  订单是整个电子商务的核心整个电子商务的流程也是围绕订单的状态执行的这篇博客主要向大家介绍订单号的生成方式  现在大型电商网站大多都有好几种下单途径比如通过Web网站下单通过打电话到呼叫中心下单(C

知识大全 ASP.NET入门教程 13.4.1 订单处理

ASP.NET入门教程13.4.1订单处理  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! 

知识大全 ASP.NET项目开发指南:已处理订单的管理(1)

ASP.NET项目开发指南:已处理订单的管理(1)  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! 

知识大全 ASP.NET项目开发指南:未处理订单的管理(1)

ASP.NET项目开发指南:未处理订单的管理(1)  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! 

知识大全 ASP.NET项目开发指南:已处理订单的管理(2)[2]

ASP.NET项目开发指南:已处理订单的管理(2)[2]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下

知识大全 ASP.NET项目开发指南:已处理订单的管理(2)[1]

ASP.NET项目开发指南:已处理订单的管理(2)[1]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下

知识大全 ASP.NET项目开发指南:未处理订单的管理(2)[1]

ASP.NET项目开发指南:未处理订单的管理(2)[1]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下

知识大全 ASP.NET项目开发指南:未处理订单的管理(2)[2]

ASP.NET项目开发指南:未处理订单的管理(2)[2]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下

知识大全 现在不想要了 怎么退订! 订单还没有发货

刚手贱申请了腾讯大王卡!现在不想要了怎么退订!订单还没有发货!如果没有发货可在“王卡助手”微信公众号联系客服取消订单。已发货的可以拒收。如果已接收那就不要激活。【望采纳】申请了腾讯大王卡,现在不想要了