SAP Knowledge Base Article - Public

3564987 - OnDelete Script Not Called In Custom Object When Click On Trash Button

Symptom

Event OnDelete is not getting called in the Custom Object when you are trying to delete an entry using the Trash button.

Environment

SAP Cloud for Customer core applications

Reproducing the Issue

  1. Open the Cloud Application Studio

  2. Login on your system 

  3. Click on button Start Debugging and put a breakpoint on the OnDelete

  4. On the Frontend/UI, Go to the Custom Work Center ABC (ABC is the name of the Custom Work Center)

  5. Select the Entry which needs to be deleted

  6. Click on the Trash icon and notice that the OnDelete.absl is not called

Cause

The OnDelete event is not being called since there is an AfterLoading event present within the same custom node of the BO. 

Resolution

This is expected system behavior.

If the change in feature/functionality is needed as a matter of urgency, please refer to KBA 3475641 - Functionality Currently not Available.

Keywords

OnDelete , Not Called , Not Triggered , Custom BO , Custom Node , AfterLoading , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , AP-RC-BDS-LM , ByDesign Studio Lifecycle Management , Problem

Product

SAP Cloud for Customer core applications all versions