You are on page 1of 28

Reusable Component

Employee Master Replication : ECC to CRM


Prepared by: L&T Infotech

Document Number: CRM-2010-0015


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

Table of contents
1.0 Intended Audience 3
2.0 Executive Summary 3
3.0 ECC Settings 3
3.1 Logical Systems & RFC Destinations 3
3.2 Create Distribution Model in ECC3
3.1 Check Distribution Model replication in CRM 9
3.2 Activating Change Pointers for Delta Replication 13
4.0 CRM Settings 14
4.1 CRM Number Range Settings 14
5.0 Creating HR Master in ECC 19
6.0 Replication of Employee Masters from ECC to CRM 19
6.1 R/3 Initial Download - SE38 – RHALEINI 19
6.2 Checking Replicated Employees in CRM 21
7.0 Changing HR Master in ECC 27
7.1 Execute Program RBDMIDOC in ECC 27
7.1 Pre-requisites for downloading CUSTOMER_REL 28
7.2 Changing Employees in ECC Customer Masters 28

L&T Infotech - Confidential Page 2 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

1.0 Intended Audience


This White Paper is targeted at SAP CRM consultants functional & Technical
Consultants.

2.0 Executive Summary


This reusable component gives all settings required for replicating Employee
Master from ECC to CRM.

3.0 ECC Settings


3.1 Logical Systems & RFC Destinations

Logical system GE1CLNT200 assigned to ECC client 200. Logical system RMCLNT200
assigned to CRM client 200 – view through SCC4

Create RFC Destination CRMCLNT200 for CRM client 200 in ECC and Server ID
172.25.8.186 with user details and client 200.

3.2 Create Distribution Model in ECC

Transaction code SALE : Application Link Enabling (ALE)  Modeling and Implementing
Business Processes  Maintain Distribution Model and Distribute Views. (Direct transaction
code : BD64)

L&T Infotech - Confidential Page 3 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

Go to change mode and select ‘Create Model view’.

You get a popup. Fill in the details – Technical name, short text and validity.

Select ‘Add message type’ from the application tool bar.

Model view : HRCRM


Sender logical system : GE1CLNT200
Receiver logical system : CRMCLNT200
Message type : HRMD_ABA
L&T Infotech - Confidential Page 4 of 28
Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

Note : Only this message type works for employee transfer.

Save the model. From the same screen select the distribution model and from the menu
Environment --> Generate partner profiles.

Don’t change anything in the next screen. Simply Execute.

L&T Infotech - Confidential Page 5 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

You get the following message :

L&T Infotech - Confidential Page 6 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

2. Distribute the distribution model HRCRM

Select the distribution model. From the menu bar, Edit  Model View  Distribute

You get a dialog showing the receiver logical system. Execute.

L&T Infotech - Confidential Page 7 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

You get a log ‘Model view HRCRM has been created in target system CRMCLNT200’.

L&T Infotech - Confidential Page 8 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

3.3 Check Distribution Model replication in CRM

Go to the CRM system and check up whether this model has been created.
Transaction code BD64. The model has got copied. No changes can be made in CRM

Generate partner profiles for the distribution model in CRM by selecting


Environment  Generate partner profiles.

In the next screen, do not make any changes and Execute.

L&T Infotech - Confidential Page 9 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

L&T Infotech - Confidential Page 10 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

Partner profiles can be seen in transaction WE20.

L&T Infotech - Confidential Page 11 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

The above settings work only for intial transfer for R/3 employee masters. For delta
changes, change pointers need to be activated.

L&T Infotech - Confidential Page 12 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

3.4 Activating Change Pointers for Delta Replication

Transaction code BD61.

This activates change pointers globally for all message types.

6. In R/3, Transaction code SALE, Application Link Enabling (ALE) 


Modelling and Implementing Business Processes  Master Data Distribution 
Replication of Modified Data  Activate Change Pointers for Message Types

Activate change pointer for message type HRMD_ABA

Activate change pointers for message type HRMD_ABA

L&T Infotech - Confidential Page 13 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

4.0 CRM Settings


4.1 CRM Number Range Settings

CRM : Number Assignments. Generally, there are 3 types of number assignments (also
called switches) when business partners are created.

1 – The system uses the number from the general internal interval of the number
range object BU_PARTNER
2 – The system uses the number from a specific internal interval of the object
3 – The number is transferred from HR and a prefix is added. In this case, a specific
external interval, which must be defined as XX00000000 (up to XX99999999), is used
(where XX denotes any two letters).

The number range object for all switch positions is BU_PARTNER, with the interval
depending on the switch value.

