zoukankan      html  css  js  c++  java
  • 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;
  • 相关阅读:
    GridView的TemplateField
    数据源绑定
    hihocoder-1415 后缀数组三·重复旋律3 两个字符串的最长公共子串
    hihocoder-1407 后缀数组二·重复旋律2 不重合 最少重复K次
    hdu number number number 斐波那契数列 思维
    最长上升子序列 nlogn
    hdu-4507 吉哥系列故事——恨7不成妻 数位DP 状态转移分析/极限取模
    hdu-3652 B-number 数位DP
    hdu-2089 不要62 基础DP 模板
    字符串hash
  • 原文地址:https://www.cnblogs.com/quanweiru/p/3142368.html
Copyright © 2011-2022 走看看