Migrating Customers along with relationships (CRM) using LSMW


Select a Grouping and a Business Partner number in that Grouping and the role under which the customers needs to be created. Enter all the necessary details for business partner that needs to be loaded from the flat file: 


Fig-09: Shows Business partner number, Grouping and Role and other details entered. “External Grouping for loading the Customers and Accounts” has been used.

Maintain relationships for the Business partner, as shown in fig-10 if relationships also need to be mapped from flat file.  


Fig-10: Displays three Relationships of BP number 1100. 

Once all the details have been entered save the Business Partner and click on back icon to go to recording that we created. 

Click on the fields displayed in orange color to change the name and default value of the fields. And let the other fields remain same whose values need to be defaulted to existing values. 

Fig-11: Displays the first screen of Recording ZRECORDC


Fig-12: Displays the second screen of Recording ZRECORDC  


Fig-13: Displays the third screen of Recording ZRECORDC asking details for relationships. 

Now once recording is done, this is the first step of LSMW menu where the way or method of Import needs to be decided. There are generally four choices:

  1. Standard Batch/ Direct Import Method

- Direct insertion of data through Batch input programs.

  1. Batch input Recording method

- In this method a Recording of the transaction needs to be created which is later run as a Batch input Session.

  1. Business object Method (BAPI)

- Here the BAPI takes care of the data conversions and updating any database table. So the function module is responsible for the import of data into the system.

  1. IDoc (Intermediate documents)

- Here the data is written into an IDoc and passed to the LSMW to get it imported into the system.

However This Document discusses the import of data through Batch input Recording Method. 


Fig-14: Choose the “Batch input recording” radio button and give the name of the recording that has been done earlier. Then save the object attributes. 

The LSMW system has to have the prior knowledge of what kind of data it is getting from the source that has to be imported into the system. For this reason the following three steps are very important that describe the structure of the files that has to be imported.



Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image