For switch value 1, the system uses the internal standard interval, otherwise for switch
values 2 and 3 you must also create a grouping (transaction BUC2) for these intervals. For
the system to be able to connect the grouping and the number range interval, the name
L&T Infotech - Confidential Page 14 of 28
Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

of the grouping must be exactly the same as the name of the corresponding number
range interval (the name of the grouping is contained in the first column of the table). If
you select 3 (HRALX/PNUMB = 3) for the number assignment of busienss partners of the
employee role, create HRALX/PSUBG switch manually in table T77S0.

In table T77S0, HRALX/ONUMB is used to set the number assignment for organizational
units and HRALX/PNUMB is used to set the number assignment for employees.

Create a number range ZZ.

Note: For the system to be able to connect the grouping and the number range interval,
the name of the grouping must be exactly the same as the name of the corresponding
number range interval.

Transaction code BUC2. Create a grouping of the same ID as that of the number range.
E.g. Number range ID : ZZ and grouping ID should also be ZZ.

If you select 3 (HRALX/PNUMB = 3) for the number assignment of business partners of the
employee role, create a HRALX/PSUBG switch manually in table T77S0.

L&T Infotech - Confidential Page 15 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

In table T77S0, HRALX/ONUMB is used to set the number assignment for organizational
units and HRALX/PNUMB is used to set the number assignment for employees.

In table T77S0, maintain the following combinations

HRALX-PNUMB = 2
HRALX-PSUBG = ZZ

L&T Infotech - Confidential Page 16 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

Group Sem Abbr Value Abbr


HRALX HRAC X Activate HR Integration with CRM
HRALX OBPON ON Activate integration between Business
partners and Org Units
HRALX PBPON ON Integration between business partners
and employees
HRALX OPROL BUP004 Role definition for org unit – Business
partner
HRALX PPROL BUP003 Role definition for Employee – Business
partner
HRALX ONUMB 1 Number range assignment for org units
HRALX PNUMB 2 Number range assignment for
Employees
HRALX PSUBG ZZ Number range grouping only if PNUMB
is not 1.

L&T Infotech - Confidential Page 17 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

L&T Infotech - Confidential Page 18 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

5.0 Creating HR Master in ECC

Create Employee Master in R/3. Employee master consists of Infotypes. The mandatory
info types are Actions, Address, Personal data and Organizational Assignment.

Transaction code : PA30

6.0 Replication of Employee Masters from ECC to CRM


6.1 R/3 Initial Download - SE38 – RHALEINI
Plan version : 01
Object type : P – Person (always)
Object ID : Employee ID e.g. 1
Receiver Partner no. : CRMCLNT200

L&T Infotech - Confidential Page 19 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

Select further details

You get all the data transfer details.

L&T Infotech - Confidential Page 20 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

6.2 Checking Replicated Employees in CRM

In CRM, transaction code PP01, put the object ID the employee number in R/3.

L&T Infotech - Confidential Page 21 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

You see that the employee 1 has got transferred. To see the corresponding business
partner go to the infotype Relationships (the first row).

Screen 1:

Screen 2 gives you the business partner ID in CRM.

L&T Infotech - Confidential Page 22 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

To see the business partner number generated in CRM, go to infotype relationships and
select further details.

L&T Infotech - Confidential Page 23 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

L&T Infotech - Confidential Page 24 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

L&T Infotech - Confidential Page 25 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

When filters are set in objects via R3AC1, on synchronization, this gets updated in R/3
table CRMFILTAB.

Add date rule today time in the date profile.

L&T Infotech - Confidential Page 26 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

7.0 Changing HR Master in ECC


Change the Employee Master in ECC. All subsequent changes in ECC, i.e. changing
an existing JR Master or creating a new one goes through directly by program
RBDMIDOC.

7.1 Execute Program RBDMIDOC in ECC


Execute program RBDMIDOC in R/3 to send the changes over to CRM. Put message type
‘HRMD_ABA’ and Execute.

L&T Infotech - Confidential Page 27 of 28


Reusable Component – Employee Master Replication
Feb 2010
Author: Kaushik Sarkar

7.2 Pre-requisites for downloading CUSTOMER_REL

After all employees are transferred to CRM from R/3 only then it’s safe to execute initial
download CUSTOMER_REL.

7.3 Changing Employees in ECC Customer Masters


If an Employee responsible 2 is replaced by 3 in the customer master in R/3, then in CRM,
the same is not replaced. Only difference that the sales area assignment is no longer
there for the replaced employee in transaction BP relationships.

L&T Infotech - Confidential Page 28 of 28

You might also like