Hi Priya,
Sorry for the delay, I am not sure about the notes it effecting somewhere by this 'BTQuery1O' query m not able to find out the issue and its also effecting standard functionality of notes .So i request to Please revert all the changes and go with the standard flow and make visible upto 5 records.
you can try with Sylvain AGUETTAZ solution.
- enhancing genil class by substituting the standard class (CL_CRM_QUERYBUSACT_RUN_BTIL) by a custom one, and change method READ_BUSINESS_ACTIVITIES based to set the max hit (see screenshot, the max hit it is hard coded ...
Regards,
Sumeet