SAP Knowledge Base Article - Public

3323803 - Error: “Data cannot be deleted since deletion is disabled” While Trying to Delete the Purchasing Organization or Company Code or Sales Area of the Business Partner

Symptom

Your requirement is to remove the existing Purchasing Organization or Company Code or Sales Area of the Business Partner so that you can add a new one as per your business requirement. Upon trying to Delete the existing Purchasing Organization or Company Code or Sales Area of the Business Partner, you see the error:

Data cannot be deleted since deletion is disabled

Environment

SAP S/4HANA Cloud

Reproducing the Issue

  1. Go to the app Manage Business Partner Master Data
  2. Find and open the Business Partner ID
  3. Go to the tab Roles
  4. Open the details of the respective Role FLVN00 Supplier (Fin.Accounting) or FLCU00 (Customer Fin. Accounting)
  5. Go to the tab Purchasing Organizations or Company Codes or Sales Areas depending on the Business Partner
  6. Select the entry
  7. Click on the button Delete
  8. You see the error

Cause

The delete button in the Business Partner apps is to delete Purchasing Organization or Company Code or Sales Area of the Business Partner data which is not yet saved. Once the Purchasing Organization or Company Code or Sales Area of the Business Partner data is saved on database, you cannot delete it using Maintain Business Partner or Business Partner Fiori apps like Manage Business Partner Master Data, Manage Customer Master Data and Manage Supplier Master Data.

System is designed in this manner because in dialogue, we cannot run through complete where-used checks.

Resolution

To delete the Purchasing Organization or Company Code or Sales Area data from the Business Partner (at Supplier level or Customer level), you need to mark it for deletion and then follow the official archiving procedure. This archiving will not archive/delete the Purchasing Organization or Company Code or Sales Area or Business Partner from the system. It will only delete the Purchasing Organization or Company Code or Sales Area data from the Business Partner.

Use the app Block Master Data - Customer & Supplier to block master data of Customers and Suppliers that are currently not in use and have reached the end of purpose (EoP).

Check the end of purpose for the customer or supplier specified and block all dependent data. It is also possible to narrow down the data for which you want to trigger the EoP check.

The documentation on how to delete Business Partner, Customer or Supplier Master Data in S/4HANA can be found via the links in KBA: 2742388 

Additionally, the complete steps on how to delete a customer/vendor can be found in the test script for the Scope Item 5LE which details all of the customizing which is needed to be configured and then shows step by step an example of how to block, archive and delete master data.

 

See Also

2742388 - S4HC: How to delete Business Partner, Customer or Supplier Master Data in S/4HANA Cloud

Test script for Scope Item 5LE

Block Master Data - Customer & Supplier

Keywords

Delete, Business Partner, Customer, Supplier, Purchasing Organization, Company Code, Sales Area,  , KBA , LO-MD-BP , Business Partners , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions