如何避免SAP訂單儲存後生成的中介軟體CSA inbound queue
By default after a service order is saved, there is a distribution lock set, which prevents you from editing this order in status transferring. Click edit button you will meet with error message below until it has successfully been transferred.
In blog Regarding Service Order distribution lock and status I introduce the step how to avoid this distribution lock. Nevertheless there is still BDOC and an inbound CSA queue automatically generated. The purpose of CSA queue has already been well explained by Rohit Sharma in this thread:
In case you really would like that for a given transaction type, no BDOC and inbound CSA queue should be generated for whatever reasons, you can suppress this behavior by enhancement on function module CRM_ORDER_SAVE_OW.
In this function module, the BDOC and CSA queue will be created by function module CRM_ORDER_UPLOAD_SINGLE only when ALL the THREE condition in IF are fulfilled. The second condition, lv_send_bdoc is controlled by a switch.
So the solution would be: Create a new enhancement on function module CRM_ORDER_SAVE_OW:
Insert one line below:
Suppose you would like that for transaction type ZSRV, no BDOC should be generated, then the source code of run method:
METHOD run.
DATA lv_process_type TYPE crmt_process_type.
LOOP AT it_object_list ASSIGNING FIELD-SYMBOL(<guid>).
CALL FUNCTION 'CRM_ORDERADM_H_READ_OW'
EXPORTING
iv_orderadm_h_guid = <guid>
IMPORTING
ev_process_type = lv_process_type
EXCEPTIONS
admin_header_not_found = 1
OTHERS = 2.
CHECK lv_process_type = 'ZSRV'.
CALL FUNCTION 'CRM_ORDER_SET_NO_BDOC_SEND_OW'
EXPORTING
iv_guid = <guid>
iv_flag = 'N'.
ENDLOOP.
ENDMETHOD.
Now the lv_send_bdoc will be set as false in the runtime according to the switch you set in enhancement, as a result no BDOC and inbound queue will be created any more.
Now after service order is saved you can still continue to edit.
Update on 2017-01-23
I am told by my colleague today that there is a better solution to leverage BAdI CRM_DATAEXCHG_BADI:
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2713817/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 什麼是SAP中介軟體的CSA queue
- CRM中介軟體裡的CSA佇列有什麼用佇列
- 利用儲存的成交訂單,生成實盤交易分析報表
- 天池中介軟體大賽——單機百萬訊息佇列儲存分享佇列
- 如何關閉SAP CRM中介軟體的delta download方式
- 使用SAP CRM中介軟體XIF(External Interface)一步步建立服務訂單
- yum安裝軟體之後如何儲存rpm安裝包
- 使用SAP CRM中介軟體XIF Adapter但沒有IDOC生成的故障原因分析APT
- SAP CRM中介軟體Generic stop set的錯誤如何解決
- CRM中介軟體裡的釋出-訂閱者模式模式
- SAP ERP的material type和group如何通過中介軟體下載
- 如何設計一個簡單的訊息中介軟體
- 簡單介紹redux的中介軟體Redux
- SAP MM 採購訂單收貨之後自動形成分包商庫存?
- 計算儲存分離在京東雲訊息中介軟體JCQ上的應用
- 如何用SAP CRM中介軟體從ERP下載material division到CRM
- 給用過SAP CRM中介軟體的老哥老姐們講講SAP CPI
- Salesforce的多型儲存和SAP C4C的後設資料儲存倉庫Salesforce多型
- 【記錄】簡單的跨域中介軟體跨域
- Flutter入門與實戰(六十一):Redux 之利用中介軟體完成離線儲存購物清單FlutterRedux
- 天池中介軟體大賽百萬佇列儲存設計總結【複賽】佇列
- Redis中介軟體與Web中介軟體RedisWeb
- SAP CRM中介軟體BDOC內容搜尋工具
- 如何將SAP CRM equipment通過中介軟體上傳到ERP系統UI
- SAP CRM中介軟體下載時,為什麼有時候會生成一個奇怪的BDOC容器
- 開源的NAS軟體專案儲存
- 中介軟體之訊息中介軟體-pulsar
- SAP SD免費訂單
- Azure Functions(三)整合 Azure Queue Storage 儲存訊息Function
- 如何定製分表中介軟體
- 交易日均千萬訂單的儲存架構設計與實踐架構
- Express 中介軟體 getcookies 後門程式碼分析ExpressCookie
- 如何識別和避免間諜軟體
- 自己寫了一個簡單的後置中介軟體統一格式
- SAP CRM中介軟體下載equipment時遇到的一個錯誤UI
- SAP CRM Product Sales status在中介軟體中的處理邏輯
- SAP CRM中介軟體Request download的警告資訊:message Object is in status WaitObjectAI
- SAP 訂單模型的編排方式概述模型