White Paper - CRM Contact Person Replication - 09feb10
White Paper - CRM Contact Person Replication - 09feb10
White Paper - CRM Contact Person Replication - 09feb10
Table of contents
1.0 Intended Audience 3
2.0 Executive Summary 3
3.0 Replicating Contact Persons from ECC to CRM 3
3.1 Allowed ECC Account Groups for replicating Customers 3
3.2 Maintaining Contact Persons in ECC 3
3.3 R/3 Tables – Contact Person 4
3.4 CRM Filter Settings – R3AC1 5
3.5 Initial Download of Contact Person 5
3.6 CRM Tables – Contact Person 5
3.7 R/3 Tables – Contact Person after download 5
3.8 Number Range during Replication 5
3.9 Trouble Shooting 5
3.10 Manual Download - Contact Person 6
4.0 Internal number range other than standard grouping 6
4.1 Copy function module BUPA_MWX_BDOC_MAP_MAIN_CENTRAL7
4.2 The function module Z_CHANGE_CONTACT_GROUPING 7
4.3 Transaction code CRMC_BUT_CALL_FU 8
4.4 The Contact Person gets transferred with new number range 8
5.0 Same Number Range of Contact Person : ECC and CRM 9
5.1 Copy Function Module BUPA_MWX_BDOC_MAP_MAIN_CENTRAL9
5.2 Transaction code : CRMC_BUT_CALL_FU 11
Create contact person in R/3 using Transaction code VAP1 or directly in the customer
master VD01/VD02 screen . The R/3 Contact persons are stored in R/3 table KNVK. Note
that there is a field called as contact person in table KNVP but this is only if you maintain
contact persons in the partner function screen of the sold-to party.
E.g. You create a sold-to-party 300100 with a contact person 2000103. The sold-to party
300100 can be seen in R/3 table CRMKUNNR and the contact person is stored in R/3 table
CRMPARNR.
If contact person does not come down to CRM, check in Tx code R3AM1, make sure that
CUSTOMER_MAIN and CUSTOMER_REL are not in the running mode.
We want the system to select number range ZZ assigned to grouping Z002 which is not
Standard Internal Grouping.
FUNCTION Z_CHANGE_CONTACT_GROUPING.
*"--------------------------------------------------------------------
*"*"Local interface:
*" EXPORTING
*" REFERENCE(STATUS) TYPE SMWVALSTAT
*" CHANGING
*" REFERENCE(C_BP_STRUCT) TYPE BUS_EI_EXTERN
*" REFERENCE(ERROR_SEGMENTS) TYPE SMW_ERRTAB
*"--------------------------------------------------------------------
status = 'S'.
if sy-subrc = 0.
MOVE ls_map_contact-CONTACT_NO
TO c_bp_struct-HEADER-OBJECT_INSTANCE-BPARTNER.
MOVE lc_contact_grouping
TO c_bp_struct-central_data-common-data-bp_control-grouping.
ENDIF.
ENDFUNCTION.
4.4 The Contact Person gets transferred with new number range
CRM Tx code BUCF is used to maintain number range 04 and BUC2 is used to
maintain number range grouping 04.
Note : The number range 04 of CRM is external and a mirror of number range of
contact in R/3. Number range of contact person in R/3 is seen via number range
object PARTNER – Transaction code SNRO.
FUNCTION Z_CHANGE_CONTACT_GROUPING.
*"--------------------------------------------------------------------
*"*"Local interface:
*" EXPORTING
*" REFERENCE(STATUS) TYPE SMWVALSTAT
*" CHANGING
*" REFERENCE(C_BP_STRUCT) TYPE BUS_EI_EXTERN
*" REFERENCE(ERROR_SEGMENTS) TYPE SMW_ERRTAB
*"--------------------------------------------------------------------
status = 'S'.
if sy-subrc = 0.
MOVE ls_map_contact-CONTACT_NO
TO c_bp_struct-HEADER-OBJECT_INSTANCE-BPARTNER.
MOVE lc_contact_grouping
TO c_bp_struct-central_data-common-data-bp_control-grouping.
ENDIF.
ENDFUNCTION.