Basic settings in CRM Middleware for the data Exchange with
ERP (R/3) System
By Sunil Peddina
SAP-CRM Consultant@Mahindra Satyam
Date: 06th June 2011
Local Settings in CRM System:
1. Defining Logical system (CRM)
Transaction code SPRO
SAP CRM IMG menu Customer Relationship Management CRM Middleware
and Related Components Communication Setup Set
Up Logical Systems Define Logical System
2. Assign Logical system to the client (CRM)
Transaction code SCC4
SAP CRM IMG menu Customer Relationship Management CRM Middleware and Related Components Communication Setup Set Up Logical Systems Assign Logical System to Client
3. Creating RFC user (CRM)
Transaction code SU01
SAP CRM menu Architecture and Technology System Administration
User Maintenance Users
4. Define Logical system for ERP
T.code: SPRO
5. Connecting ERP XX
6. Create the RFC user in client 000
7. Create RFC destination for replication & realignment for the client 000
8. Create RFC destination for replication & realignment for the client 222
Same as above create for client 222.
9. Site IDs & Subscriptions for ERP (in CRM)
The ERP system must be defined as a site, like the other systems of the distribution model. The CRM
site is already predefined so you need only to create the ERP site. Once you have created this site,
you must define the distribution rules (subscriptions), which determine the data the ERP site is to
receive.
Transaction
code
SMOEAC
SAP CRM GUI menu
Architecture and Technology Middleware
Administration Administration Console
10. Creating Subscriptions for OLTP
After the definition of the ERP site you create subscriptions using the subscription wizard to enable uploading of the data from CRM to OLTP.
a. Access the activity using one of the following navigation options:
Transaction code SMOEAC
SAP CRM GUI menu
Architecture and Technology à Middleware à Administration à Administration Console
b. In the Object type field, enter Subscription.
c. Choose the Create icon. d. Follow the subscription wizard instructions. e. Using the subscription wizard, create three subscriptions:
Subscription All Business Partners (MESG) subscription
Publication All Business Partners (MESG)
Subscription All Business Partner Relationships (MESG) subscription
Publication All Business Partner Relationships (MESG)
Subscription All Business Transactions (MESG) subscription
Publication All Business Transactions (MESG)
Subscription All Business Partner Hierarchies (MESG) subscription
Publication All Business Partners Hierarchies (MESG)
Subscription Billing
Publication Billing Documents (MESG)
Subscription Credit Check Subscription
Publication Credit exposures, unconditional (MESG)
Subscription Equipment_Upload
Publication Product Individual Objects via Object Family (MESG)
Subscription Product Materials
Publication Product Materials (MESG)
f. Assign these subscriptions to your ERP site.
Local settings in ERP system:
1. Defining the Logical system
Go to T.code – SALE -- Basic settings -- Logical systems -- Define Logical system.
2. Assign the logical system to client
Go to T.code- SALE - Basic settings - Logical systems - Assign Logical system to client
3. Create the RFC user
4. Create a logical system for CRM
5. Connecting the CRM
6. Create the RFC user in the client 000
Configuration for customizing Replication (CRM):
1. Registering Queues
Transaction code SMQR
SAP CRM IMG menu CRM CRM Middleware and Related Components
Queue Setup Register CSA Queues
Check on the CSA* then click on Registration to register the Queue.
2. Setting of error handler (CRM)
In this step, you define an ERP e-mail recipient for each BDOC type. Recipients automatically
receive messages in the Business Workplace Inbox if errors occur in the related BDOC.
Transaction code SPRO
SAP CRM IMG menu Customer Relationship Management CRM Middleware and
Related Components Message Flow Setup Assign Error
Actions to Messages
Similarly you can do it for all different options available (total 4 diff. options)
3. Checking ISO codes (ERP)
Transaction code SE16
SAP ERP GUI menu Tools ABAP Workbench Overview Data
Browser
Before starting the Customizing replication, verify that entries for the ISO codes are unique in
the following ERP tables:
Language keys (table T002 field LAISO)
Currency codes (table TCURC field ISOCD)
Countries (table T005 field INTCA).
4. Checking product hierarchy structure (ERP)
Transaction code SE11
SAP ERP GUI menu Tools ABAP Workbench Development ABAP
Dictionary
XXX
5. Defining product hierarchy structure (CRM)
Transaction code SPRO
SAP CRM IMG menu Cross Application Components SAP Product
Product Category Define Category Numbering
Schemes
6. Defining product ID settings (CRM)
Transaction code COMCPRFORMAT
SAP CRM IMG menu Cross-Application Components SAP Product Basic
Settings Define Output Format and Storage Format
of Product Ids
7. Replicating customizing objects from ERP to CRM system
Object Name Description
DNL_CUST_ACGRPB Accounting Group Business Partner
DNL_CUST_ACGRPP Account Group Product
DNL_CUST_ADDR Regional structure
DNL_CUST_BASIS Basis CRM online
DNL_CUST_BASIS2 Basis CRM online
DNL_CUST_BASIS3 Basis CRM online
DNL_CUST_BASIS5 Basis CRM online
DNL_CUST_BASIS6 Basis CRM online
DNL_CUST_BNKA Banking Master
DNL_CUST_KTOKD Business Partner: Acc. Group
Object Name Description
DNL_CUST_PAYPL Payplan
DNL_CUST_PRICE Sales pricing and pricing item
DNL_CUST_PROD0 Material number conversions
DNL_CUST_PROD1 Product: categories
DNL_CUST_PROD3 Material: ERP sales status
DNL_CUST_SALES Sales
DNL_CUST_SCE SCE varcond
DNL_CUST_SHIP Sales shipping
DNL_CUST_SPROD Sales product item
DNL_CUST_T502T Business Partner: T502T
DNL_CUST_TBRC Business Partner: Industries
DNL_CUST_TKUKL Business Partner: TKUKL, TKUKT
DNL_CUST_TNLS Business Partner: TNLS, TNLST
DNL_CUST_TPFK Business Partner: TPFK, TPFKT
DNL_CUST_TSAB Business Partner: TSAB, TSABT
DNL_CUST_TVAST Sales Document Blocking Reason
DNL_CUST_TVFS Sales Document Billing: Block
DNL_CUST_TVGF Business Partner: TVGF, TVGFT
DNL_CUST_TVIP Business Partner: TVIP, TVIPT
DNL_CUST_TVKN Business Partner: Attributes
DNL_CUST_TVLS Deliveries: Blocking Reasons/C
DNL_CUST_TVPV Business Partner: TVPV, TVPVT
DNL_PLANT Plant
DNL_CUST_TAX Tax
Transaction code R3AS
SAP CRM GUI menu Architecture and Technology Middleware Data
Exchange Initial Load Start
After executing the above it leads to the remote login to the ID1 (ERP-ECC) system to get the
customizing data.
The following message is displayed, as initial download started.