問題:
採購PO設置任何修改時需要進行再次審批,再次審批時會觸發一個EDI錯誤消息輸出.
現象:
使用 ME21N 創建PO 並使用ME29N 審批.我們會看到一個正確(綠色)的消息輸出.
當我們使用 ME29N 修改了PO數量爲 2 , 保存以後,再次審批.我們會看得紅色的錯誤輸出.
查看日誌如下:
問題解決方案:
Dear Customer,
as per your screenshot the error is about that the change output not finds processing code for the Idoc. So solve this pleaes go to WE20 tcode, under logistical system (LS) choose the related partner (OPPLE001) and find there the outgoing ORDCHG Idoc message type - if that is not maintained then maintain. maintain it with ME11 message process code for change case and maintain for it processing function module IDOC_OUTPUT_ORDCHG.
Make sure you have this setup, and thereafter test again PO change.
系統實施:
WE20 查看消息類型
依次選擇LS->OPPLE001, 查看出站參數中沒有ORDCHG的消息類型,需要添加
查看PO訂單結構,查看ORDERS消息類型(雙擊),
可以看到IDOC類型爲 ORDERS05 + ZORDERSEXT
我們需要添加一樣的消息類型
消息控制使用
應用程序: EF : 採購訂單
消息類型: ZNEU : Purchase order EU
過程代碼: ME10 : ORDERS: 採購訂單
WE82查看消息類型的分配
ORDCHG沒有使用擴展類型,需要添加.
複製添加 ORDCHG ORDERS05 ZORDERSEXT 消息類型
WE20 添加出站參數ORDCHG消息類型
選擇消息類型ORDERS,點擊複製按鈕
輸入消息類開ORDCHG
消息控制
EF : 採購訂單
ZNEU : Purchase order EU
ME11 : ORDCHG: 採購訂單更改
修改消息打勾
保存消息.
系統測試:
可正常輸出更改消息