Symptom
Error message "Publishing function is currently locked by <User ID>" is displayed while trying to publish or delete a Custom Field.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Go to Custom Fields app
- Select a Custom Field and click on "Publish" or "Delete" button
Cause
This will happen if you or someone else has recently attempted to publish or delete a Custom Field. When a user initiates the Publish or Delete action for a Custom Field, the system locks the publishing function to prevent conflicts.
Resolution
The publishing and the deletion of Custom Fields, Custom Logics and CDS Views 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.
Once the current user's action is finished, the lock will be released, and you will be able to proceed with your own publishing or deletion action.
Keywords
custom fields and logic, custom fields, publishing function is currently locked by, publish, delete , KBA , BC-SRV-APS-EXT-FLD , Custom Fields , Problem
SAP Knowledge Base Article - Public