cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Migration Cockpit: Error AM 215 - Country changing inexplicably when extending BP with new role

Paul_H
Explorer
0 Kudos
228

Hello all,

I am trying to extend a Business Partner that currently is just a supplier with the role "goods recipient" via the SAP S/4HANA Migration Cockpit.

For this, I am using the Migrationobject "Customer - extend existing record by new org levels" aka. CUST_EXT_3 as the new role is for customers and SD Data is meant to be added to the BP.

In the downloaded template for the migration, only the general, BP role and sales data tabs are filled with no addresses whatsoever. Simply the BP identifier, run_id, bp_role and sales data such as the sales organizations, the distribution channels and divisions.

There are no problems when mapping. All values are found/correct and even when testing to set the additional address to the correct country and region (Sweden, Region 19), it still sets the country to be Germany.

The problem occurs when I simulate. Instead of the existing country being kept, since no new address is being inserted via the excel template, it randomly inserts a different country.

In my current case, I have a business partner with only the general and supplier role with an address in the country of Schweden (SE) and Region 019. However, the simulation throws the error message AM 215 (2015043 - [VIDEO] "E AM 215: Region "X" is not defined for country "X" - SAP for Me, or see picture below) showing that apparently the country has changed to Germany (DE) for whatever reason.

The weird thing is that this sort of migration has worked before, but is now throwing this error a few months later when needed to adjust some business partners again.

User931_0-1746176207457.png

Input of migration: BP (general + supplier) with Address in Sweden Region 019 (no address change as input).

Output error of simulation: AM 215 "Region 019 is not defined for Germany".

 

Tried ideas:

  • Looked into customizing to see if Schweden has Region 019 defined (it does)
  • Looked into LTMOM in case anything has been changed (it says unchanged)
  • Tried inserting the country, region and language via the additional addresses tab in the excel template to see if that helps (doesn't seem to do anything, makes sense)
  • Looked at the staging tables to see if the data there is correct (it is, nothing about the country though as it's not meant to be inserted and simply inherited by the existing address data since it's the same fields as far as I am aware)
  • Tried removing the sales data from the excel (didn't seem to do anything)
  • Looked into SAP Notes on me.sap.com (couldn't find anything useful it seems)

 

Any help or ideas as to what to try would be appreciated!

Kind Regards

 

View Entire Topic
IreneLiu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello @Paul_H 

Thanks for posting your question on Community and for the very detailed information.

AM215 error returns from Address Management area. While from migration cockpit perspective, could you please have a look on the following points first?

  1. In the mapping task, are you using internal numbering or external numbering? Is the target bp number set to the one you want extend?
  2. If you are using S/4HANA product, is the configuration correctly set for this country? (Table: T005S) Or if you are in Public Edition, you can check configuration activity 103826.

Looking forward to your reply.

Best regards,
Irene

 

Paul_H
Explorer
0 Kudos

Hello Irene,

yes, I have looked at it and all data was correct.
While debugging the issue, I have found out that it was an internal development extension that one of our employees has added to SAPLBUPA_INTERFACE_SERVICE, the gv_class_bupa_inbound -> check_before_inbound was extended to be more specific.

The change was meant to help with the conversion of older creditors and debtors to the new business partner system. I am now talking with the responsible developer that implemented the extension. It seems they weren't aware that the migration cockpit also uses the same methods and classes in that regard. Not to say that I had knowledge about it either.

Thank you for your answer and have a nice day!