You are on page 1of 10

8/6/2014 LSMW and XIF - Idoc method | SCN

http://scn.sap.com/community/crm/master-data-and-middleware/blog/2013/06/27/lsmw-and-xif--idoc-method 1/10
Getting Started Newsletters Store

Products Services & Support About SCN Downloads
Industries Training & Education Partnership Developer Center
Lines of Business University Alliances Events & Webinars Innovation
Log On Join Us Hi, Guest Search the Community
Activity Communications Actions
Browse
SAP CRM: Master Data & Middleware
Previous
post
Next
post
0 Tweet 0
Some times when the Master data are to be uploaded from a legacy system or from any other non connected, non
SAP systems LSMW will come to the rescue. LSMW can be expanded as Legacy System Migration Workbench. This
is to migrate the business entities into the CRM system. This tool actually contains following methods in which we
can import data to CRM system:

Standard Batch / Direct Input
Batch Input Recording
BAPI
IDOC.

Out of these methods we will have a look into the steps of the importing business partners using Idoc method.
Step 1: Create project using transaction LSMW

Step 2: Select Maintain Attributes Radio Button:

Step 3: Maintain Attributes
Select Idoc Radio button and give "Message Type and Basic Type".
LSMW and XIF - Idoc method
Posted by Jothivenkatesh M in SAP CRM: Master Data & Middleware on Jun 27, 2013 6:30:32 AM
Share 2
0 Like
8/6/2014 LSMW and XIF - Idoc method | SCN
http://scn.sap.com/community/crm/master-data-and-middleware/blog/2013/06/27/lsmw-and-xif--idoc-method 2/10
Click on Save.

Step 4: Activate Inbound processing.
The following screenshots explain the activation of Idoc Inbound processing.
Click "Idoc inbound processings" under settings.
Here maintain "Port" and "Partner type" and Partner number here and Press Activate Idoc Inbound processing.

Step 5: Maintain Source attributes
8/6/2014 LSMW and XIF - Idoc method | SCN
http://scn.sap.com/community/crm/master-data-and-middleware/blog/2013/06/27/lsmw-and-xif--idoc-method 3/10
Click on "Maintain source structures" radio button. Click on Source attributes and then click on create.

Step 6: Maintain source fields

Step 7: Maintain structure relations
8/6/2014 LSMW and XIF - Idoc method | SCN
http://scn.sap.com/community/crm/master-data-and-middleware/blog/2013/06/27/lsmw-and-xif--idoc-method 4/10
Click on structure relation and click on relationship as shown above to maintain relationship.

Step 8: Maintain field mapping
And press F8.

8/6/2014 LSMW and XIF - Idoc method | SCN
http://scn.sap.com/community/crm/master-data-and-middleware/blog/2013/06/27/lsmw-and-xif--idoc-method 5/10
Extras ==> Auto field mapping. Press Enter until you get a popup message field mapping completed.

Step 9: Specify files
Click on the Legacy data while taking file from presentation server and click create.

Step 10: Assign files
8/6/2014 LSMW and XIF - Idoc method | SCN
http://scn.sap.com/community/crm/master-data-and-middleware/blog/2013/06/27/lsmw-and-xif--idoc-method 6/10

Step 11: Read data

Step 12: Display Read data


Step 13: Convert Data
8/6/2014 LSMW and XIF - Idoc method | SCN
http://scn.sap.com/community/crm/master-data-and-middleware/blog/2013/06/27/lsmw-and-xif--idoc-method 7/10

Step 14: Start Idoc generation
We will get popup like this:
8/6/2014 LSMW and XIF - Idoc method | SCN
http://scn.sap.com/community/crm/master-data-and-middleware/blog/2013/06/27/lsmw-and-xif--idoc-method 8/10
Average User Rating
(8 ratings)
0 Tweet 0
Click Ok.

Step 15: Create Idoc overview

After this step, idocs will be created which can be viewed in transaction WE05. I hope this might help who try to import
the Business objects using Idoc method of LSMW. For illustration purposes i have combined partners and orders in
few places. This is a guideline for LSMW Idoc input method.
1780 Views Topics: customer_relationship_management Tags: idoc, lsmw, replication, xif _adapter
Share 2
0 Like
15 Comments
Like (1)
Lus Prez Grau Jul 10, 2013 9:51 AM
Hi,

Nice introducction. this Link I belive also will help a lot:

