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.
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
When you execute the query on business object, there will be instances that are loaded which in turn will trigger AfterLoading script.
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.
Repository, BO Query, Afterloading event, , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , AP-RC-BDS-REP , ByDesign Studio Repository View , Problem