Setting Up CRM Middleware: Step 1 - Define Logical Systems (CRM)
Setting Up CRM Middleware: Step 1 - Define Logical Systems (CRM)
Below are the steps to configure the middleware for replication of data between CRM and
R/3 system. In each step, the target system is mentioned in the braces indicating which
system this particular setting is to be done.
Goto tcode SCC4. Alternate path: IMG -> Customer Relationship Managment
-> CRM Middleware and Related Components ->Communication Setup -> Set Up Logical
Systems -> Assign Logical System to Client.
Select your CRM client.
Choose Details
The Change View “Clients”: Details screen appears.
Under Logical system, enter , for example, CS7CLNT200.
Save your entries.
Goto tode SCC4. Alternate path: In the SAP ERP menu, goto Tools ->
Administration -> Administration -> Client Administration -> Client Maintenance.
Select your ERP client and choose Details (Ctrl + Shift + F2).
In the Logical System field, select the newly created logical system of your SAP
ERP client using the input help.
Save your entries.
You will see different fields show up in technical settings and other tabs.
In Tech Settings tab, select Load Balancing as No. System number you can get from
the logon pad. Target host and IP address you can get from your basis team. ( Remeber all
these details are of your target system and not of your CRM system.)
If we have defined this system as a trusted system in the target system then we can
select the radio button as Yes. Else we can leave it as No.
As we shall be using the RFC in background as well we can keep the check-box for
Logon screen as unchecked. If we check this checkbox then system would throw up the
logon screen where the details are to be entered in order to login to the system. This kind of
manual intervention cannot be handled in background.
If we are using the Secure Network Communication (SNC) for which the profile has
already been configured then this field becomes active.
We can have an added authorization to allow only specific users to use the RFC
Connection. This can be done by adding a value in the field ‘Authorization for Destination’.
Enter the logon language and the client number for your target system.
Enter the RFC user name and password which we created in Step 1 in the R/3
system. (remeber this user is available in your target system and not your current system.)
The password field will not be required if we select trusted system.
Save your entries. Other tabs and fields can be left as default.
Now to view the connection you can go to SM59 tcode and in the initial screen open the
ABAP connections folder. Double click on the RFC connection name you created. It will
display the selected RFC connection. Here you can test your connection using the Test
connection button. You can also edit your connection and save it.
Table CRMCONSUM
User : CRM
Active: selected
Description: CRM
Q-prefix: R3A
Table CRMRFCPAR
User: CRM
Object name: *
In this table, set the application NDI (New Dimension Integration) to status Active by
selecting the check box in the A column.
Any system involved in the data transfer is referred to as a site, eg CRM system,
R/3 system or BW system. Each site individually can act as a source site or a target site or
both at the same time during a bidirectional exchange of data.
A Publication is a logical group or set of data eg Bus. Partners, relationships,
campaigns conditions etc.Each publication has replication object (which is generated from
and represents a particular BDoc type) assigned to it which determines the data which shall
be exchanged.
Subscription is the assignment of a Publication to a particular site.
To configuration of all the above can be done from tcode SMOEAC or IMG path:
IMG -> Customer Relationship Management -> CRM Middleware and Related
Components -> Communication Setup -> Create Sites and Subscriptions.
In SMOEAC initial screen select object type on the left panel as Site and click on
create button.
Enter a name and description for this site. (remember we are creating a site for r/3
system so name it similar to it)
In the type field select R/3
Click on the button "Site Attributes".
A popup is displayed.
Enter the RFC destination we created in step 2 above.(i.e. RFC destination of the
R/3 system)
Click on button "Get Values". All other fields of the popup will get populated
automatically.
Save the site. A new site is created.
Creating a publication
On the left hand side select object type as publication and click on create button. A
wizard will be started.
Enter a name for the publication.
Select Simple intelligent or simple bulk popup depending on need.
Select the replication object on the right based on the requirement.
Next screen aloows to select criteria fields.
On the left all the available criteria fields will be displayed. to select the fields and
click on right arrow to move it to the right column to select it.
After this just complete the wizard and a publication will be created.
On the left hand side select object type as Subscription and click on create button. A
wizard will be started.
Enter a subscription name and the publication name you want to subscribe to.
If applicable (if we have selected Criteria Values during configuration of the
Publication as we have seen in the earlier step) then the screen for Criteria Values shall
appear. Else on clicking the ‘Continue’ button this step will be ignored and the screen for
Sites assignment shall appear.
To assign a site click on the create button.
A popup will be displayed showing all the available sites. Choose the site which
you want to assign. Multiple sites can be selected depending on the need.
Complete the wizard to create the subscription.
Step 11 - Define Middleware Parameters These are the parameters which determine how
the data exchange between various systems will happens. These parameters would be
dependant on the various business scenarios of the Client.We can maintain these parameters
using transaction R3AC6. you can get some examples on how maintian the parameters in
SAP note 490932.
Step 12 - Registration of RFC destination.
Check that all the RFC Destinations have been registered. Unless and until the registration
is done there shall not be any data exchange with those destinations.
This can be done in transaction SMQS
If any of the queue is showing as Type = U, then select the queue and click on
registration.
To deregister the queue (for debugging purpopse), select the queue and click on
deregister.
If you do not see any queue entry in SMQR, then you can run
FMQIWK_REGISTER to add a queue entry.
Number ranges must be defined according to the requirement, inorder for the replication to
take place correctly.
For example, if a BP is created in CRM and this BP has to be replicated to R/3 with
the same BP number, then number range for business partner in CRM should be defined as
internal and number ranges in R/3 for BP should be defined as external.
There are primarily three types of objects viz. Business Objects, Customizing Objects and
Condition Objects. These can be done in transactions R3AC1, R3AC3 and R3AC5
respectively. Here we can as well setup the filters and inactivate/activate objects for data
exchange. Alternate path is: SAP Menu -> Architecture and Technology -> Middleware ->
Data Exchange -> Object Management
Once the above configuration steps are done we can start with the data exchange between
SAP R/3 and CRM system.