cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to delete a Custom Field?

SAPSupport
Employee
Employee
0 Kudos
9,085

Dear SAP,

We have one custom field which is now no more needed hence wanted to remove/delete from UI. But while disabling this custom field in UI then app does not fetch the data because of oData failure in the backgorund.

Please help me to delete the Custom Field.

Thank you!


------------------------------------------------------------------------------------------------------------------------------------------------
Learn more about the SAP Support user and program here.

Accepted Solutions (1)

Accepted Solutions (1)

SAPSupport
Employee
Employee

Dear Customer,

The deletion of custom fields technically requires an ABAP dictionary activation. Depending on the application or business context, there can be a lot of objects involved, which can cause long runtimes.

You're trying to remove the Custom Field by disabling it from the app UI. If the field will not be used anymore by any other application, you can delete it following the steps below:

  1. Login to Fiori Launchpad and search for Custom fields and logic app
  2. Click on the custom field which we are going to delete, before going to delete we need to disable the field usage
  3. Click on each tab(UIs and Reports, Email Templates, Form Templates, Business Scenarios, OData APIs, SOAP APIs, BAPIs, IDOCs) and check the field is enabled. If it is enabled, click on "Disable Usage", make sure that this field is disabled in all tabs
  4. Click on "Delete", we will get screen Do you want to permanently delete data?
  5. Click on Delete again, after few seconds we will get message "Deleted" and screen will be refreshed
  6. Please note that the affected applications can become unusable while the publishing or deletion process is running.

Best regards,

SAP Support.

Answers (3)

Answers (3)

former_member132121
Active Participant

Hello,

To add to the following steps above, there is also a KBA to support the same:

https://launchpad.support.sap.com/#/notes/0003055336

Thank you,

Nidhi Verma

takuyamoto
Discoverer
0 Kudos

This function affects all clients, so please be careful.

We simply pressed delete on the entry screen and we ran into massive database inconsistencies.

We create a ticket on me.sap.com.
After three days, SAP support team activated the ACCIT on SE11 and the inconsistency was fixed.
They said that if we encounter the same problem, please create a ticket.This requires deep DDIC knowledge, so SAP do not recommend that customer try to solve such DDIC issues on their own.


It is "normal" that for deletion it could take more than 1 hour.

It takes about 20 minutes for me to publish custom fields.

I hope the problem is fixed.

ankae
Discoverer
0 Kudos

Moin ,

we were struggling with this for 2 days and 2 heads until we came across this post. As we simply pressed delete on the entry screen we ran into massive database inconsistencies and we had to rollback the database. Fortunately we were still in a sandbox system.

But to me this is a massive bug that needs to be fixed.

Either by delivering a message saying that you have to disable usage before you can delete the field or simply taking care of the evident will. If I delete a field - I do not want to use it any longer. Consequently the usage in CDS views forms or whatever is also not obsolete.

Thanks for the explanation but please fix it and make it better!!

KR

Andreas