Skip to Content
Author's profile photo Former Member

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

/wp-content/uploads/2013/11/powl_1_312727.jpg

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

FM_step_2.jpg

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

FM_step_3.jpg

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

FM_step_5.jpg

Then go back and Run

FM_step_6.jpg

And click back and again Execute

FM_step_7.jpg

FM_step_8.jpg

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

/wp-content/uploads/2013/11/powl_2_312780.jpg

Thanks and Regards,

Vinod

Assigned tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Vinita kasliwal
      Vinita kasliwal

      Hi

      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 ?

      Author's profile photo Konstantin Anikeev
      Konstantin Anikeev

      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.