http://help.sap.com/saphelp_nw04s/helpdata/en/87/f3ae74e68111d1b3ff006094b944c8/frameset.htm

And I hope this too

http://scn.sap.com/thread/3341140
http://scn.sap.com/message/14188308#14188308

Mixing SXDA + LSMW is a cool stuff, once you get rid off the basics.

Cheers!

Luis
8/6/2014 LSMW and XIF - Idoc method | SCN
http://scn.sap.com/community/crm/master-data-and-middleware/blog/2013/06/27/lsmw-and-xif--idoc-method 9/10
Like (2)
SAPf anatic Grif f en Jul 21, 2013 1:22 AM
Hi Jothivenkatesh

Very good posting.

Also I was wondering if you could create a similarly detailed blog about ALE/IDoc mechnism?
Especially I'm interested in delta load. Is there similar mechnism for ALE/IDoc to send data in a delta
way like CRM middleware?
Like (0)
Jothivenkatesh M Jul 24, 2013 6:18 AM (in response to SAPf anatic Grif f en)
Thanks. I will try and publish one in that front. CRM middleware always get involved atleast
in terms of XIF Idoc processing. But if the Idoc is originating from CRM system middleware
will take part in it.

Regards,
Venkat
Like (1)
Barkley Oneal Jul 21, 2013 2:54 AM
Hi

Decent post!

Can you please also let me know the basic difference between XIF and crm middleware?
eg. you can send data from ecc to crm both with crm middleware and XIF. With crm middleware, ecc
will use QRFC to call crm_bapi_save in crm and send the bapimtcs structures. But i'm not familar
with XIF. With XIF, how the ecc will send the data with idoc? and how crm will take and handle the
data?
Like (1)
Jothivenkatesh M Jul 24, 2013 6:22 AM (in response to Barkley Oneal)
Hi,
Thanks. When the Bdoc got generated, in the scheduler, middleware decides whether
there is a XIF site connected to the CRM system. If connected, then the data which is
created in Bdoc, will be transferred on to the XIF related modules to get it carried to the
connected system. Connected systems can be another CRM system itself or any other
external systems.

I am not sure of the fact where XIF is used to connect with ECC, because ECC will always
be a R/3 site.

Regards,
Venkat
Like (2)
James Chi Jul 24, 2013 4:00 AM
Hi Venkat

It's really excellent post! Hope to see more XIF blogs or documents.

Best Regards
James
Like (1)
Jothivenkatesh M Jul 24, 2013 6:23 AM (in response to James Chi)
Hi James,
Thanks. I will try and share more information in that front.

Regards,
Venkat
Like (1)
Kelly Green Jul 26, 2013 3:29 PM
Great post. Gave your 5 stars rating. Hope to see more XIF articles from you!
Like (0)
Jothivenkatesh M Jul 29, 2013 6:33 AM (in response to Kelly Green)
Thanks Kelly. I will target more articles soon.
Like (3)
Juan Huang Jul 27, 2013 1:05 AM
Terrific. XIF doc is so rare. Hope to see more.
Jothivenkatesh M Jul 29, 2013 6:33 AM (in response to Juan Huang)
Thanks Juan. Will try to write more.
8/6/2014 LSMW and XIF - Idoc method | SCN
http://scn.sap.com/community/crm/master-data-and-middleware/blog/2013/06/27/lsmw-and-xif--idoc-method 10/10
Follow SCN
Site Index Contact Us SAP Help Portal
Privacy Terms of Use Legal Disclosure Copyright
Like (0)
Like (0)
Juan Huang Aug 8, 2013 3:44 PM (in response to Jothivenkatesh M)
Just one question. In the beginning of your blog "Some times when the Master
data are to be uploaded from a legacy system...", could you please let me know,
what exactly 'legacy system' means? Can a CRM system be a legacy system? Or,
is it that a legacy system has to be an ECC system?
Like (1)
Lus Prez Grau Aug 8, 2013 10:24 PM (in response to Juan Huang)
Hi Juan,

Legacy system in this context means old system, an example, imagine
your company has another CRM like Siebel and now they want to replace
Siebel with SAP CRM, the legacy system will be Siebel.

Cheers!

Luis
Like (1)
Chris Mullin Jul 27, 2013 4:22 AM
Thanks. Very very helpful.
Like (0)
Jothivenkatesh M Jul 29, 2013 6:33 AM (in response to Chris Mullin)
Thanks Chris.

You might also like