close
PO在提交之後,有時會因為某些原因,PO狀態為In process。
這次遇到的例子也是因為有一張PO Release的採購單狀態為In porcess,以致後續的動作都無法執行。

網路上有提供四個解法,我採用的是直接update 狀態欄位,順便記錄其他的方法,
如果再有遇到或測試機可以成功模擬問題,則可以測試一下。

1、更改狀態欄位,更改完後再手動Approved
      這次是Release,所以更改po_releases_all
       update po_releases_all set authorization_status='INCOMPLETE', hold_flag=null
               wherepo_header_id=577 and release_num='5874';
      如果是PO,則更新po_headers_all
      update po_headers_all set authorization_status =  'INCOMPLETE',
              wf_item_type = NULL,
              wf_item_key = NULL
              where po_header_id = 577;

2、以sysadmin登入,到Status Momitor內去強制推Workflow
      

3、從PO去轉發給其他有Approved權限的人
     

4、執行wfretry.sql(路徑:$FND_TOP/sql)
      找出In process的PR的相關資料
       select prh.requisition_header_id,prh.segment1,prh.wf_item_type,prh.wf_item_key
               from po_line_locations_all ploc,
                         po_releases_all pra,
                         po_headers_all poh,
                         po_requisition_lines_all prl,
                         po_requisition_headers_all prh
                where poh.po_header_id = pol.po_header_id
                    and pol.po_line_id = ploc.po_line_id
                    and ploc.line_location_id = prl.line_location_id
                    and prl.requisition_header_id = prh.requisition_header_id
                    and pra.po_header_id=poh.po_header_id
                    and poh.segment1='191'
                    and pra.release_num='25';

執行wfretry.sql,會出現要求輸入的命令:
出現第1個Value輸入上面找到的WF_ITEM_TYPE
出現第2個Value輸入上面找到的WF_ITEM_KEY
出現Label直接輸入MAIN_REQAPPRV_PROCESS
出現Command直接輸入RETRY
出現Result直接按[Enter]

進入ERP確認是為已變更為APPROVED,如沒有,則再重做一次。
arrow
arrow
    全站熱搜

    keven 發表在 痞客邦 留言(0) 人氣()