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
-
Open the Cloud Application Studio
-
Login on your system
-
Click on button Start Debugging and put a breakpoint on the OnDelete
-
On the Frontend/UI, Go to the Custom Work Center ABC (ABC is the name of the Custom Work Center)
-
Select the Entry which needs to be deleted
- 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