Jerry的CRM Middleware(中間件)文章合集
我在SAP成都研究院做過的CRM中間件的項目其實並不是很多:
1. 2013年下半年和2014年上半年曾經支持過中聯重科和蒙牛的CRM項目相關的中間件問題;
2. 2014年上半年做過一個CRM物料主數據的中間件開發項目;
3. 2014年負責CRM物料主數據的維護工作。
這個列表裏所有的文章都是我在實際開發或者項目過程中遇到問題後記錄下來的心得。2013年直到清明節前,我其實對CRM中間件是一點都不了解的,但是我的老板Poseidon讓我把這一塊的知識空缺補上,因為將來成都團隊需要負責中間件這塊的維護和持續開發。
我先把SAP中間件培訓教程CR500看了一遍,了解了一些基本概念。但是這個教程講的比較籠統,對SAP中間件標準開發人員幫助不是很大。
於是2013年清明節的時候,我把CRM物料主數據這個模塊收到的SAP內部測試人員報的所有的tickets搜索出來學習了一遍,一共有200多個。有25%的tickets是因為測試人員的配置不正確造成的。我借此又積累了一些如何處理形如"如果遇到XXX的錯誤消息, 可能是因為YYY配置出錯造成"這類問題的經驗。 當我把所有內部tickets過了一遍之後,對中間件的框架代碼有了一定的了解,成為寫下列這些文章的基礎。
我遇到使用中間件時報錯誤信息的這類問題,分析過程也就下列兩種辦法:
1. 根據錯誤信息的technical信息作為關鍵字去Google或者SAP Community上搜索。如果別人也遇到過同樣問題,那就能節省很多debug時間。
2. 自己debug。
CRM中間件的上傳下載方向的定義,都是以ERP作為主系統(leading system)而言,所以從ERP上抓數據到CRM稱為下載,從CRM主動發送數據到ERP稱為上傳。
以從CRM上觸發從ERP系統下載數據為例。如果下載過程不能按照您期望的工作, 那理論上說,出問題的可能性有以下幾種:
1. 代碼在ERP上從數據庫表中抓取數據時不能正常工作: 沒有抓取到期望的數據;
2. 代碼從ERP數據庫表裏成功抓取到期望數據之後,在把數據發送給CRM之前,由於種種原因(比如配置), 一部分數據被過濾掉了,根本沒有發送到CRM;
3. ERP工作完全正常,期望的數據全部發送到CRM,但是CRM inbound處理時因為配置的原因,在處理這些數據或者試圖存儲到CRM數據庫表時出錯。
這三種可能性分別對應下圖Point1,2,3。
調試的關鍵在於找到針對這三種可能性的調試入口,即在哪裏設置斷點。下面我的原創文章裏有講述。
點擊文末的"閱讀原文", 即可在新打開的頁面裏通過點擊超鏈接直接跳轉到對應的文章。
1. Step by step to debug Product Initial Download in CRM system
講述如何調試第三種可能性: https://blogs.sap.com/2013/11/27/step-by-step-to-debug-product-initial-download-in-crm-system/
2. Step by step to debug Product Initial Download in ERP system
如何調試第一和第二種可能性:https://blogs.sap.com/2013/11/27/step-by-step-to-debug-product-initial-download-in-erp-system/
3. How to debug Product Delta download in ERP and CRM side
如何調試增量下載:
https://blogs.sap.com/2013/11/28/how-to-debug-product-delta-download-in-erp-and-crm-side/
4. How to debug Product initial upload in ERP and CRM system
如何debug上傳:
https://blogs.sap.com/2013/11/28/how-to-debug-product-initial-upload-in-erp-and-crm-system/
5. Step by step for IDOC debug
https://blogs.sap.com/2013/12/16/step-by-step-for-idoc-debug/
6. An example to fix Generic stop set error status in tcode SMQ1
使用事務碼SMQ1發現outbound隊列裏狀態為STOP的處理方法:
https://blogs.sap.com/2014/07/28/an-example-to-fix-generic-stop-set-error-status-in-tcode-smq1/
7. How to resolve error message IB_CRM_UPLOAD_MSG 025 in equipment replication
案例分析: 如何處理設備(equipment)下載時的錯誤信息IB_CRM_UPLOAD_MSG 25
https://blogs.sap.com/2014/08/27/how-to-resolve-error-message-ibcrmuploadmsg-025-in-equipment-replication/
8. Step by step to download equipments from ERP with hierarchy
如何把ERP裏具有層級結構的多個設備下載到CRM, 並且層級結構在CRM依然得以保持
https://blogs.sap.com/2014/09/03/step-by-step-to-download-equipments-from-erp-with-hierarchy/
9. Step by step to upload equipment from CRM to ERP
如何從CRM上傳設備到ERP
https://blogs.sap.com/2014/09/18/step-by-step-to-upload-equipment-from-crm-to-erp/
10. An example of how to find database table and field where Material text and product text is stored in ERP and CRM
同一個概念,比如ERP裏叫物料(Material), header數據存在表MARA裏,而CRM叫產品(Product), header數據存在COMM_PRODUCT裏。這篇文章以物料描述信息這一字段為例,介紹如何去查找這個字段分別是在ERP和CRM哪張表裏存儲的。
https://blogs.sap.com/2016/05/07/an-example-of-how-to-find-database-table-and-field-where-material-text-and-product-text-is-stored-in-erp-and-crm/
11. A small tip about how to find a given Consolidated Database in Middleware
小技巧: 如何找到對應的Consolidated數據庫表
https://blogs.sap.com/2016/05/16/a-small-tip-about-how-to-find-a-given-consolidated-database-in-middleware/
12. How to download ERP plant into CRM via request download
https://blogs.sap.com/2016/09/23/how-to-download-erp-plant-into-crm-via-request-download/
13. How to resolve error message Number not in interval XXX - XXX when downloading a customer from ERP
如何處理這個錯誤信息:
https://blogs.sap.com/2016/09/24/how-to-resolve-error-message-number-not-in-interval-xxx-xxx-when-downloading-a-customer-from-erp/
14. How to deal with error message Form of address 0001 not designated for organization
如何處理這個錯誤信息:
https://blogs.sap.com/2016/09/25/how-to-deal-with-error-message-form-of-address-0001-not-designated-for-organization/
15. Why I always see warning message Object is in status Wait when performing a request download
當我們啟動下載時,期望的結果是看到下圖所示的綠燈,提示我們下載處於運行(Running)狀態。但有時我們收到的消息一直是等待(Wait):
這篇文章介紹如何分析引起等待狀態的原因。
https://blogs.sap.com/2016/09/25/why-i-always-see-warning-message-object-is-in-status-wait-when-performing-a-request-download/
16. How to resolve error message Customer classification does not exist when downloading a customer into CRM
如何處理這個錯誤消息:
https://blogs.sap.com/2016/09/25/how-to-resolve-error-message-customer-classification-does-not-exist-when-downloading-a-customer-into-crm/
17. How to resolve error message Distribution channel is not allowed for sales organization when downloading customer material info record from ERP
如何處理這個錯誤信息:
https://blogs.sap.com/2016/09/26/how-to-resolve-error-message-distribution-channel-is-not-allowed-for-sales-organization-when-downloading-customer-material-info-record-from-erp/
18. How to use SAT to measure CRM Middleware inbound processing performance
如何用SAT分析中間件的性能問題
https://blogs.sap.com/2016/10/10/use-sat-measure-crm-middleware-inbound-processing-performance/
19. How to download Service master from ERP to CRM
如何下載Service Master
https://blogs.sap.com/2016/10/10/download-service-master-erp-crm/
20. How to resolve /SAPPSPRO/S_MAT_ENHANC_COMM issue during request download
一個filter引起的奇怪問題: 在調試器裏會觀察到一個奇怪的表:/SAPPSPRO/S_MAT_ENHANC_COMM
https://blogs.sap.com/2016/10/27/resolve-sappspros_mat_enhanc_comm-issue-request-download/
21. Material Sales Organization and distribution channel mapping logic in middleware
ERP和CRM銷售組織和分銷渠道的映射關系:
https://blogs.sap.com/2016/10/28/material-sales-organization-distribution-channel-mapping-logic-middleware/
22. How to download material division to CRM
如何下載ERP物料的division:
https://blogs.sap.com/2016/10/28/download-material-division-crm/
23. Settype CRMM_PR_SALESA attributes mapping logic between CRM and ERP
https://blogs.sap.com/2016/10/28/settype-crmm_pr_salesa-attributes-mapping-logic-crm-erp/
24. Settype CRMM_PR_SALESG attributes mapping logic between CRM and ERP https://blogs.sap.com/2016/10/31/settype-crmm_pr_salesg-attributes-mapping-logic-crm-erp/
25. Product Sales status handling logic in Middleware
物料銷售狀態(Sales Status)的映射邏輯
https://blogs.sap.com/2016/11/01/product-sales-status-handling-logic-middleware/
26. How to resolve error message Parent objects have not been downloaded when downloading a BOM from ERP to CRM
如何處理這個錯誤信息:
https://blogs.sap.com/2016/11/14/how-to-resolve-error-message-parent-objects-have-not-been-downloaded-when-downloading-a-bom-from-erp-to-crm/
27. How to download BOM from ERP to CRM – relationship STRSET or BOMITM
如何下載BOM
https://blogs.sap.com/2016/11/27/how-to-download-bom-from-erp-to-crm-relationship-strset-or-bomitm/
28. Step by step to send IDoc data into external receiver via XIF adapter
IDOC和XIF練習
https://blogs.sap.com/2016/12/23/step-by-step-to-send-idoc-data-into-external-receiver-via-xif-adapter/
29. Settype COM_TA_R3_ID – mapping between ERP Equipment and CRM Individual Object
序列號(Serial Number)知識分享
https://blogs.sap.com/2017/02/08/settype-com_ta_r3_id-mapping-between-erp-equipment-and-crm-individual-object/
30. Another reason that no IDOC is created for BUS_TRANS_MSG although all system configuration are correctly maintained
IDOC排錯案例分享: 銷售訂單成功保存之後,系統沒有自動生成對應的BDOC, 怎麽辦?
https://blogs.sap.com/2017/10/18/another-reason-that-no-idoc-is-created-for-bus_trans_msg-although-all-system-configuration-are-correctly-maintained/
31. BDOC Content Search tool
自己寫的根據關鍵字搜索BDOC的工具,收到一個DBS的同事反饋說很有用。
https://blogs.sap.com/2017/10/27/bdoc-content-search-tool/
要獲取更多Jerry的原創技術文章,請關註公眾號"汪子熙"或者掃描下面二維碼:
Jerry的CRM Middleware(中間件)文章合集