SAP Knowledge Base Article - Public

3621063 - Deletion of Unnecessary Codes in a Custom Extension Field

Symptom

You would like to delete unnecessary codes that have been added to a custom field of CODE data type.

Environment

  • SAP Sales Cloud Version 2
  • SAP Service Cloud Version 2

Reproducing the Issue

  1. Click on the User Icon.
  2. Go to the Settings > All Settings.
  3. Go to the Extensibility Administration.
  4. Select an Entity (e.g. Account, Case, Opportunity etc.).
  5. Go to the Custom Field tab.
  6. Select a CODE extension field.
  7. You can not delete or remove its Codes.

Cause

Due to data consistency requirements, these codes cannot be deleted because existing records may rely on them, preventing their removal from field metadata.

Resolution

To address this, the codes can be deactivated, making them unavailable for selection by end users. Follow these steps:

  1. Click on the User Icon.
  2. Go to the Settings > All Settings.
  3. Go to the Extensibility Administration.
  4. Select an Entity (e.g. Account, Case, Opportunity etc.).
  5. Go to the Custom Field tab.
  6. Select a CODE extension field.
  7. Locate the Codes and click on Deactivate.
  8. Save it.

By deactivating codes instead of deleting them, you maintain data integrity while managing selection options effectively.

Keywords

custom field, code, extension scenario, extension field, delete codes, delete code, remove codes, remove, remove values, extensibility adminitrastion , KBA , CEC-CRM-CZM-EXT , Extensibility for SAP Sales/Service Cloud , How To

Product

SAP Sales Cloud and SAP Service Cloud Version 2 1.0