如何避免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中介軟體XIF(External Interface)一步步建立服務訂單
- 如何關閉SAP CRM中介軟體的delta download方式
- websphere6如何簡單部署_中介軟體Web
- yum安裝軟體之後如何儲存rpm安裝包
- SAP CRM中介軟體Generic stop set的錯誤如何解決
- CRM中介軟體裡的釋出-訂閱者模式模式
- .net core 一個避免跨站請求的中介軟體
- 如何設計一個簡單的訊息中介軟體
- 天池中介軟體大賽——單機百萬訊息佇列儲存分享佇列
- 使用SAP CRM中介軟體XIF Adapter但沒有IDOC生成的故障原因分析APT
- SAP ERP的material type和group如何通過中介軟體下載
- 簡單介紹redux的中介軟體Redux
- SAP MM 採購訂單收貨之後自動形成分包商庫存?
- 儲存學習之開源儲存軟體
- 給用過SAP CRM中介軟體的老哥老姐們講講SAP CPI
- MVC - 單點登入中介軟體MVC
- Redis中介軟體與Web中介軟體RedisWeb
- 【記錄】簡單的跨域中介軟體跨域
- 計算儲存分離在京東雲訊息中介軟體JCQ上的應用
- SAP CRM中介軟體BDOC內容搜尋工具
- 中介軟體之訊息中介軟體-pulsar
- Salesforce的多型儲存和SAP C4C的後設資料儲存倉庫Salesforce多型
- Flutter入門與實戰(六十一):Redux 之利用中介軟體完成離線儲存購物清單FlutterRedux
- SAP CRM中介軟體下載時,為什麼有時候會生成一個奇怪的BDOC容器
- 如何定製分表中介軟體
- 最新.net和Java呼叫SAP RFC中介軟體下載Java
- 如何用SAP CRM中介軟體從ERP下載material division到CRM
- 如何將SAP CRM equipment通過中介軟體上傳到ERP系統UI
- 開源的NAS軟體專案儲存
- IBM儲存多路徑軟體IBM
- linux 儲存多路徑軟體Linux
- 如何識別和避免間諜軟體
- 軟體專案管理如何避免“黑洞”(轉)專案管理
- R 如何把ployly生成的圖表儲存成htmlHTML
- SAP CRM中介軟體下載equipment時遇到的一個錯誤UI