Skip to Content
Technical Articles
Author's profile photo Foued Boubaker

EWM Change ERP system


The purpose of this blog is to give you some insights about the required configuration and manual steps if you change the ERP system connected to EWM.

Business Case

If you use a Decentralized EWM system, the database should be connected to an ERP system. It can be an SAP or non-SAP system.

Recently, I worked on a migration project. We changed the ERP system from SAP PXX to SAP PYY.

I mentioned below the required configuration points and manual steps for this case.


/!\ There are some Basis setup like the queues which should be done. I will mention only the functional settings.


EWM Configuration

  • Create new BSG


You define a new BSG for the new ERP system PYY

  • Assign logical system to BSG


Assign the ERP and EWM systems to the new BSG

  • Update recipient depedent control of processes


  • Update the warehouse number mapping


  • Update route mapping


  • Update storage location mapping


  • Delivery mapping

SPRO > Extended Warehouse Management > Interfaces > ERP Integration > Delivery Processing

Check and update the delivery mapping if you are using the ERP system as an entry

For us, the ERP system is defined for the delivery types and item mapping

  • Production mapping

SPRO > Extended Warehouse Management > Interfaces > ERP Integration > Production

Check and update the production mapping if you are using the ERP system as an entry

  • Transportation mapping

SPRO > Extended Warehouse Management > Interfaces > ERP Integration > Transportation

Check and update the transportation mapping if you are using the ERP system as an entry


ERP configuration

  • Setup distribution model

T-code = /SPE/OL19

Run the distribution model generation for each ERP warehouse number


EWM Manual steps

  • Mass update BP

In the ship-to tables, the system stores the source ERP system.

Field = Responsible institution –> It should be updated by the new ERP system

Transaction MASS











Run it for all BP

  • Partner profile

Transaction WE20

Define the inbound and outbound Idocs for the new ERP system

You have to create also the new receiving port

  • Mass change BSG for products and locations

As for the BP, the BSG is stored in products (/sapapo/matmap) and location table (/sapapo/locmap)

You have to replace it by the new BSG. For this, there is a program which can be used to mass update it.

You have to implement it by the OSS note 213109


ERP Manual steps

  • Partner profile

Transaction WE20

Create the EWM partner profile in the new ERP system

Batch class and characteristics

We have the class and char numbers in EWM and ERP.

In EWM, the system stores the class and char number coming from the ERP (like the BSG for products and BP).

–> We have to

  1. CIF the class and char
  2. Update the class and char in EWM table with the new class and numbers of the new ERP system
  3. Check the EWM class table
  4. Check the char EWM table
  5. Initial CIF of batches
  • CIF the class and char

Transaction CFM1 and CFM2

  • Update the EWM class and char table


/!\ Normally this program should update the class and char EWM tables. However, when we used it, it updated only the class table.

  • Check EWM class table

EWM class table = TCL_CLINT_IDENT

ERP class table = KLAH


  • Check EWM char table

EWM char table = TCL_ATINN_IDENT

ERP class table = CABN


/!\ In our case, I updated the table TCL_ATINN_IDENT manually via SE16 in debug mode.

  • Initial CIF of batches

SAP recommended to run the program RIMODINI for the first CIF of batches



I hope this can help other consultant in case they are working on such project.

Don’t hesitate to comment this blog.



Foued B.

Follow the SAP Extended Warehouse Management environment Topic page (,
Post and answer questions (,
Read other posts on the topic (
You can follow my profile for other EWM topics

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.