2014年3月2日 星期日

[ASCP] Can not release a record with action as 'None'

    User反映,要將 Planned Order Release 成 PR 時,於 ASCP Workbench 勾選 For Release 時,系統出現 Can not release a record with action as 'None' 訊息。並且自動將勾勾清掉,因此無法展成 PR。




    既然是 Planned Order,那 Action 就不應該是 None,否則 ASCP 何需建議你開單。所以這個狀況當然不正常。

    跟 User 瞭解到,實際上 User 已經做過 For Release 動作,而且好像有按了 Save(User不是很確定),但還沒做 Release 動作,系統當掉 (勾 For Release 只是宣告這筆資料要執行 ASCP 的建議,要拋出成 PR,還要做 Plan -> Release 動作)。重新進入 ASCP 後,For Release 的勾勾就不見了,要重勾,就出現Can not release a record with action as 'None' 訊息,無法作業。

    如果我沒記錯,MRP 好像就有這個問題了,這麼說來,到了 ASCP 還是沒有什麼長進。

    從 Metalink 或 Manual 找不到什麼標準解法,可以處理這個問題(除非 Re-Launch Plan,但這又影響其他人作業),必須從 Table 著手,讓 Action 回覆為原狀(不要是 None),User 才能繼續作業。

    SQL 範例如下

  update msc_supplies ms
     set ms.quantity_in_process = null
   where 1 = 1
     and ms.transaction_id = 108513633
     and ms.plan_id = 22
     and ms.quantity_in_process is not null

沒有留言: