• Shipping Transactions > Error: The action can not be performed because the selected records could not be locked.


    Shipping Transactions > Action: Launch Pick Release (B: Go)

    Error: The action can not be performed because the selected records could not be locked.

    image

    --Ship (Confirm / Pick Release)  errors with 'The action cannot be performed because the selected records could not be locked.
    --
    --Processing :-  Copy this script in Toad.
    --        1) To execute, to press the "F5"
    --        2) entry the "Delivery Detail ID"
    --        3) Output the result, to check this field vlaue. (e.g. May be delete the space in "Description" column)
    --        4) use the "edit" on sql database 
    --              e.g.  edit WSH_DELIVERY_DETAILS where delivery_detail_id = 375105;
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    --
    --<Solution and SQL program>
    --
    --Run the script loc_col.sql to check for trailing spaces within any of the item description.  This script can be downloaded from the following site:
    --==================================================================================================
    
    set serveroutput on size 1000000
    set verify off
    
    ACCEPT DEL_DETAIL_ID NUMBER PROMPT 'PLEASE ENTER DELIVERY_DETAIL_ID : '
    
    DECLARE CURSOR C1 is Select column_name from fnd_columns Where table_id = ( Select table_id from fnd_tables Where table_name = 'WSH_DELIVERY_DETAILS' );
    
    Cnt NUMBER(10) := 0;
    DynSql VARCHAR2(1000);
    DelDetId WSH_DELIVERY_DETAILS.Delivery_Detail_Id %TYPE;
    
    
    BEGIN
    
    dbms_output.put_line('Script to identify the problematic fields :');
    dbms_output.put_line('============================================');
    
    FOR i IN C1 LOOP
    
    DelDetId := &DEL_DETAIL_ID;
    DynSql := 'SELECT COUNT(*) FROM WSH_DELIVERY_DETAILS ';
    DynSql := DynSql || 'WHERE NVL(LENGTH(LTRIM(RTRIM(' || i.column_name || '))), 0) <> ' ;
    DYNSql := DynSql || ' LENGTH(' || i.column_name || ') ';
    DynSql := DynSql || 'AND Delivery_Detail_Id = ' || DelDetId;
    
    EXECUTE IMMEDIATE DynSql INTO Cnt;
    
    IF ( cnt > 0 ) THEN
      dbms_output.put_line('Field ' ||i.COLUMN_NAME|| ' for delivery detail '|| DelDetId || ' has leading or trailing spaces');
     
    END IF;
    
    END LOOP;
    
    dbms_output.put_line('Script completed succefully.......');
    
    END;
  • 相关阅读:
    php关于网页乱码问题
    EditPlus编写PHP使用技巧
    Dedecms当前位置(面包屑导航)的处理
    css有关鼠标移动上去图片变透明度变化
    CSS之Position详解
    如何修改FlashFXP默认编辑工具使用记事本打开
    ecshop点击订购、加入按钮没反应的解决方法
    kindEditor完整认识 PHP上调用并上传图片说明
    OpenCV 实现分水岭算法
    OpenCV 矩形轮廓检测
  • 原文地址:https://www.cnblogs.com/quanweiru/p/3142368.html
Copyright © 2020-2023  润新知