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

While trying to delete the Purchasing Organization or Company Code or Sales Area of the Business Partner, error message appears: 'Data cannot be deleted since deletion is disabled'.

Environment

SAP S/4HANA Cloud Public Edition 

Reproducing the Issue

  1. Go to the Manage Business Partner Master Data app
  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. Navigate to the tab Purchasing Organizations or Company Codes or Sales Areas depending on the Business Partner
  6. Select the entry
  7. Choose delete button 
  8. Error message appears

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, it 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 Sales Area data from the Business Partner (at Supplier level or Customer level),use the Manage Archiving Allow list - Customer & Supplier to flag to make an exception for the supplier or customer and a given purchasing organization or Sales Area .This will then allow archiving of that supplier purchasing organization or customer sales area without having to block the complete supplier or customer.

But be cautious while using the above option, this would only rely on Archiving checks and not anymore on the ongoing business checks which is done via the EoP check. There should not be using the supplier or customer with the purchasing org or sales area for any documents related to the purchasing org or sales area which they are trying to delete. 

To delete the Company Code from the Business Partner (at Supplier level or Customer level), 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

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