Initial Data Transfer for Replicating Business Partners
Make the settings described in the following once you have made the general settings for the business partner in SAP CRM and other configuration settings in the SAP Solution Manager.
The following contains a summary of the business partner or SD customer concept in SAP ERP.
When a business partner is created or changed in the role Prospect or Contract Partner in SAP ERP, you can specify a sample customer (SD customer). This creates an SD customer with the same number for the business partner. The system copies the data from the sample customer (tables KNA1, KNB1, KNVV, KNVP, KNVA, KNVI, KNVD, KNEX, KNVS and KNVL). The name and address data and some additional fields are transferred from the business partner. If the SD customer has already been created, the system only copies some of the data from the sample customer including any sales areas that do not yet exist.
If you now connect a CRM System, the system exchanges the central data for the CRM business partner with the business partner in SAP ERP and the CRM-specific data with the SD customer. The CRM business partner has the same number as the business partner in SAP ERP and the SD customer.
Convert Control Tables
To implement a business partner concept that is specific to the utilities industry, you must convert the following control tables. In the ERP table COM_BUPA_CALL_FU (transaction SM30) for the object Business Partner, make the following entries (select the call indicator):
|
Event |
Item |
Function Module |
|
Mapping Inbound Processing |
5000 |
COM_BUPA_MWX_FILTER_ISU |
|
Mapping Inbound Processing |
10000 |
COM_BUPA_MWX_FILTER_MAIN |
|
Mapping Inbound Processing |
50000 |
COM_BUPA_MWX_MAP_NUMRANGE |
|
Mapping Inbound Processing |
100000 |
COM_BUPA_MWX_MAP_MAIN_CENTRAL |
|
Mapping Inbound Processing |
150000 |
COM_BUPA_MWX_MAP_ISU |
|
R/3 Object Inbound Processing |
3000000 |
COM_BUPA_MAIN_INBOUND_ISU |
|
R/3 Object Inbound Processing |
1000000 |
COM_BUPA_MWX_CREATE_MAIN |
|
Mapping Outbound Processing |
100000 |
COM_BUPA_MWX_BPS_FILL_CENTRAL |
|
Mapping Outbound Processing |
150000 |
COM_BUPA_MWX_BPS_FILL_ISU |
Delete the other entries for these events.
In the CRM table CRMC_BUT_CALL_FU (transaction SM30) for the object Business Partner, make the following entries (select the call indicator):
|
Event |
Item |
Function Module Name (Function Name) |
|
CRM Inbound |
50000 |
CRM_BUPA_BDOC_MAP_NUMRANGE |
|
CRM Inbound |
100000 |
BUPA_MWX_BDOC_MAP_MAIN_CENTRAL |
|
CRM Inbound |
200000 |
CRM_BUPA_BDOC_MAP_MAIN |
|
CRM Outbound |
100000 |
BUPA_MWX_BDOC_BPS_FILL_CENTRAL |
|
CRM Outbound |
200000 |
CRM_BUPA_BDOC_BPS_FILL_DATA |
|
ERP Adapter Outbound |
100000 |
BUPA_MWX_BDOC_UP_CURRSTATE_SET |
|
CRM Inbound BUPA |
1000000 |
BUPA_INBOUNG_MAIN_CENTRAL |
|
CRM Inbound BUPA |
1100000 |
CRM_BUPA_INBOUND_MAIN_MD |
|
CRM Inbound BUPA |
1200000 |
CRM_BUPA_BDOC_MAP_MAIN |
|
CRM Inbound BUPA |
1300000 |
CRMPHA_MWX_BDOC_MAP_PHARMA |
|
CRM Inbound BUPA |
1400000 |
CRM_BUPA_KOREA_INBOUND_MAP |
|
CRM Inbound BUPR |
1000000 |
BUPA_INBOUND_REL_CENTRAL |
|
CRM Inbound BUPR |
1100000 |
CRM_BUPA_INBOUND_REL_MD |
|
CRM Inbound BUPR |
1200000 |
CRM_BUPA_BDOC_MAP_REL |
|
CRM Inbound BUPR |
1300000 |
CRMPHA_MWX_BDOC_MAP_REL_PHARMA |
|
CRM Outbound BUPA |
1000000 |
BUPA_OUTBOUND_BPS_FILL_CENTRA |
|
CRM Outbound BUPA |
1200000 |
CRM_BUPA_OUTB_BPS_FILL_MD |
|
CRM Outbound BUPA |
1300000 |
CRM_BUPA_BDOC_BPS_FILL_DATA |
|
CRM Outbound BUPA |
1400000 |
CRMPHA_MWX_BDOC_BP_FILL_PHARM |
|
CRM Outbound BUPA |
1500000 |
CRM_BUPA_KOREA_OUTBOUND_MAP |
|
CRM Outbound BUPR |
1000000 |
BUPA_OUTBOUND_BPR_FILL_CENTRA |
|
CRMOU BUPR |
1200000 |
CRM_BUPA_OUTB_BPR_FILL_MD |
|
CRMOU BUPR |
1300000 |
CRM_BUPA_BDOC_BPR_FILL_DATA |
|
CRMOU BUPR |
1400000 |
CRMPHA_BR_BDOC_FILL_DATA |
In SAP CRM using the transaction SM30, you must delete the entries for the following events in the view V_SMOFEVOB:
-
00001321
-
CAM_1000
-
CAM_2000
-
CAM_3000
In SAP ERP, use the transaction BF31 (Change Application Modules for each Publish/Subscribe Interface) to change the assignment of the function modules for both Business Transaction Events (BTE):
|
Event |
Appl. |
Function Module |
|
DE_KTOKD |
IS-U |
COM_INTERFACE_DE_KTOKD_ISU |
|
00001321 |
IS-U |
ISU_INTERFACE_00001321 |
Delete all other entries for these events.
Exchanging Roles
The sold-to party in SAP CRM is replicated to the OLTP System as the contract partner and vice versa.
The role Installer from SAP ERP is not transferred to the CRM System.
The system only transfers additional roles, such as customer-specific roles from SAP ERP to SAP CRM if they have been created there.
Define Groupings and Number Ranges
To ensure that business partners have the same numbers, you must create an external number range with the same area in the respective other system for each internal number range (number range object BU_PARTNER) and assign this to a grouping (ERP, or CRM table V_TB001; transaction SM30). During the data exchange, the system automatically selects a grouping that is assigned to this number range.
Set up the areas so that there is sufficient space for longterm operation.
The procedure for selecting an account group when a business partner is created in SAP CRM is similar to the procedure for defining number ranges. An external number range (number range object DEBITOR) to which an account group has been assigned (ERP table T077D; transaction SE16) must be available for the number used to create the business partner in CRM. This account group must also fulfill additional requirements, it must for example correspond to the roles in SAP CRM Prospect or Sold-to Party. If several account groups are available for selection, the system uses those intended to be used for FI-CA (see table TFK077D).
During the initial download, you should temporarily convert all number ranges to external number ranges, so that all business partners can be created with the same number. The system searches for a grouping that is assigned to a suitable external number range, as is also the case for the delta download.
Sample Customers for Delta Upload
In the ERP table TCRMBP_REFCUST (transaction SE16), you can record sample customers. The system uses these to create a business partner in SAP CRM, but transfers less data here then that transferred when creating an R/3 business partner (ERP tables KNVD, KNB1, KNEX, KNVS snd KNVL; transaction SE16).
The system performs a generic search for a sample customer in the table TCRMBP_REFCUST. It first uses the Category, Grouping and Type, followed by the Category and Grouping (Type no entry), and then simply the category (Grouping and Type no entry) and finally without an entry in any of the key fields.
Initial Download
Before performing the initial download, check whether an SD customer has been created in SAP ERP for all business partners for which this is required or requested. (An SD customer is for example mandatory if you are using the Billing Engine in SAP CRM).
Check whether business partners already exist for all SD customers. Tools are available for creating business partners for SD customers (for example during the implementation of SAP for Utilities). In the scenario described, you should not create an SD customer directly (except for sample customers), since you cannot replicate them to SAP CRM.