cancel
Showing results for 
Search instead for 
Did you mean: 

Un-assign Plant from Company Code

Former Member
0 Kudos

I just want check and make sure that anyone got into any issues of re-assigning an existing plants from one company code to a different one?


1. Plants 01, 02, 03,.....25 etc are currently belongs to company code A1, but couple of plants will be moved to a new company code B1 soon in ECC. We will un-assign the plants from company code A1 which are moving to company code B1.

2. What are the consequences and how to handle them in SRM? Do we need to delete the plants in SRM which are moving to new company code B1 from company code A1. If yes what is the best way to delete them from company code A1?

  

Thanks for your input in advance.

VNR

Accepted Solutions (0)

Answers (3)

Answers (3)

tayyeb_52
Explorer
0 Kudos

Many times there is possibility of replication of unwanted or not used Locations (Plant) and the suppliers. in the SRM system. Business requirement is to not see the not needed objects in the system to avoid the confusions. There is a technical way to deleted the business partners (BP) using Function Module. These same objects again required can be replicated back with the respective replication report programs in SRM system.

Note: If in case this this FM used to delete the Active or used Bunsiness partner then the previous documents created may become inconsistant.

Below is the screen shot showing the POWL of the Location

Go to Transaction code to run the Function module : SE37 and then select the Test sequesce as below

Give the function modules to perfom the activity

BBP_BUPA_EVENT_DELE2 - Delete the BP

BAPI_TRANSACTION_COMMIT - This is to confirm the previous FM in the data base

Input field : provide the BP number to delete and this number copy from the Table BUT000 Table as it is

Then go back and Run

And click back and again Execute

Then the BP will be deleted and removed from the POWL and the tables.

Please award points if found usefull.

Regards

Tayyeb

Former Member
0 Kudos

Hi VNR,

If the plants are reassigned in the ECC then whatever Vinita said is the right procedure -

1.     Run the reports again

2.     Existing plants assigned will be over written

3.     Please delete/remove from PPOMA - Extended attribute the old plant/company code assignment.

4.     Similarly add these newly replicated plants to the respective company code in the correct Extended attributes

5. I think old assignment will be overwritten.

Thanks.

from RBEI,

Snehal

vinita_kasliwal
Active Contributor
0 Kudos

I am assuming you will make the changes in ECC correct ?

Once you do so there are standard reports in SRM side which can be used .

BBP_LOCATIONS_GET_ALL    -              Transfer all plants from all backend systems as locations

BBP_LOCATIONS_GET_FROM_SYSTEM -  Transfer all plants of a backend system as locations

BBP_LOCATIONS_GET_SELECTED  -   Transfer selected plants of a backend system as locations

Once you transfer SRM will have a business partner created for each plant and this BP number is used in ur shopping cart.Now you need to assign this in your user attributes in pposa_bbp ..

BBP_LOCMAP table  List of all plants you can see ..

To delete the existing plants if they do not get deleted automatically not sure if they will .  .

use  either of the belwo options :

1. FM BBP_BUPA_EVENT_DELE2

2. Transaction bbpmainint

3. FM BUPA_DEL  or  FM BUP_BUPA_DELETE

Hope this helps !