How to delete not used, replicated Plant and Vendor from SRM by using FM
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 : SM37 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
Thanks and Regards,
I liked the idea you mentioned here as I agree there are a lot of unused or obsolete plant and vendors however could you please confirm .
1. How do we identify the unsed plant any logic for that ?
2. Is this what you are trying to do scheduling of a Job ?
Hi, nice post, but this approach was already described in Deleting Shopping Cart through Function module. So, you've just used another function module for another purpose.
Actually I would not recommend to physically delete partners from database, but just to set a deletion sign for them. If deleted plant have been used in some document - your system will dump.