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,
Vinod