How to reassign a Plant to a different Company Code?
Regenerating the Issue:
- First, create a new company code in transaction code OX16.
- Then Re-assign plant to company code in transaction code OX18.
Causes
Because of inconsistencies, it is too difficult to replace all company codes in Purchasing, Inventory Management, Invoice Verification, Material Master and all other corresponding applications. There are too many relations which could be violated.
The changing of a plant/s from one Company Code to another is possible via transaction OX18. Therefore please consider the legal specifications (e.g.: key date, business area balance).
It is not recommended to simply remove the current assignment to the existing company code and re-assign to the new company code especially if you have materials in stock, open orders and processes etc. The same would cause inconsistencies and should be avoided because the company code is stored in all MM Documents/Master Records etc.
SOLUTION
The only known method would be to create a new plant for the new company code in R/3 and then move or re-enter all relevant data from the old plant to the new plant. And then afterward delete the old plant.
It is recommended by SAP you need to create a new plant instead of assigning existing plant.
Please follow the steps below to create a new plant for the new company code. (If the new accounting area uses another local currency, problems could occur during material valuation.)
- Pre-condition for closing down an existing plant: All open documents (orders, contracts etc.) must be completed/finished before.
- Then please 'Shut down' the corresponding plant in the initial company code (i.e. finish all open procedures.)
- Now create a new plant (via Customizing) and then assign it to the new company code in transaction OX18.
- Then all master data for the new plant must be re-maintained. All material transfer postings must be carried out, etc.
- All open procedures must be created again, similar to the content of the "source" plant.
- Another possibility is to request a Plant Reallocation SLO with SAP, however, please note this is a billable consulting service.