Symptom
When you perform QueryByElements from Repository Explorer for any Business Object, you will notice ABSL code written in AfterLoading Event for the same business object gets triggered.
Environment
SAP Cloud Application Studio
SAP Cloud For Customer
SAP Business ByDesign
Reproducing the Issue
- Login to SDK
- Go to View
- Select Repository Explorer
- Select Any Business Object, For Ex. ServiceRequest
- Perform Query by doing Execute Query from QueryByElements (Right click and click on Execute Query)
- Enter Parameter ID
- Click on OK
Cause
When you execute the query on business object, there will be instances that are loaded which in turn will trigger AfterLoading script.
Resolution
When you have absl code written in AfterLoading Event for the Business Object which you trying to pefrorm the query, code should be executed. This is expected system behaviour.
Example : You have a ServiceRequest.xbo and in that you have created Event-AfterLoading.absl and when you perform a QueryByElements for ServiceRequest BO, absl code will be triggered from the backend.
Keywords
Repository, BO Query, Afterloading event, , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , AP-RC-BDS-REP , ByDesign Studio Repository View , Problem