SAP CRM中介軟體Material Sales Organization和distribution channel的對映邏輯

i042416發表於2020-09-22

For example, I have created a material with the following sales organization and distribution channel id in ERP:


SAP CRM中介軟體Material Sales Organization和distribution channel的對映邏輯


In tcode SMW01, I observed the following sales organization and distribution channel mapped in settype CRMM_PR_SALESA in CRM.


SAP CRM中介軟體Material Sales Organization和distribution channel的對映邏輯


In ERP, these two fields are maintained in table MVKE:


SAP CRM中介軟體Material Sales Organization和distribution channel的對映邏輯


The fields observed in tcode SMW01 are filled by these two lines. In line 45, the variable iv_crmvkorg already contains the converted sales organization in CRM format.


SAP CRM中介軟體Material Sales Organization和distribution channel的對映邏輯


The conversion is based on ERP sales organization id passed from middleware. The logic is implemented by subroutine below:


SAP CRM中介軟體Material Sales Organization和distribution channel的對映邏輯 SAP CRM中介軟體Material Sales Organization和distribution channel的對映邏輯 SAP CRM中介軟體Material Sales Organization和distribution channel的對映邏輯


Why 0001 is mapped to O 50040102? The table hrv1222a is queried against the following search criteria:


SAP CRM中介軟體Material Sales Organization和distribution channel的對映邏輯


O 50040102 is found because it is marked as SAP ECC Sales Org. 0001.


SAP CRM中介軟體Material Sales Organization和distribution channel的對映邏輯


For distribution channel, it is directly filled with the value exactly from ERP table field MVKE-VTWEG.


SAP CRM中介軟體Material Sales Organization和distribution channel的對映邏輯


After fill, there is a check performed by CRM_PR_SALES_CHECK_DISTR_CHAIN. In my example, the check passes since the distribution channel 01 is already maintained in this CRM sales organization.


SAP CRM中介軟體Material Sales Organization和distribution channel的對映邏輯


要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":

SAP CRM中介軟體Material Sales Organization和distribution channel的對映邏輯


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2723198/,如需轉載,請註明出處,否則將追究法律責任。

相關文章