SAP Knowledge Base Article - Public

2842363 - Repository Explorer Query for AfterLoading Event in SDK

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

  1. Login to SDK
  2. Go to View
  3. Select Repository Explorer
  4. Select Any Business Object, For Ex. ServiceRequest
  5. Perform Query by doing Execute Query from QueryByElements (Right click and click on Execute Query)
  6. Enter Parameter ID
  7. 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

Product

SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions