From the transaction code smw01, we can see that a BDOC may be sent to more than one target site. For example, the five sites shown in the transaction code will receive the site, the highlighted smof_erpsite indicates that client 504 of ERP system qi3 receives the BDOC.
So where is the site in the list read from?
Take bdocproduct_mat as an example to maintain the callback function in the smw3fdbdoc View:
The first callback smoh_replication_wrapper_msg is responsible for deciding the sites from which the BDOC needs to be sent from CRM.
This callback is automatically generated:
In my system, a total of six sites need to be received:
In the ABAP code, guid a17123b82c2ddda-8bc8080006277f8d is used to query the table smohsubsit. What does this GUID mean?
The description of the guid object can be found in the smohpubl table: product materials (mesg)
Here we find that it is one of the many objects that we are familiar with subscribing to a site in the transaction code smoeac. For example, the site in qi3/504 registers the release of "product materials (mesg)", which means that once the CRM product is modified, the corresponding BDOC will be sent to qi3/504.
For more original Jerry technical articles, follow the Public Account "Wang zixi" or scan the following QR code:
Publish-subscriber mode in CRM Middleware