Isu
- 1. Middleware Replication: ISU
Installation Facts into CRM
Service Contract
Applies to:
SAP CRM and SAP IS-U. For more information, visit the Customer Relationship Management homepage.
Summary
This document is created to share the SAP CRM-ISU project experience. As per the standard SAP ISU -CRM
data model the installation facts are only maintained in the SAP IS U system and this data not gets replicated
to SAP CRM system. This document explains the development which is required to take care of this simple
requirement of replicating ISU Installation Facts data into the CRM S ervice Contract Custom field and can be
used as a reference for developing any fut ure similar requirements.
I would like to thank Mr. Rajesh Elumalai for his contribution in the ABAP area.
Author: Suraj Jadhav – SAP CRM-ISU Consult ant
Company: Capgemini India P vt. Ltd.
Created on: 14th December 2010
Author Bio
Suraj Jadhav is SAP Sales and Distribution Certified, CRM Leasing Trained Functional Consultant with Over
7 years of total experience and over 5 years of consulting experience in SAP CRM, ISU and Sales and
Distribution with leading IT consulting organizations.
Currently working as a Senior SAP CRM -ISU Consultant, in Capgemini India P vt Ltd and providing
innovative solutions to global clients.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 1
- 2. Middleware Replication: ISU Installation Facts into CRM Service Contract
Table of Contents
Introduction............................................................................................................................................. 3
Prerequisites ....................................................................................................................................... 3
ISU-CRM Replication Objects .................................................................................................................. 3
Middleware BAdI Development ................................................................................................................ 4
ECRM_CRM_DOWNLOAD .................................................................................................................. 4
ECRM_DOWNLOAD............................................................................................................................ 4
Test Results............................................................................................................................................ 5
ISU Installation Facts ........................................................................................................................... 5
ISU Cont ract ........................................................................................................................................ 5
CRM Servic e Contract in Web UI .......................................................................................................... 6
Sample Code .......................................................................................................................................... 6
Relat ed Content ...................................................................................................................................... 7
Disclaimer and Liability Notice.................................................................................................................. 8
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 2
- 3. Middleware Replication: ISU Installation Facts into CRM Service Contract
Introduction
This document is prepared for sharing a development experience of one of the CRM-ISU implementation
project. If there is any requirement of replicating any IS U installation facts data into the CRM Service
Cont ract Custom Fields, then this document will help SAP Consultants to speed up the development using
the sample code. This document will also be very useful in future for somet hing similar kind of replication
requirements.
Prerequisite s
SAP ISU and CRM business process knowledge.
Knowledge about SAP CRM middleware replic ation objects.
Middleware settings bet ween the CRM and ISU systems
CRM Middleware B Doc (Business document ) knowledge
SAP ABAP programming knowledge.
ISU-CRM Replication Objects
The data replication between the IS U and CRM system happens through the middleware and there are some
objects for which data can be replicated int o the CRM from ISU system.
Following diagram explains the details about the object relationship between the ISU and CRM systems in
terms of middleware replication:
ISU CRM
M
Business Partner Business Partner
I
D
D
BP Relationship BP Relationship
L
E
W
Contract Account Business Agreement
A
r
Utility Contract E
Service Contract
R
Installation PoD CRM Installed Base
E
PoD & Premise
P
Premise
L
I CRM Installed Base
Connection Object C Connection Object
A
T
Business Contact I
O Business Activ ities
Business Contact Notes N
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 3
- 4. Middleware Replication: ISU Installation Facts into CRM Service Contract
The CRM Replication can be done by two met hods as below:
Initial Download
Delta Download and
Request Download
So as per the standard middleware settings, there is no object in CRM to which ISU installation facts data
can be replicated.
For this SAP has provided us two BAdI’s (Business Add-In) which we can use to replicate such type of data.
Middleware BAdI Development
As per the SAP CRM Middleware setup, the ISU installation facts data replication into CRM is not a standard
practice. But if there are any business requirements to replicate some IS U data into CRM through
middleware then, this can be met using the middleware BAdI’s.
SAP has provided following two different middleware related BAdI’s, one in CRM system and other in ISU
system
ECRM_CRM_DOWNLOAD (In ISU system)
ECRM_DOWNLOAD (In CRM system)
ECRM_CRM_DOWNLOAD
SAP has provided this BAdI in IS U system for downloading any IS U Contract related data into CRM B Doc
container, which is not support ed in standard middleware objects.
So in our scenarios what we want is to send some custom facts data from ISU table into the CRM BDoc
container.
For this we have to develop the method “ecrm crm_download_fill_data_new”, to fetch the IS U facts data from
the table and then send it into the Bdoc container.
This BAdI then takes the ISU facts data from table “E TTIFN” and then sends this data to BDoc container.
Once this BAdI is developed and data is send to CRM container then the next BAdI will take care of the next
steps.
ECRM_DOWNLOAD
SAP has provided this BAdI in CRM system for downloading any ISU data from CRM BDoc container into
the CRM Service contract table structure, which is not supported in standard middleware objects.
For this we have to develop the method “ecrm_download_fill_data”, to fetch the data from the Bdoc container
and then send it to the relevant table-field.
This BAdI then downloads the ISU facts data whic h is sent by ISU BAdI and then replicated this to CRM
table ORDE RADM_i and field ZZ_ME TERTYPE
So as per our scenarios the installation facts data will then transferred into the custom field at the CRM
service cont ract item level.
Note:
The sample code for the above two BAdI’s are attached in the section “Sample Code”.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 4
- 5. Middleware Replication: ISU Installation Facts into CRM Service Contract
Test Results
Below are the screen shots of the test results for successfully replicating the installation facts data into CRM
Service Contract custom field at the item level:
ISU Installation Facts
ISU Contract
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 5
- 6. Middleware Replication: ISU Installation Facts into CRM Service Contract
CRM Service Contract in Web UI
Sample Code
Below are the sample development codes related to the BAdI’s mentioned above:
Note: This approach can also be valid if you migrate this type of data usi ng the EMIGALL tool in SAP IS-U system.
Using this approach we can easily replicate the ISU field data into CRM field through middleware.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 6
- 7. Middleware Replication: ISU Installation Facts into CRM Service Contract
Related Content
SDN Middleware Forum
IS-Utilities SDN Forum
Customer Relations hip Management homepage
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 7
- 8. Middleware Replication: ISU Installation Facts into CRM Service Contract
Disclaimer and Liability Notice
This document may discuss sample coding or other information that does not include SAP offic ial interfaces and therefore is not
supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP w ill not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,
and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type w ith respect to the content of this technical article or
code sample, including any liability resulting from incompatibility betw een the content within this document and the materials and
services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable w ith respect to the content of this
document.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 8